-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to run demo on CPU #18
Comments
Did you also change the code here? |
|
i did the same thing and i changed the code as follow:
|
Hmm, it seems there is no problem. Would you trying eliminating this line? |
@hongsukchoi |
No, I haven't prepared google colab codes. I recommend you follow this instructions to run on CPU. I did the same thing and was able to run TCMR on CPU.
In tcmr.py
|
I wanted to run demo on CPU so I tried
python demo.py --vid_file demo.mp4 --gpu -1
However, it turned out:
RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False. If you are running on a CPU-only machine, please use torch.load with map_location=torch.device('cpu') to map your storages to the CPU.
Then I tried to fix code in demo.py in line 108 and line 127.
But it still couldn't work.
The text was updated successfully, but these errors were encountered: