-
Notifications
You must be signed in to change notification settings - Fork 80
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
pytorch 1.9 support #66
Comments
I am having the same issue! I was able to circumvent this for now by downgrading to pytorch v1.8.0. This required modifying the |
Thanks for reporting this. I think the newest version of pytorch sets the default device as In the meantime, as Ruby suggested, you can install cryoDRGN with pytorch 1.8:
|
This incompatibility with the latest version of pytorch is fixed in the top-of-tree and will be available in the upcoming version 1.0.0 release. |
Describe the bug
The current code doesn't seem to be compatible with the (new) pytorch 1.9.
To Reproduce
With a set of preprocessed particles:
It results eventually in:
(When I try to "fix" it by changing
torch.cuda.FloatTensor
totorch.FloatTensor
in the filesbackproject_voxel.py
,train_nn.py
,eval_vol.py
,train_vae.py
, andeval_images.py
, I get the same kind of error from different parts of the code.)Expected behavior
Finish the training without producing an exception.
Additional context
This is the conda environment that I am using:
The text was updated successfully, but these errors were encountered: