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

accelerate.bat - not working, but.. #7

Closed
MXZEHN opened this issue May 2, 2024 · 4 comments
Closed

accelerate.bat - not working, but.. #7

MXZEHN opened this issue May 2, 2024 · 4 comments

Comments

@MXZEHN
Copy link

MXZEHN commented May 2, 2024

Hi,
just wanted to let you know that the accelerate.bat throws an error, as it can not find python.
However, it was suggested online to try "py" instead of "python" and that did work for me.
Maybe pother users have the same issue...
All the best
Stefan

@MXZEHN
Copy link
Author

MXZEHN commented May 2, 2024

The next issue is that the component in TD throws an error,
from what i can tell, it doesn't find
E:\DOWNLOADS/TDDepthAnything-main/TDDepthAnything.venv/Lib/site-packages\torch\lib\shm.dll
However, that file is existing on that path...
I am on build 2023:11600

/project1/TDDepthAnything/script1_callbacks Traceback (most recent call last): File "/project1/TDDepthAnything/script1_callbacks", line 18, in onCookAttributeError: 'NoneType' object has no attribute 'run' 4478 227 abort DAT
/project1/TDDepthAnything/DepthAnythingExt Traceback (most recent call last): File "/project1/TDDepthAnything/DepthAnythingExt", line 28 r = previousimport(*args, **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\DOWNLOADS/TDDepthAnything-main/TDDepthAnything.venv/Lib/site-packages\torch_init_.py", line 141 raise errOSError: [WinError 126] The specified module could not be found. Error loading "E:\DOWNLOADS/TDDepthAnything-main/TDDepthAnything.venv/Lib/site-packages\torch\lib\shm.dll" or one of its dependencies. 4478 227 abort DAT

Any help appreciated!

All the best
Stefan

@NairoDorian
Copy link

NairoDorian commented May 2, 2024

I've got the same error, it's trying to import torch in DepthAnythingExt but it's not succeeding
Edit: 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

@olegchomp
Copy link
Owner

olegchomp commented Jun 1, 2024

Thank you! Fixed with e5dfe39

@MXZEHN
Copy link
Author

MXZEHN commented Jun 5, 2024

Hi, just wanted to let you know that the accelerate.bat throws an error, as it can not find python. However, it was suggested online to try "py" instead of "python" and that did work for me. Maybe pother users have the same issue... All the best Stefan

this is still happening and the "py" instead of "python" trick still works

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

3 participants