Closed Robotatron closed 1 year ago
Hi @Robotatron, thanks for your interest in our work.
It is strange that you are encountering this error, as the notebook works perfectly fine when I execute the cells. It would be best if you do not replace cpu
with cuda
in cpu_device = torch.device("cpu")
as we need to transfer the result to the CPU to convert it into a NumPy array. Are you sure you did not make any other changes to the notebook?
I would like you to confirm if you are cloning the OneFormer-Colab
repo. If you still face issues, you may look at the Roboflow youtube video covering our demo.
Closing this issue for now. Feel free to reopen if you face any issues.
Are you sure you did not make any other changes to the notebook?
I am using the notebook locally, in a freshly created conda env following your guides.
"RuntimeError: Not implemented on the CPU"
cat /usr/local/cuda/version.txt
it says "11.0". Could this be a problem?/usr/local/cuda/
or /usr/local/cuda/bin
? I tried both to no avail.
Hi @Robotatron, yeah, that's precisely the issue. When you use Pytorch with cuda build 11.3, it expects CUDA >= 11.3. If you have a lower cuda version, try installing torch with cuda 11.0. That should solve the issue.
@praeclarumjj3 Thank you very much, it was indeed an issue with PyTorch installed with CUDA 11.3. Using PyTorch with 11.1 on a machine with 11.2 solved the issue!
Using your example notebook getting an error
RuntimeError: Not implemented on the CPU
Changing cfg.MODEL.DEVICE and cpu_device = torch.device("cpu") to "cuda" throws a different error