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
I followed the installation steps and executed the titans-pytorch code, but encountered the following error: Traceback (most recent call last): File "D:\User\Documents\SR\Titan\titans-pytorch-main\test.py", line 8, in <module> ).cuda() File "D:\ProgramSoftware\anaconda3\envs\titan\lib\site-packages\torch\nn\modules\module.py", line 1050, in cuda return self._apply(lambda t: t.cuda(device)) File "D:\ProgramSoftware\anaconda3\envs\titan\lib\site-packages\torch\nn\modules\module.py", line 900, in _apply module._apply(fn) File "D:\ProgramSoftware\anaconda3\envs\titan\lib\site-packages\torch\nn\modules\module.py", line 927, in _apply param_applied = fn(param) File "D:\ProgramSoftware\anaconda3\envs\titan\lib\site-packages\torch\cuda\__init__.py", line 310, in _lazy_init raise AssertionError("Torch not compiled with CUDA enabled") AssertionError: Torch not compiled with CUDA enabled
The code fails with the error: AssertionError: Torch not compiled with CUDA enabled.
It seems that the PyTorch version installed is the CPU version, and it's not compiled with CUDA support. I would appreciate guidance on how to properly configure the environment for GPU usage, or if there is a recommended version of PyTorch to install that includes CUDA support.
The text was updated successfully, but these errors were encountered:
Thanks! My solution is to not use the pip install command provided in the code, but instead manually install PyTorch first and then manually install each package based on the program in the source code. That works.
I followed the installation steps and executed the titans-pytorch code, but encountered the following error:
Traceback (most recent call last): File "D:\User\Documents\SR\Titan\titans-pytorch-main\test.py", line 8, in <module> ).cuda() File "D:\ProgramSoftware\anaconda3\envs\titan\lib\site-packages\torch\nn\modules\module.py", line 1050, in cuda return self._apply(lambda t: t.cuda(device)) File "D:\ProgramSoftware\anaconda3\envs\titan\lib\site-packages\torch\nn\modules\module.py", line 900, in _apply module._apply(fn) File "D:\ProgramSoftware\anaconda3\envs\titan\lib\site-packages\torch\nn\modules\module.py", line 927, in _apply param_applied = fn(param) File "D:\ProgramSoftware\anaconda3\envs\titan\lib\site-packages\torch\cuda\__init__.py", line 310, in _lazy_init raise AssertionError("Torch not compiled with CUDA enabled") AssertionError: Torch not compiled with CUDA enabled
The code fails with the error: AssertionError: Torch not compiled with CUDA enabled.
It seems that the PyTorch version installed is the CPU version, and it's not compiled with CUDA support. I would appreciate guidance on how to properly configure the environment for GPU usage, or if there is a recommended version of PyTorch to install that includes CUDA support.
The text was updated successfully, but these errors were encountered: