-
Notifications
You must be signed in to change notification settings - Fork 24
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
AssertionError: Torch not compiled with CUDA enabled #3
Comments
Which versions of torch, torchvision and torchaudio do you have installed if you run (To activate the virtual environment, run the |
Actually on M1 Mac. torch==1.12.1 torchvision==0.13.1 torchaudio==0.13.1, Python 3.10.8 (main, Oct 13 2022, 09:48:40) [Clang 14.0.0 (clang-1400.0.29.102)] |
Correction. torchaudio==0.12.1 |
uninstall torch libraries and install from with these instructions instead of using pip |
No luck so far. |
I think the problem is that my script tries to install the CUDA version (of torchaudio) automatically at each startup, since I forgot about MacOS. Then it complains that your main torch installation has not been compiled with CUDA, which is correct Hopefully my latest commit should address this |
Sorry to hear you're still having issues, unfortunately I don't have a personal M1 Mac so it's hard for me to diagnose this problem |
No problem at all. If I can be of any assitance testing on Mac just let me know. Happy to help. |
Ok if you change : if Mac is detected in the riffusion.py file that fixes it. |
Nice catch! I didn't notice the function defaults to trying to use a cuda device. That's what I get for copying someone else's code without reading it. I will issue a fix based on your observation later today, glad to see you've found the fix |
:) |
After the update on amd64 installing the module removes gpu use ability by installing a wrong version of cudnn for me. Complete reinstall without riffusion fixed the issue. |
Same error. @aavetis fix seems to be for normal use for an NVIDIA gpu, I use an AMD with the directml version of SD. Please help |
Windows 11, stable diffusion 1.8 или 1.5, nvideo 3070, получаю эту же ошибку |
latest issue
The text was updated successfully, but these errors were encountered: