mit-han-lab / anycost-gan

[CVPR 2021] Anycost GANs for Interactive Image Synthesis and Editing
https://hanlab.mit.edu/projects/anycost-gan/
MIT License
776 stars 98 forks source link

using win run demo.py need cuda but cant using force-native=1 #22

Closed fingerx closed 2 years ago

fingerx commented 2 years ago

hi,thanks for job. my win10 pc run stylegan3 is ok but run anycost-gan , demo.py need cuda, using force-native=1, my pc cant understand,anyone can help me,thanks very much.

tonylins commented 2 years ago

Hi, may I see the error log you are getting? The code can automatically switch to CPU if CUDA is not available. You don't need to specify FORCE_NATIVE manually.

fingerx commented 2 years ago

thanks image

tonylins commented 2 years ago

Thanks! This is weird. Does your computer have CUDA GPU?

fingerx commented 2 years ago

yes my pc is nv 3080 gpu image

fingerx commented 2 years ago

run stylegan3 is ok: image

tonylins commented 2 years ago

Thanks. I don't have too much experience with Windows. But could you please try:

set FORCE_NATIVE=1
python demo.py
fingerx commented 2 years ago

ok thanks

fingerx commented 2 years ago

dont know why that,but thanks for you