-
Notifications
You must be signed in to change notification settings - Fork 79
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
Torch installation - troubleshooting #40
Comments
What OS is you on? How far did you get in the installation instructions? |
I am using windows 11 pro. |
Installing Torch often fails. It is very hit and miss with pip and that module. Try to use the Python Module manager to uninstall tourch. Close Blender. Go to this folder: C:\Users\jo\AppData\Roaming\Python\Python310\site-packages Delete folders Torch and -orch Start Blender again. Try Install Dependencies again. Restart Blender. Install All Dependencies. Restart. And hopefully it'll work. Let me know if that works. |
Thank U for help, |
You need to type in Torch to the left of that button first. |
(Don't use it for installing Torch, bc you'll need a special version including CUDA - which the Generative AI add-on will install for you(Install Dependencies - button)) |
You can properly just delete the folders as well, might be faster. |
It seems to be installed now. thank you But another error occurred. File "C:\Users\jo\AppData\Roaming\Python\Python310\site-packages\bitsandbytes\autograd_functions.py", line 5, in |
Apparently, that is a python module. Newer heard about it before: https://github.com/TimDettmers/bitsandbytes You could try the Python Module Manager, type in bitsandbytes and first remove it, and then install it. Restart Blender. If that doesn't work, then remove the bitsandbytes folder, and then install it with PMM. The thing with those folders is that the content of those will be used instead of downloading the latest version, so by deleting the folder you ensure you'll get the latest release of that module. |
But when I hit the create image button, another error occurred, LOL Python: Traceback (most recent call last): |
Could you send me a screenshot of your sidebar panel, so I can see your settings, in order to try to reproduce? (I renamed your thread, so others with the same problems, can find it. I hope that's okay?) |
Requirement already satisfied: mpmath>=0.19 in c:\users\jo\appdata\roaming\python\python310\site-packages (from sympy->torch) (1.3.0) safety_checker\model.fp16.safetensors not found |
13th Gen Intel(R) Core(TM) i9-13900K 3.00 GHz I'll leave the details in case it helps. |
I haven't tested SD 1.5 for a while, and I do not have time to that download now. |
Cool! You made it! If you have an interest in text to video too, then this discord is a good place to hang out and follow how that area develops: https://discord.gg/hevku2Un |
I'm going now |
In 2 sek. I'll upload a fix for SD 1.5. |
No matter what I do I keep getting this error when I get to Xformers during the dependencies installation:
It claims it can't find torch. I even uninstalled all the dependencies in blender and deleted torch in \Python310\site-packages manually as you suggested and after trying to reinstall the dependencies (including torch) I still get the same error when getting to xformers claiming that torch is not there. |
@DVBS8 Have you tried to click on the Uninstall Dependencies button in the add-on preferences, close Blender, check site-packages for folders to delete, start Blender, click "Install Dependencies"? If the problem persists, apparently more people are having this problem: facebookresearch/xformers#740 Let me know if you find a solution which is working for you. |
My OS is Windows 10 Anyways I was finally able to install xformers after uninstalling and reinstalling the dependencies mutiple times. But I have a new problem. It seems that the addon only works if you install the dependencies every time you open a blender instance. If I close blender and reopen it and then try to use the add on, I will get a torch module not found error until I reinstall the dependencies (without uninstalling them). Only then will the addon work. Is this normal behavior? |
Did you remember to run Blender as administrator? |
Yes every single time I run it as administrator. |
Well, it is not normal behavior at all. You could try the uninstall process above, and Blender is closed the delete all folders in \Python310\site-packages called anything touch or xformers related, reboot, and then start Blender, and install the dependencies. But it's just a wild guess. Alternatively, if you run some other genAI app, it may change the installed modules. |
Python: Traceback (most recent call last):
File "C:\Users\jo\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\Generative_AI-main_init_.py", line 775, in execute
install_modules(self)
File "C:\Users\jo\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\Generative_AI-main_init_.py", line 450, in install_modules
exec("import torch")
File "", line 1, in
File "C:\Users\jo\AppData\Roaming\Python\Python310\site-packages\torch_init_.py", line 133, in
raise err
OSError: [WinError 126] 지정된 모듈을 찾을 수 없습니다. Error loading "C:\Users\jo\AppData\Roaming\Python\Python310\site-packages\torch\lib\cudnn_cnn_infer64_8.dll" or one of its dependencies.
I've reinstalled several times, but it doesn't work.
I did a pip upgrade using the python module manager,
but I'm still having this problem. What should I do?
The text was updated successfully, but these errors were encountered: