-
-
Notifications
You must be signed in to change notification settings - Fork 430
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
Document fix for Windows long file path error #15
Document fix for Windows long file path error #15
Conversation
Amazing, thanks! |
I am getting the same error trying to install the dependencies. I am unable to change the long pathsenabled to 1 in the reg. IT does not allow it. Anyway to fix it so this is not a necessity to install? |
Hi @djslickd. Too bad you aren't able to set that. The only other solution I've heard that has worked it to relocate your Blender installation to somewhere like Hope this helps. |
Thank you for the suggestion. I did as you suggested and cut the paths down into C:\Blender and still getting the same error. I am not sure if I can take the python / bin folder back to the Main blender folder to save some paths. Otherwise I am at a loss. |
The installation was successfull now, but I get no picture. When I click "OK" in the DreamTextures. Blender just freeze for some seconds and I get this error in the console. But I have an CUDA GPU. I have Nividia GeForce GTX 1060 ..................... C:\Program Files\Blender Foundation\Blender 3.3\3.3\python\lib\site-packages\torch\cuda_init_.py:82: UserWarning: CUDA initialization: CUDA driver initialization failed, you might not have a CUDA gpu. (Triggered internally at ..\c10\cuda\CUDAFunctions.cpp:112.)
C:\Users\User\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\dream_textures\async_loop.py:62: DeprecationWarning: There is no current event loop
C:\Users\User\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\dream_textures\async_loop.py:62: DeprecationWarning: There is no current event loop
C:\Users\User\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\dream_textures\async_loop.py:62: DeprecationWarning: There is no current event loop
|
@JC-Sutter sorry you're having issues. For the future by the way, you're best to create a separate issue for your problem vs. commenting on an old PR. My understanding is that you need an Nvidia GPU (which uses CUDA), or Apple silicone. At least that's what is documented in InvokeAI. @carson-katri might be able to confirm. |
That's odd it doesn't detect your GPU. Maybe try the new version and see if the issue persists. Only NVIDIA and Apple Silicon have been verified to work correctly. |
I have downloaded an installed the 006 Version. But I get this error below while installing the dependencies. ...... |
Fixes #13.
Turns out
[email protected]
fails to install for many Windows users because during its setup,pytorch
(a sub dependency) fails to install. Andpytorch
fails because it can't find a certain file on disk (in this specific case,learning_rate_adaption_op_test.test_learning_rate_adaption_op_normalization.zip
).Turns out this is a known issue with
pytorch
and is actually caused by file paths being too long. Windows apparently maxes out around 260 characters, unless you specifically tell Windows to allow long paths.You can do this by:
regedit
)HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem
LongPathsEnabled
to1
This PR adds a note describing this issue under the dependency installation section in the README & Troubleshooting section within the addon so that future Windows users don't get tripped up by this.
As a side note, I was wondering why Windows doesn't enable
LongPathsEnabled
by default - apparently some apps still do not support long paths, so allowing Windows to create long paths (eg. through file explorer) might create more problems for people who don't know what they're doing. Of course in this situation its worth the compromise!