Open KunikaValecha opened 3 years ago
Hi! Sorry for the delay in responding to this. I see that the only thing that has changed is removing the calls to .cuda()
. What do you think about instead adding a flag (something like --cpu_only
) directly to Run.py? Then, whenever there is a call to cuda(), if this new flag is set we can keep the variables on the spu. This way we avoid duplicated code. Let me know if you have any questions!
Yes, that would work.
Do you want to make the changes in your branch and push directly to this PR?
This code can can run for small number of images on cpu. It has been tested successfully on pytorch version = 1.4.0+cpu