NVIDIA / vid2vid

Pytorch implementation of our method for high-resolution (e.g. 2048x1024) photorealistic video-to-video translation.
Other
8.57k stars 1.2k forks source link

RuntimeError: Legacy autograd function with non-static forward method is deprecated. #169

Open avani17101 opened 3 years ago

avani17101 commented 3 years ago

When running

python train.py --name edge2face_512 --dataroot datasets/face/ --dataset_mode face --input_nc 15 --loadSize 256 --num_D 1 --max_frames_per_gpu 2 --n_frames_total 6

I am getting this error: image I am using pytorch 1.9.0 and torchvision 0.10.0.

@Note: I tried to compile using pytorch0.4.1 but unable to compile resample2d_cuda. Even after running install.sh I get import error

import resample2d_cuda
ImportError: libc10.so: cannot open shared object file: No such file or directory
avani17101 commented 3 years ago

@tcwang0509 @junyanz @jiaxianhua @mingyuliutw

davidvfx07 commented 2 years ago

The solution is to downgrade PyTorch to version 1.4.0. However, I have an RTX 3080 Mobile so I require CUDA 11.1, which is not supported by PyTorch 1.4.0, so I can't downgrade. @tcwang0509 @junyanz @jiaxianhua @mingyuliutw from the comment above, any help here? Perhaps CPU?