latentfusion icon indicating copy to clipboard operation
latentfusion copied to clipboard

Problem for running the Trained Model

Open SHZ2006 opened this issue 4 years ago • 2 comments

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 avatar Feb 03 '21 13:02 SHZ2006

Hi,

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

keunhong avatar Feb 03 '21 19:02 keunhong

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

SHZ2006 avatar Feb 05 '21 10:02 SHZ2006