AttnGAN
AttnGAN copied to clipboard
Add CPU option (fix issue #23)
Added "if CUDA" to all cuda() calls in trainer.py Makes it possible to evaluate & train on CPU
This fix still doesn't enable me to evaluate and train on CPU... I keep on getting this error: AttributeError: module 'torch._C' has no attribute '_cuda_getDevice Do you know how to fix it?
This fix still doesn't enable me to evaluate and train on CPU... I keep on getting this error: AttributeError: module 'torch._C' has no attribute '_cuda_getDevice Do you know how to fix it?
Could you please provide filename and line number?
Traceback (most recent call last):
File "main.py", line 136, in
This is the error I'm getting when I put this in command line: python main.py --cfg cfg/eval_coco.yml
Did you set GPU_ID = 0 in your config file (eval_coco.yml)?
I just did, but I get the exact same error. Same filenames and line numbers...
Ok. Please try GPU_ID = -1 in your yml file.
Sorry - has been a while...
Thank you so much! I don't get that error anymore!!! :)