stable-diffusion
stable-diffusion copied to clipboard
Unable to Install Stable Diffusion
Please Help, I am not a coder but I am having issues installing Stable Diffusion. In theory from my understanding at the end I should receive a URL link to go to stablke diffusion but it doesn't appears. I see a lot of error messages here, what do I need to do? Thanks
venv "D:\STABLE DIFFUSION\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.7 (tags/v3.10.7:6cc6b13, Sep 5 2022, 14:08:36) [MSC v.1933 64 bit (AMD64)]
Commit hash: 98947d173e3f1667eba29c904f681047dea9de90
Installing torch and torchvision
Traceback (most recent call last):
File "D:\STABLE DIFFUSION\stable-diffusion-webui\launch.py", line 255, in
stderr: ERROR: Exception: Traceback (most recent call last): File "D:\STABLE DIFFUSION\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\urllib3\response.py", line 435, in _error_catcher yield File "D:\STABLE DIFFUSION\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\urllib3\response.py", line 516, in read data = self._fp.read(amt) if not fp_closed else b"" File "D:\STABLE DIFFUSION\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\cachecontrol\filewrapper.py", line 90, in read data = self.__fp.read(amt) File "C:\Users\franc\AppData\Local\Programs\Python\Python310\lib\http\client.py", line 465, in read s = self.fp.read(amt) File "C:\Users\franc\AppData\Local\Programs\Python\Python310\lib\socket.py", line 705, in readinto return self._sock.recv_into(b) File "C:\Users\franc\AppData\Local\Programs\Python\Python310\lib\ssl.py", line 1274, in recv_into return self.read(nbytes, buffer) File "C:\Users\franc\AppData\Local\Programs\Python\Python310\lib\ssl.py", line 1130, in read return self._sslobj.read(len, buffer) TimeoutError: The read operation timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\STABLE DIFFUSION\stable-diffusion-webui\venv\lib\site-packages\pip_internal\cli\base_command.py", line 167, in exc_logging_wrapper
status = run_func(*args)
File "D:\STABLE DIFFUSION\stable-diffusion-webui\venv\lib\site-packages\pip_internal\cli\req_command.py", line 247, in wrapper
return func(self, options, args)
File "D:\STABLE DIFFUSION\stable-diffusion-webui\venv\lib\site-packages\pip_internal\commands\install.py", line 369, in run
requirement_set = resolver.resolve(
File "D:\STABLE DIFFUSION\stable-diffusion-webui\venv\lib\site-packages\pip_internal\resolution\resolvelib\resolver.py", line 92, in resolve
result = self._result = resolver.resolve(
File "D:\STABLE DIFFUSION\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 481, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "D:\STABLE DIFFUSION\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 348, in resolve
self._add_to_criteria(self.state.criteria, r, parent=None)
File "D:\STABLE DIFFUSION\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 172, in _add_to_criteria
if not criterion.candidates:
File "D:\STABLE DIFFUSION\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\resolvelib\structs.py", line 151, in bool
return bool(self._sequence)
File "D:\STABLE DIFFUSION\stable-diffusion-webui\venv\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 155, in bool
return any(self)
File "D:\STABLE DIFFUSION\stable-diffusion-webui\venv\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 143, in
[notice] A new release of pip available: 22.2.2 -> 22.3.1 [notice] To update, run: D:\STABLE DIFFUSION\stable-diffusion-webui\venv\Scripts\python.exe -m pip install --upgrade pip
Press any key to continue . . .
On win 10 I had no luck at all using virtual environments due to incompatible usage of environment variables. I downloaded base versions of everything (Python, Miniconda, git) and let them alter the system and user variables. then run "git clone https://github.com/CompVis/stable-diffusion.git" Then start a miniconda3 window from the win10 Anaconda2 menu. cd to the stable-diffusion project folder. Use this window to run all your conda and python code, otherwise you can't run conda. Do "conda install --file environment.yaml" in the folder you cloned into. Then run "python scripts/txt2img.py --prompt "a photograph of an ballet dancer riding a horse" --plms --n_samples 1" in the miniconda window in the project folder. best of luck!
also you need "conda activate ldm" everytime you open the miniconda window.
I'm having the exact same problem, I'd appreciate some help please
also you need "conda activate ldm" everytime you open the miniconda window.
After you did all of this it worked fine?
I'm having the exact same problem, I'd appreciate some help please
Hello, So now it worked for me (you can try this). Ps: I didn't follow the previous suggestion because I wanted to try something first.
So what I did is follow this video (like the first time I did). https://www.youtube.com/watch?v=vg8-NSbaWZI&ab_channel=Aitrepreneur
So 0) I uninstalled everything (pyton, git, stable diffusion) and deleted all the files 1) I downloaded the 3 softwares he requested. 2) I created a new folder on the C: disk (my error last time was to create the folder on the desktop i think) 3) I moved directly the files from the lower bar of the internet browser into the new folder 4) I installed pyton as he suggested 5) I downloaded git like he suggested but I have used the same new folder I created as the file location. (so now the git app is together with the other exe files and rar.) 6) i extracted the files he suggested into the new folder. 7) when you need to copy the same text on the code panel i did like this. (I have opened the page and copied the url, then on the code page I wrote git clone and pasted the url). The final result needs to be identical to his. 8) I followed all the other steps and it worked.
Let me know if this works for you :)
I'm having the exact same problem, I'd appreciate some help please
Hello, So now it worked for me (you can try this). Ps: I didn't follow the previous suggestion because I wanted to try something first.
So what I did is follow this video (like the first time I did). https://www.youtube.com/watch?v=vg8-NSbaWZI&ab_channel=Aitrepreneur
So 0) I uninstalled everything (pyton, git, stable diffusion) and deleted all the files 1) I downloaded the 3 softwares he requested. 2) I created a new folder on the C: disk (my error last time was to create the folder on the desktop i think) 3) I moved directly the files from the lower bar of the internet browser into the new folder 4) I installed pyton as he suggested 5) I downloaded git like he suggested but I have used the same new folder I created as the file location. (so now the git app is together with the other exe files and rar.) 6) i extracted the files he suggested into the new folder. 7) when you need to copy the same text on the code panel i did like this. (I have opened the page and copied the url, then on the code page I wrote git clone and pasted the url). The final result needs to be identical to his. 8) I followed all the other steps and it worked.
Let me know if this works for you :)
Thanks for trying to help but I tried your instructions and watched the video. I attempted it twice and ended up with the same result and problem you and I had last time. I'm keeping my folder in my C: disk and i'm using all the links in the video but still just keep getting the same errors.
If anyone could help that'd be great
Hi reecelightning, please post your error. also confirm you are using "base" installs of the 3 software ( installed on your actual OS), not virtual environments except the one referenced in environment.yaml, which is confusingly named "ldm".
Yes I am using the 2 base installs of the software installed on my OS. My error is the exact same as the one posted above by Galimba
@Galimba96 Try using python version 3.10.6, make sure you are using 64-bit version. It won't get an error with "Couldn't install torch"
Having a new issue now. Can anyone help with this?
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Commit hash: 828438b4a190759807f9054932cae3a8b880ddf1
Traceback (most recent call last):
File "C:\Ai\Stable-Diffusion\stable-diffusion-webui\launch.py", line 250, in
If anyone tried all the options and still can't fix it yet, try this: after uninstalling python there are still some files at users/yourusername/AppData. I installed and uninstalled for like 6-7 times with all different options like trying a different HDD, different root name etc. and still gave "Couldn't install torch" error. I don't know how, but it worked for me when I deleted all Python and pip files at AppData and then tried a clean installation of Python and Stable Diffusion WebUI. Good luck.
Same here, i have already tried all python versions from 3.10.6 to 3.11.0 and all i have is FRUSTRATION. Here are my errors:
C:\StableDifusion\stable-diffusion-webui>pause
Press any key to continue . . .
venv "C:\StableDifusion\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.8 (tags/v3.10.8:aaaf517, Oct 11 2022, 16:50:30) [MSC v.1933 64 bit (AMD64)]
Commit hash: 828438b4a190759807f9054932cae3a8b880ddf1
Installing requirements for Web UI
Launching Web UI with arguments:
Traceback (most recent call last):
File "C:\StableDifusion\stable-diffusion-webui\launch.py", line 251, in
@raybuay miniconda installed? If yes, then try to copy python3.dll file from python folder to miniconda folder C:\Users\you\AppData\Local\Programs\Python\Python310 → C:\Users\you\miniconda3
I'm having similar issues myself, where it's getting "Readtimeouterror" messages, and not sure where to go from here... Will try that video probably next, but idk... I just HATE Python in general for this very reason, that being that it's hard to work with... Question for anyone who has gotten stable diffusion to work, have any of you been able to set the environment up on one machine, then after torch is installed and whatnot, just copy the entire git clone including downloaded dependencies for torchvision, to an external drive then install into a different (and not portable, high end) system, and run it, so long as it's installed in the same place(without needing to reinstall torchvision)??? I don't have internet at home and my cell phone internet doesn't like this whole torchvision install stuff, I'm thinking, therefore I do most of my main stuff on a laptop whenceforth it's portable enough that I can hop on WiFi anywhere locally where I have free access to it
I have the same problem as raybuay. I tried installing miniconda and copying python3.dll, but it didn't help. I tried Python 3.11, but then Torch wouldn't install.
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Commit hash: 4b3c5bc24bffdf429c463a465763b3077fe55eb8
Installing requirements for Web UI
Launching Web UI with arguments:
Traceback (most recent call last):
File "C:\Users\J\Desktop\stable-diffusion-webui\launch.py", line 294, in
Does anyone know how to solve this?
I have the exact same problem as you greenMario. And i have tried in different machines and they all give the same end result. some with windows 10 updated all the way and some with a slight delay in update. I'm really giving up on this collaboration, there is for sure something wrong here.
C:\Users\you\AppData\Local\Programs\Python\Python310
yes, that didn't work, nothing does. and what's funny is that all youtube installation instructions are the same and none work right now!
@reecelightning try install Python 3.7
@raybuay @GreenMario94 check installation Media Feature Pack https://support.microsoft.com/en-us/topic/media-feature-pack-list-for-windows-n-editions-c1c6fffa-d052-8338-7a79-a4bb980a700a
Make sure you have Visual C++ redistributable 2015 installed
Check if folders cv2 and opencv_python exists in miniconda. Try deleting folders maybe they conflict. Path \lib\site-packages
Then running pip install opencv-python
r-set, thank you for trying to help but the exact same thing continues to happen. I'm really disgusted by this severely. It seems so easy in every youtube video there is but THEY all state the same procedure and it is just giving me the same result:
venv "C:\ai\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.7 (tags/v3.10.7:6cc6b13, Sep 5 2022, 14:08:36) [MSC v.1933 64 bit (AMD64)]
Commit hash: 46b0d230e7c13e247eabb22e1103ce512e7ed6b1
Installing requirements for Web UI
Launching Web UI with arguments:
Traceback (most recent call last):
File "C:\ai\stable-diffusion-webui\launch.py", line 294, in
THIS IS SO NOT COOL.
Ok, I just keep trying and it finally install. python 3.10.6 was the version that worked also the extra media install did help. All is good thanks r.y
@r-set Thank you, after I installed the Media Feature Pack it started to work.
I decided to do something extremely stupid, I did exactly as the launcher told me to do and put it in the Documents tab and somehow that just.. Fixed it. I'm by no means a technician, coder or such and don't even know the name of it. But that worked! I just wish they'd told us where to put it.
Same here.
venv "C:\stable-diffusion-webui-master\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Commit hash:
Oddly enough, Exit code 3 and error code 1 are occurring a lot. also I checked the App data folder, but it only contained the 3.10 version folder. But I still get error code 1.
I'm having the exact same problem, I'd appreciate some help please
Hello, So now it worked for me (you can try this). Ps: I didn't follow the previous suggestion because I wanted to try something first. So what I did is follow this video (like the first time I did). https://www.youtube.com/watch?v=vg8-NSbaWZI&ab_channel=Aitrepreneur So 0) I uninstalled everything (pyton, git, stable diffusion) and deleted all the files 1) I downloaded the 3 softwares he requested. 2) I created a new folder on the C: disk (my error last time was to create the folder on the desktop i think) 3) I moved directly the files from the lower bar of the internet browser into the new folder 4) I installed pyton as he suggested 5) I downloaded git like he suggested but I have used the same new folder I created as the file location. (so now the git app is together with the other exe files and rar.) 6) i extracted the files he suggested into the new folder. 7) when you need to copy the same text on the code panel i did like this. (I have opened the page and copied the url, then on the code page I wrote git clone and pasted the url). The final result needs to be identical to his. 8) I followed all the other steps and it worked. Let me know if this works for you :)
Thanks for trying to help but I tried your instructions and watched the video. I attempted it twice and ended up with the same result and problem you and I had last time. I'm keeping my folder in my C: disk and i'm using all the links in the video but still just keep getting the same errors.
If anyone could help that'd be great
in which part of the video?
Hello, I am having a problem with outdated driver - any sugggestion which update can I make for Win 10 ?
stderr: C:\AI\stable-diffusion-webui\venv\lib\site-packages\torch\cuda_init_.py:88: UserWarning: CUDA initialization: The NVIDIA driver on your system is too old (found version 10010). Please update your GPU driver by downloading and installing a new version from the URL: http://www.nvidia.com/Download/index.aspx Alternatively, go to: https://pytorch.org to install a PyTorch version that has been compiled with your version of the CUDA driver
HOW? I already have python 3.10.6 and it's on the Desktop but still do not work, what to do?
OSError: [WinError 126] The specified module could not be found. Error loading "C:\Users\user\Desktop\l;skdjv\stable-diffusion-webui-master\venv\lib\site-packages\torch\lib\caffe2_nvrtc.dll" or one of its dependencies.
Same error here.
Ребята, выручайте. Суть такая, имеется ПК: AMD Ryzen 7 5700X 4641MHz GigaByte B550 AORUS ELITE V2 Kingston FURY Beast Black RGB 3600mhz 32gb Radeon RX 580 GAMING OC X 8G Samsung SSD 850 EVO 250GB Samsung SSD 970 EVO 500GB WD Purple 3 Тб + Green 1 ТБ Chieftec 700W cft-700-14cs Deepcool gammaxx 400EX
Скачал и настроил stable diffusion, а именно stable-diffusion-webui-directml-master. В конфиге при запуске: @echo off
set PYTHON= set GIT= set VENV_DIR= set GIT_SSL_NO_VERIFY=true
set COMMANDLINE_ARGS=--lowvram --precision full --no-half --no-half-vae --opt-sub-quad-attention --opt-split-attention --opt-split-attention-v1 --disable-nan-check --autolaunch --theme=dark --skip-torch-cuda-test --no-half --disable-nan-check
call webui.bat
Так вот, Веб-интерфейс запускается и мало того, запускается процесс генерации, Но, при заключительной стадии, а именно сохранение проекта в папку output, компьютер отключается и не включается до тех пор пока я его не обесточу. То есть, это стабильно в один и тот же момент происходит, именно при сохранении, во время генерации все проходит нормально и быстро.
Драйвера, Amernimezone + SAM настройка для активации более 4G above.
Может у кого-нибудь есть идеи?