svip-lab / impersonator

PyTorch implementation of our ICCV 2019 paper: Liquid Warping GAN: A Unified Framework for Human Motion Imitation, Appearance Transfer and Novel View Synthesis
https://svip-lab.github.io/project/impersonator
Other
1.73k stars 317 forks source link

invalid device function #48

Closed GYTuuT closed 4 years ago

GYTuuT commented 4 years ago

When i run demo_imitator.py, it always comes the error:invalid device function like this:

Error in forward_face_index_map_2: invalid device function Error in forward_face_index_map_1: invalid device function Error in forward_face_index_map_2: invalid device function Error in forward_face_index_map_1: invalid device function Error in forward_face_index_map_2: invalid device function Error in forward_face_index_map_1: invalid device function

and the results of other two demos are the same. my GPUs are 2080ti and the environments is python-3.7, torch-1.3.1, CUDA-10.0, and does the version of my packages cause the error?

ThereIsNoWindBag commented 4 years ago

What was the cause?

piaozhx commented 4 years ago

It is caused by new version of pytorch (1.2 and later), a simple solution is down-grade pytorch to 1.0 or 1.1 and re-complie neural-render

GYTuuT commented 4 years ago

What was the cause?

use pure python rather than conda when creat virtual environments, install the requirments.txt and complie neural_render, than it worked. I don't know if it works for you.

piaozhx commented 4 years ago

@GYTuuT @ThereIsNoWindBag I guess you have more than one type gpu (e.g. rtx2080ti and gtx 1080ti) and complie neural render from one type and run on another bacause new version pytorch has stricter compatibility . if you use one type gpu to complie and run or just use pytorch 1.1, it will work well.

ThereIsNoWindBag commented 4 years ago

I followed your advice and it works. Thanks a lot!

samarthKabbur commented 3 years ago

What was the cause?

use pure python rather than conda when creat virtual environments, install the requirments.txt and complie neural_render, than it worked. I don't know if it works for you.

How can I do this @GYTuuT ?