TDDepthAnything
TDDepthAnything copied to clipboard
Can't import torch
Added 'C:\TDDepthAnything\venv\Lib\site-packages' to sys.path. DAT compile error: /project1/TDDepthAnything/DepthAnythingExt Traceback (most recent call last): File "/project1/TDDepthAnything/DepthAnythingExt", line 28 r = previousimport(*args, **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\TDDepthAnything\venv\Lib\site-packages\torch_init_.py", line 141 raise err OSError: [WinError 126] The specified module could not be found. Error loading "C:\TDDepthAnything\venv\Lib\site-packages\torch\lib\shm.dll" or one of its dependencies.
It seems there is an issue when importing pytorch
Has anyone solved that
I've found https://github.com/pytorch/pytorch/issues/125109
Modifying the accelerate script to install the 2.2.x version of pytorch instead of 2.3.0 that was released last week fixed this issue for me
Thank you! Fixed with https://github.com/olegchomp/TDDepthAnything/commit/e5dfe397041de3b275b64a4cbf743f116023d408