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

Problem for running the Trained Model #13

Open
SHZ2006 opened this issue Feb 3, 2021 · 2 comments
Open

Problem for running the Trained Model #13

SHZ2006 opened this issue Feb 3, 2021 · 2 comments

Comments

@SHZ2006
Copy link

SHZ2006 commented Feb 3, 2021

Hi, when I want to run this line of code
from latentfusion.recon.inference import LatentFusionModel

I am getting this error:
cannot import name 'autocast' from 'torch.cuda.amp'

This installation also doesn't help
conda install pytorch torchvision cudatoolkit=10.2 -c pytorch-nightly

It seems the nightly version is not compatible with other toolboxes that you installed in the environment by environment.yml

@SHZ2006 SHZ2006 changed the title Problem for running the Problem for running the Trained Model Feb 3, 2021
@keunhong
Copy link
Contributor

keunhong commented Feb 3, 2021

Hi,

I don't think you need the nightly version anymore since PyTorch stable has it included.

@SHZ2006
Copy link
Author

SHZ2006 commented Feb 5, 2021

But still I am getting this error
cannot import name 'autocast' from 'torch.cuda.amp'

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