Skip to content
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

Can't import torch #8

Open
NairoDorian opened this issue May 2, 2024 · 1 comment
Open

Can't import torch #8

NairoDorian opened this issue May 2, 2024 · 1 comment

Comments

@NairoDorian
Copy link

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

@NairoDorian
Copy link
Author

I've found pytorch/pytorch#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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant