Add CPU option (fix issue #23)#24
Conversation
Added "if CUDA" to all cuda() calls
|
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 |
Could you please provide filename and line number? |
|
Traceback (most recent call last): This is the error I'm getting when I put this in command line: |
|
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!!! :) |
Added "if CUDA" to all cuda() calls in trainer.py
Makes it possible to evaluate & train on CPU