Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! #27

Open
gmh1033286494 opened this issue Jan 22, 2021 · 1 comment

Comments

@gmh1033286494
Copy link

gmh1033286494 commented Jan 22, 2021

I tried with 2 groups of image, 10001000 and 20482048.
10001000 worked just fine but 20482048 report the runtime error:Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!

pathflow-mixmatch register_images --im1 match_fixed_dapi_23093_2048.png --im2 match_area_original_moving_dapi_23093_2048.png --fix_rotation False --output_dir output_registered_images/ --gpu_device 0 --transform_type rigid --lr 0.01 --iterations 1000 --min_object_size 500 --no_segment_analysis True --black_background True

I tried another group of images of 2048*2048, it worked fine, too. I don't know what triggered this error.

@jlevy44
Copy link
Owner

jlevy44 commented Feb 23, 2021

I couldn't say, that is a strange error.. You are welcome to pull and PR if you are able to debug further! We do have plans to modify the package with additional features and fix current bugs, but is not a high priority at this moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants