You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Soo...I tried this before as well, namely because i wanted to see if I could run bigger images (more memory with CPU of course).
The way to really force CPU is putting this up top in the notebook before the pytorch related imports:
import os
os.environ['CUDA_VISIBLE_DEVICES'] = ''
When I tried that myself, it seemed to have done the trick, but then the processing was super slow and I just abandoned the effort in the meantime. The reason why I abandoned it was because I looked up the CPU performance issue and the man himself (Soumith Chintala) said this:
I think that's probably the issue I saw. I didn't go ahead and build from source because it wasn't pressing and I'm a bit lazy. You could try it...I just don't know for certain if that's actually the issue.
Please, if you're so inclined and do try it out, please let me know! We can put it in the readme then because that'll probably be helpful to a lot of people.
As far as I got it right, this class is related to CUDA.
But how can I run it on CPU ?
I disabled this line of code.
The text was updated successfully, but these errors were encountered: