Install Stable Diffusion Locally (Quick Setup Guide)

Поділитися
Вставка
  • Опубліковано 6 січ 2025

КОМЕНТАРІ • 1,4 тис.

  • @luckyme5122
    @luckyme5122 Рік тому +1152

    If any one is having an "ERROR 9009" code after installing Python, just uninstall, then reinstall and select "ADD PATH" at the installer promote… Remember, we’re all in this together

    • @chespymontanez6173
      @chespymontanez6173 Рік тому +11

      Thanks!

    • @alaskagrafix476
      @alaskagrafix476 Рік тому +16

      Yes, this did the trick. I got to work with 3.10.10 by selecting Add PATH

    • @cameronbrew4301
      @cameronbrew4301 Рік тому +9

      Legend

    • @shokew2241
      @shokew2241 Рік тому +7

      thanks fixed it all

    • @zpepe
      @zpepe Рік тому +9

      Life saver you are sir! Thank you for taking the time to post that

  • @pure9873
    @pure9873 Рік тому +135

    For people getting the Wheel Error about the tourch requirment.
    Uninstall python completly, both in the control panel and in your %appdata folder delete pip folder then python in the programs folder (look up how to get to %appdata if you dont know how).
    Delete the AI folder you made.
    Redo the entire videos instruction BUT download version 3.10.6 instead.
    Durring the install select Add to path / install to path.
    Just continue and youll be good !

    • @zanderalberto3576
      @zanderalberto3576 Рік тому +7

      unable to use gpu issue?

    • @JBeamGT3
      @JBeamGT3 Рік тому

      Thank You!!!

    • @alanmichael2667
      @alanmichael2667 Рік тому

      Thanks!

    • @darrenrennie96
      @darrenrennie96 Рік тому

      Thank you!

    • @robertsolomon3328
      @robertsolomon3328 Рік тому +1

      This comment is gold. I had python issues for so long and this fixed it. Deleted the folders in appdata, uninstalled all python versions and deleted the paths in the env variables, reinstalled and now it works. Thanks so much!

  • @auronchernobog7460
    @auronchernobog7460 Рік тому +201

    If you're using this guide, it doesn't matter which version of python you select, just ensure to enable 'Add Python 3.1x to PATH' and you enable Python to be used for all users. Took me about 3 hours to figure second part out.

    • @mansouraldarei9860
      @mansouraldarei9860 Рік тому

      this solved the issue for me thanks

    • @kiragemini
      @kiragemini Рік тому

      How to enable this "Add Python 3.1x to PATH", is it something that i need to select before the installation or its an further step?

    • @auronchernobog7460
      @auronchernobog7460 Рік тому +5

      @@kiragemini it's selected during the initial setup.

    • @axiomdesign1
      @axiomdesign1 Рік тому +1

      this Solved my Issue. thanks Bro.

    • @subtlehal9061
      @subtlehal9061 Рік тому +1

      you are a godsend

  • @dictatorrich3412
    @dictatorrich3412 Рік тому +50

    Great tutorial, I finally got it working, but you really shouldn't have jump skipped the install process for all the programs. It took me like an hour before I saw the pinned comment telling me to have that checkbox. I could have had a lot of time and frustration saved. Also, installing git was a bit of a process, and had me decide between more things than I was comfortable with. I was not confident with all of my choices, and even though everything was right, it was confusing, and I could see someone slipping at this part. Otherwise, it got me where I needed to be, so thank you :)

  • @Sunbreaker7
    @Sunbreaker7 Рік тому +124

    Finally a tutorial that is simple, clear, and straightforward in explaining step-by-step on how to get stable diffusion locally. Thank you!

    • @emmanode
      @emmanode Рік тому +1

      how do i run it next time ? do i have to ren whole installer again?

    • @johnepling3664
      @johnepling3664 Рік тому +5

      @@emmanode you open the webui-user windows batch file in the stable diffusion folder, then put the IP it gives into the browser when its ready. It wont reinstall everything, itll skip straight to the end after the 1st time.

    • @KATZDIM
      @KATZDIM Рік тому

      ​@@johnepling3664❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤ all

  • @musicforvideolibrary
    @musicforvideolibrary Рік тому +1

    Hi Matt, I've got RuntimeError: "upsample_nearest2d_channels_last" not implemented for 'Half' error. Any thoughts?

  • @whyjordie
    @whyjordie Рік тому +5

    I keep getting the error at the last step, it won't run the 30 min download thing, it keeps saying ERROR: Could not find a version that satisfies the requirement torch==2.0.1 (from versions: none) ..... I'm not sure what to do. Earlier it said it needed an update to pip and i did that but then this happened.

    • @johnshane2061
      @johnshane2061 3 місяці тому

      me to did you ever get it to work?

  • @vadenallen4873
    @vadenallen4873 Рік тому +5

    So, everything on my to-do list has been moved to the back burner in the attempt to follow along with these tools, tips and tricks as they make their way down the fire hose that I am drinking from! I NEED MORE CAFFEINE!!! Keep them coming! You are a phenom!

  • @VinayVernekar93
    @VinayVernekar93 Рік тому +14

    People getting the pytorch error on Windows 11, follow below steps:
    1. Delete the venv directory from git directory
    2. Install Python 3.10.06
    3. Run webui.bat to re-establish the stable-diffusion-webui virtual environment (venv directory will be recreated with Python 3.10.6).

  • @o乂o
    @o乂o Рік тому +1

    This was so easy to follow! Thank you very much!

  • @beamngcrazy
    @beamngcrazy Рік тому +10

    got this err
    ERROR: Could not find a version that satisfies the requirement torch==2.0.1 (from versions: none)
    ERROR: No matching distribution found for torch==2.0.1

    • @greenflamingoentertainment8613
      @greenflamingoentertainment8613 10 місяців тому

      I used version 1.4, and had the same problem. I needed to close everything down in order to get enough memory not to get the error 2. It wouldnt download anything. I ended up shutting down the pc. Everything closed. Restarting the pc. Then I installed java script 3.10.6 over again. I had to delete the venv and delete pip folder in user/username/appdata/local. After doing all of that It finally downloaded. I have 8gb vram on an rtx 3060 and 64 gb cpu ram. Shouldnt be having that issue i would think. But i did. Absolutely clear up vram and restart and then do a fresh java install on the older java versions.

  • @rundiffusion
    @rundiffusion Рік тому +153

    Hey Matt! Great video! Thanks for showing your users our service! We've worked hard to make our service accessible to everyone all over the world. Those without the means to purchase a huge graphics card. We just released an update that brought our boot times down to a minute and 30 seconds! So now we're stable diffusion in sub 2 minutes!

    • @springbreakflorida
      @springbreakflorida Рік тому +2

      That's awesome! ♥

    • @Timmydw
      @Timmydw Рік тому +2

      Thank you for creating stable diffusion

    • @bambolinazaza6051
      @bambolinazaza6051 Рік тому +6

      hi run Diffusion, awesome product.. but have run into an issue.. maybe you can help.. ??
      RuntimeError(message)
      RuntimeError: Error running command.
      Command: "C:\AI\stable-diffusion-webui\venv\Scripts\python.exe" -c "import torch; assert torch.cuda.is_available(), 'Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check'"
      Error code: 1
      stdout:
      stderr: Traceback (most recent call last):
      File "", line 1, in
      AssertionError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check... any idea as to the solution ?? Lee

    • @Haradeas
      @Haradeas Рік тому +2

      Be careful with Run Diffusion, I advice to read their terms and conditions, they are horrible imo. As fas as I understood them, everything you make will be their property + you cant use it commercially. (correct me if I am wrong ofc, but that is what I read)

    • @thewireheadmechanist
      @thewireheadmechanist Рік тому +4

      @@Haradeas Section 8: "We do not assert any ownership over your Contributions. You retain full ownership of all of your Contributions and any intellectual property rights or other proprietary rights associated with your Contributions. "

  • @friendfacemcriffhard000
    @friendfacemcriffhard000 Рік тому +10

    Hey Matt, just wanted to thank you for your content. Amazing world we live in today - thank you for sharing this with us!

    • @SoZo
      @SoZo Рік тому

      why it's says python error when i installed everything

  • @MrMrMrEFE
    @MrMrMrEFE Рік тому +10

    Thanks a lot man!! I followed every step, and it was super clear and easy to follow. It works 100%!!
    Thank you again for taking the time to explain this to us. You have a new follower

  • @Actaeonben
    @Actaeonben Рік тому +8

    Hey Matt thank you for everything, just wanted to ask you , when i run the webui-user, it gives me two errors
    ERROR: Could not find a version that satisfies the requirement torch==1.13.1+cu117 (from versions: 2.0.0, 2.0.0+cu117)
    ERROR: No matching distribution found for torch==1.13.1+cu117

  • @babakheshmatsaran7474
    @babakheshmatsaran7474 Рік тому +1

    I saw too many videos, but I couldn't install it, but with your video, I did it. Thanks, you are awesome

  • @louiscifer3317
    @louiscifer3317 Рік тому +8

    Excellent guide. Got it up and running in minutes and producing images just like Midjourney. Thanks

    • @mildmethod
      @mildmethod Рік тому +1

      Just like MJ? That wasn't my experience. What settings/keywords are you using to get MJ-like images?

    • @pineapplepawnch523
      @pineapplepawnch523 Рік тому

      @@mildmethod use lexica to get some good prompts

  • @creatorsmafia
    @creatorsmafia Рік тому +1

    The step-by-step instructions were clear and easy to follow, so I successfully installed Stable Diffusion and experimented with different settings.

  • @onlinebaas
    @onlinebaas Рік тому +10

    Works great. For those struggling with Python, remember to update your environment variables.

    • @bambolinazaza6051
      @bambolinazaza6051 Рік тому +3

      Hi JJ.. having problems with python, can you elaberate what you mean update your environment variables.

    • @woberttodd
      @woberttodd Рік тому

      @@bambolinazaza6051 there's a box to check in the installation of Python. It says Add Python to environment variables in the advanced options. So go back and modify the installer.

    • @MM-we5qb
      @MM-we5qb Рік тому +2

      How do you do that?

    • @joebloe1643
      @joebloe1643 Рік тому

      @@MM-we5qb solved in pinned comment btw

    • @cosmotect
      @cosmotect Рік тому +2

      ​@@bambolinazaza6051 there is a checkbox for that when installing python

  • @tingliasmr
    @tingliasmr 9 місяців тому

    You are an absolute hero! I've got a mac and did start going down the Homebrew installation route but hit a brick wall straight away and as I'm not techy at all I thought ffs but then remembered about this video and the cloud etc so thanks a mil! I've just started working on a project and need stable Diffusion so this really is a life/sanity saver! ;)

  • @yehoshuaberman
    @yehoshuaberman Рік тому +3

    Hi. I was able to execute all of your instructions until the part at 6:00 in the video where you say to find webui-user.bat file and click on it to run the scripts. I do not see any such file. Can you help me?

  • @gedion4000
    @gedion4000 Рік тому +4

    Are there some additional settings needed for python? i can open it, and see that its installed, but when i run the webui-user @6:00 the console tells me "python was not found"
    Edit: I installed 3.10 (64-bit) and tried both on my C drive, and the drive that contains the AI folder

    • @shokew2241
      @shokew2241 Рік тому

      same

    • @gedion4000
      @gedion4000 Рік тому +4

      @@shokew2241 so you're having the same issue of python not found? Did you download it from python themselves? Cause that was my issue. This video skips over a very important step, and can be fixed by uninstalling python, and then searching/installing it for it in Microsoft apps. It places everything correctly for stable diffusion to see.

    • @wfberkhof
      @wfberkhof Рік тому

      @@gedion4000 This solved the problem for me. I uninstalled python and then installed it via the Microsoft store and it worked.

  • @DarthBlender
    @DarthBlender Рік тому +1

    I got this error after some minutes. Do you know how to solve ?
    File "C:\AI\stable-diffusion-webui
    epositories\CodeFormer\basicsr\__init__.py", line 11, in
    from .version import __gitsha__, __version__
    ModuleNotFoundError: No module named 'basicsr.version'

  • @iampoot
    @iampoot Рік тому +7

    Just to save some people time:
    GIT: To make Ctrl+V work in GIT, click menue top left of GIT, properties, and enable the CTRL+V option
    Python: When installing, check the 'path' box at the start of the installer options dialogue, or you wont be able to run the batch file sucessfully.

    • @pedro-ideia1437
      @pedro-ideia1437 Рік тому

      Thanks a bunch for your comment! I had Python installed but without that feature, and it woudn't work...

  • @Solo92762
    @Solo92762 Рік тому

    Thank you for your Video Sir - I have tried 3 other installation tutorial videos and non of them was working for me, after I have followed your steps - BOOM!!!!, there its working!!!!!! Thanks again good Sir

  • @mugennam1
    @mugennam1 Рік тому +28

    for those that are wondering about machine requirements: You'll need a PC with a modern AMD or Intel processor, 16 gigabytes of RAM, an NVIDIA RTX GPU with 8 gigabytes of memory, and a minimum of 10 gigabytes of free storage space available. A GPU with more memory will be able to generate larger images without requiring upscaling

    • @nigelhancock3580
      @nigelhancock3580 Рік тому +2

      You mention NVIDIA specifically, is that why I can't get it running with my AMD Radeon 6950?

    • @Haradeas
      @Haradeas Рік тому

      @@nigelhancock3580 technically it is possible to use AMD. But Nvidia has a special hardware in the GPU that makes it faster. I tryed it with an RX 580 but the time that was need was horrible. 1 picture 10 min. So I gave up on that and gonna upgrade my pc ^^

    • @elyakimlev
      @elyakimlev Рік тому

      I have an RTX 2060 6GB. Would it work? Is the 8GB a minimum requirement?

    • @elvira-irinareisinger6370
      @elvira-irinareisinger6370 Рік тому +3

      Hello, how can this be when a big online tutorial claims that that first number is nearly meaningless? I'm a beginner and did 95% of that tut and just stuck with an error but it's not connected to the RAM

    • @tomschuelke7955
      @tomschuelke7955 Рік тому

      Well so with a Geforce 1080, i am outdated? I wouldnt mind if it is slower... but wouldnt it work at all? or do i have to steal the computer of my son?

  • @TzarBomb
    @TzarBomb Рік тому

    As a hobbyist artist I was avoiding it like the plague... I'm finally giving in... the genie is out of the bottle, maybe it will improve my creativity.

  • @JBuchmann
    @JBuchmann Рік тому +45

    Don't make the mistake I made by installing Python 3.11 (the latest verion). It has to be 3.10.9. Otherwise you'll get an error when runnint the .bat file.

    • @JBuchmann
      @JBuchmann Рік тому

      @Joseph Chaney At the end of the day, no luck for me... I get a somewhat cryptic error in the terminal (at the end of the .bat file processing) that is probably about a too small of a GPU. Oh well, it was worth a shot. I guess it's off to that web app alternative. :)

    • @florianl6764
      @florianl6764 Рік тому +2

      Installed 3.11 first as well and installed 3.10 afterward, but still had an issue. The problem was fixed after I uninstalled 3.11 and renamed the folder with python 3.10 to pythong311

    • @JBuchmann
      @JBuchmann Рік тому

      @@florianl6764 Oh right, I had to do that also; I thought I had just made a mistake or the 3.11 didn't uninstall correctly.

    • @dizisnotavailable
      @dizisnotavailable Рік тому

      it worked with 3.11 eventually. i also got error messages, but chatGPT could help.

    • @jolotschka
      @jolotschka Рік тому +1

      Yess you get an error when finding appropriate version of pytorch which is essential for AI on python

  • @ClancyInkk
    @ClancyInkk Рік тому

    Previous guide for downloading to nvidia lead me to a 'jsonmerge' folder not beinng found... Several failed downloads later I deleted it all and decided to follow your steps as law and... thank you, it's finally up and running. Now i'll slowly download updates and check it still runs smooth. Thank you for your videos Matt!

  • @Simplypallets
    @Simplypallets Рік тому +15

    I got mine to work However, at the @6:02 talking about the .BAT file. Make sure you download the Python version 3.10 not the newest. It will tell you to downgrade to make it work. Also another big thing I had to figure out. That BAT file couldnt launch Python at first. If you right click the file and click "edit" I had to edit it to run. Change the line "set PYTHON=" to add "py" at the end. entire thing should look like "set PYTHON=py". Save and close, Open again. Hope that helps anyone

    • @Tony_Calvert
      @Tony_Calvert 10 місяців тому

      You're the goat

    • @Andy-fl5nw
      @Andy-fl5nw 8 місяців тому

      it works, thanks

    • @remcosteijvers7487
      @remcosteijvers7487 6 місяців тому

      Thanks a lot! To make it clear: it's on Line 7 - if not defined PYTHON (set PYTHON=py)

    • @vap0re0n
      @vap0re0n 4 місяці тому

      actual goat, couldnt find this PATH shit every1 mentioned but your solution solved it

  • @greggdaly967
    @greggdaly967 Рік тому

    Outstanding video! I have my Stable Difussion build running on my Win10-i9-9900K-2080 TI system. It just took a few minutes (I had python and git already installed, making it quicker!). Thank you! This is great!

    • @ijayraj
      @ijayraj Рік тому

      did you got any error i have got two and can't get rid of them could you please help

  • @mrpanicy
    @mrpanicy Рік тому +4

    I am having an issue running the webui-user.bat file. It's kicking back an error "ERROR: Could not find a version that satisfies the requirement torch==2.0.1 (from versions: none)" and "ERROR: No matching distribution found for torch==2.0.1". Then gives error code 1 at the end and states it cannot install torch.
    I don't know how to proceed. Does anyone have any advice?
    Great tutorial thus far though, there are a good number of steps but I never felt lost!

    • @MadHatterMercury
      @MadHatterMercury 11 місяців тому

      I am having this same issue. I ended up getting around it *I think* by running this from elevated command prompt
      %yourpathhere%\AI\stable-diffusion-webui\venv\Scripts\python.exe -m pip install torch torchvision

  • @happyslapsgiving5421
    @happyslapsgiving5421 Рік тому +1

    3:22
    *HELP*
    When I give it the installation command, as instructed, it doesn't start installing and gives me a "not supported" line instead.
    What do I do?

  • @kalako-4821
    @kalako-4821 Рік тому +3

    Do i have to run the bat file every time i want to open stable diffusion locally? because i saved the local link and it worked the first time bun now that i want to open it again when i paste the link in the browser it doesn't open

  • @davidodunlami9374
    @davidodunlami9374 Рік тому

    I'm barely 4 min into the video , and I'm already loving its content.... Thank you so much !!!!

  • @stephen3109
    @stephen3109 Рік тому +4

    How do you relaunch it after closing the tab? I book marked it but now it says it refuses to open. Do you have to reinstall it every time you wanna run it?

  • @JadRaouda
    @JadRaouda Рік тому

    I mean...I can't say enough about how perfect thsi video was- It's exactly what i was looking for - I'll be bacl to figure out how to install and use additional models and tools - THANKS!!

  • @ThatCrazyGuy39
    @ThatCrazyGuy39 Рік тому +5

    I followed your instructions however my batch file is telling me that Python cannot be found and was unsuccessful.

  • @iamuniquelyhuman
    @iamuniquelyhuman Рік тому +1

    Following the video and when clicking on the .bat file 6:03 into video I get Python pop-up asking to Modify, Repair or uninstall (latest Python version 3.12)

  • @cutout.pro.7230
    @cutout.pro.7230 Рік тому

    We are also working on Al Art recently, Al Art is the future! Thanks to the blogger for sharing.

  • @trabay86
    @trabay86 Рік тому +8

    I am soooo very grateful for this video!! I'm an old school computer programmer (think COBOL) and I had NO CLUE how to get started but I went right along with you and I'm up and running!!! so thankful!!! You're doing the lord's work out here LOL (by lord I mean our AI overlord, I for one welcome our AI overlords.... lol)

    • @dercrokk
      @dercrokk Рік тому

      AS being in cobol too since a long too, modern interface (everything past 90) are pretty confusing

  • @Abhishekkothari-bz7mr
    @Abhishekkothari-bz7mr Рік тому +6

    Hey Matt, I did everything as shown in the video and was able to complete the installation but I am getting an error when II try to open the local URL.
    Is there a fix for that?

    • @neilod
      @neilod Рік тому

      Hey mate, back in the stable-diffusion-webui folder, run the webui-user batch file first. Once it runs, you'll be able to open the url.

  • @brianjoseph8739
    @brianjoseph8739 Рік тому

    Wow, I have been trying to install control net, but had no idea on how to download Stable Diffusion. I scoured the internet for tutorials, but all of them assumed that we already downloaded stable diffusion. I thankfully found this video and am one step closer to getting control net. Thank you so much Matt!
    Clear, concise, easy steps, and funny too. Great content. You are a lifesaver.

  • @-Sev
    @-Sev Рік тому +8

    If you're getting error code 1, a possible problem is that the newest version may actually be too new. Going back and using 310 instead of 312 solved it for me. If it then starts giving you an error about not being able to find python at the prior directory, I worked around this by making a copy of the 310 directory and making it a 312 directory. It was none the wiser and I finally after hours of working on this was able to get it to actually run.
    -
    This also resolved my error about unable to find a compatible torch version

    • @bakirshakirov
      @bakirshakirov Рік тому

      how did you do it sir?

    • @TheHorodateur
      @TheHorodateur Рік тому

      1.) Install version 3.10
      2.) Make a copy of that install folder
      3.) Deinstall 3.10.11
      4.) Intall newest version and set "Add...to PATH"
      5.) Rename that folder and name the copy of version 3.10 into what ever the newest version is. @@bakirshakirov

    • @seyedmohammadaminkashanigh9611
      @seyedmohammadaminkashanigh9611 11 місяців тому

      Thanks it was very useful👏👏

  • @potaterjim
    @potaterjim Рік тому +2

    I get to 5:55 and get an error on the command prompt: "Launch unsuccessful. Exiting"

  • @Itisrealtalk
    @Itisrealtalk Рік тому +21

    Hey Matt, this is an amazing video, loads of love from India. I'm getting two errors as below:
    ERROR: Could not find a version that satisfies the requirement torch==1.13.1+cu117 (from versions: 2.0.0, 2.0.0+cu117)
    ERROR: No matching distribution found for torch==1.13.1+cu117
    Error Code: 1
    Could you please help me with the same.

    • @masterbruce556
      @masterbruce556 Рік тому +4

      I have the same problem

    • @DoubtfulDex
      @DoubtfulDex Рік тому +2

      Same problem, anybody found the solution?

    • @pjponciano5931
      @pjponciano5931 Рік тому +2

      hey, same problem here.. Does anyone know how to go about this?

    • @tky546
      @tky546 Рік тому +1

      @@igemolpindo5653 ??

    • @swenlee
      @swenlee Рік тому +2

      Seems like there is a problem if you do not have nvidia graphic card.

  • @BighypeBeats
    @BighypeBeats Рік тому +1

    @6:02 can someone help me? I have 2x webui-user without .bat or .sh. I dubble clicked the windows batch file and got this error: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check. What to do???

    • @Rykyart
      @Rykyart Рік тому

      I have the same problem :/( Did you solve this somehow?

    • @Rykyart
      @Rykyart Рік тому +1

      I found out the problem. Delete everything and start over, you have installed the new Python before, you have to install the old version 3.10.10 and continue. It will work.

  • @zeloguy
    @zeloguy Рік тому +5

    I could not get this to work with Python > 3.10.9 . Downgraded to 3.10.9 and had no problems. Great video as always!

    • @JoramVandebeld
      @JoramVandebeld Рік тому +2

      I had the same problem and also had to delete the 'venv' folder from the 'AI' folder

    • @EH21UTB
      @EH21UTB Рік тому

      Same, a bit of a newbie, can I just install also 3.10.9 or do I have do remove the 3.11 entirely? How is it done?

    • @Roanix1
      @Roanix1 8 місяців тому

      Same here

  • @tomkent4656
    @tomkent4656 Рік тому +2

    Love how you call it a quick setup guide!

    • @hatapp4729
      @hatapp4729 Рік тому

      ❤️❤️✍️Hi! Tell Expert Jim that you were referred for the right strategy to financial freedom WhatsApp✟𝟏𝟒𝟑𝟏𝟑𝟏𝟗𝟔𝟐𝟓𝟕 Thanks for the review.❤️💬💬💬💯......

  • @seraiahdaniella3755
    @seraiahdaniella3755 Рік тому +3

    Matt, you are so awesome. Thank you for sharing this tutorial! Cheers 🥂

  • @Muvi_Nfl
    @Muvi_Nfl Рік тому

    i stuck at 6:14 :")
    i get this problem ERROR: Could not find a version that satisfies the requirement torch==1.13.1+cu117 (from versions: none)
    ERROR: No matching distribution found for torch==1.13.1+cu117
    already done a lot of stuff but still met this same dead end
    is it because my gpu? i use nvidia gtx 1050 ti
    i5 10400f processor

  • @wrillywonka1320
    @wrillywonka1320 Рік тому +3

    This took me forever to learn since i kno nothin bout comouters but if your getting the error while running the webui, you need to uninstall python (i had 3.11) and delete the "venv" folder in your stable diffusion folder and reinstall python 3.10.6 exactly and it will fix it

    • @iamlegacy-x
      @iamlegacy-x Рік тому +1

      thanks mate fixed my problem but after this it is talking a lot of time and never completes that 2.3gb

    • @JasioTerminator
      @JasioTerminator Рік тому

      thank you it fix problem!

  • @robertgoldbornatyout
    @robertgoldbornatyout Рік тому

    ME TOO I AGREE ,Finally a tutorial that is simple, clear, and straightforward in explaining step-by-step on how to get stable diffusion locally. Thank you!

  • @rogerbruce2896
    @rogerbruce2896 Рік тому +14

    just a couple notes. Don't load python 3.11x I wanted the latest python version. However stable diffusion errors out when loading and asks you to load 3.10x I had to uninstall everything and start from scratch. Also for some reason I can't get 2.1 to work, however 2.0, 1.4 and 1.5 works fine. fyi

  • @nickeng
    @nickeng Рік тому +1

    Thanks a lot for such a detailed tutorial. Don't know a thing about all this stuff, gits, python and so on. I just followed all the steps and now going to play with that thing.

  • @racinggames1
    @racinggames1 Рік тому +5

    are the pictures for commercial use then?

    • @mreflow
      @mreflow  Рік тому +3

      Yes. You own the images that you generate.

  • @arianacason2199
    @arianacason2199 Рік тому +2

    So, my next question is, do i go to the .bat file everytime I need to use stable diffusion? How do I open it up to run, day to day?

  • @Musashi_XIV
    @Musashi_XIV Рік тому +5

    whats the biggest difference in using 1.4 original over the new 1.5? And significant advantages or disadvantages?

    • @nesir82
      @nesir82 Рік тому

      I am interested in knowing this too. It says Runwayml which is really good tool for animations. I wonder if I can use just 1.5.

  • @StatetheStatus
    @StatetheStatus Рік тому

    This is ONE OF THE MOST USEFUL UA-cam CHANNEL EVER

  • @themerlefrenchies
    @themerlefrenchies Рік тому

    Awesome advice. United 🎉🎉🎉

  • @zeloguy
    @zeloguy Рік тому +19

    I believe it's insanely important to let your users know AMD Graphics cards will not work. (although does have a workaround and technically works [eventually]). Even something as beefy as a 6800XT or something like that will take FOREVER to render and that is after using the workaround. This is because of the lack of CUDA cores on the GPU. Don't want to get too technical on y'all but if you have an AMD card (even a new one) I would not have high hopes.

    • @camar078
      @camar078 Рік тому +5

      I can confirm that. About 50% of the users here will not benefit from the local solution because the image generation via CPU simply takes too long. In the meantime, all arguments actually speak for nvidia in the graphics area, even if I have been satisfied with AMD cards for more than 20 years.

    • @zeloguy
      @zeloguy Рік тому +1

      @@camar078 I have bought a NVidia card to compare the 2. I will compare results between the two when I get everything setup and ready to go.

    • @Gaphalor
      @Gaphalor Рік тому

      ​@@zeloguy Does anyone else have the problem that when generating in SD the GPU ignores the templimits set? I have my temp limit in afterburner to 83°c and I never had any issue in every game or application it doesn't run over that limit, but then I used SD and it literally ignored it and went up to 95° and Hotspot even 105°. I tried a lot to downvolt set power to 80% and set even lower temp limit but it ignores it completely in SD and still went up to 90°
      What is this can't figure it out and why does it work in any apply cation but not in Stable Diffusion? Anyone else running in some GPU issues or is it just me?
      BTW I run a GTX1070ti 8GB, 16GB ddr4 3200 and AMD Ryzen 5 3600
      Might the 1070ti be too old at this point? It takes around 30-60s for a batch of 4 512 to 800 Pixel Images so I am happy with the speed, it's just I cannot get the heat limit to work. I might need to either invest in better cooling or just buy a newer GPU...

    • @zeloguy
      @zeloguy Рік тому

      @@Gaphalor What graphics card are you using? I would also use MSIAfterburner to create a custom curve. Those heat numbers will burn out your card in no time. Remember that a game is going up and down with the amount of graphics card usage it utilizes. A1111 will use 100% for however long you are rendering and if the fans are not set to handle that (or can't handle that) then you are going to get a toasty (and eventually dead) graphics card.

    • @Gaphalor
      @Gaphalor Рік тому

      @@zeloguy I have an Asus Rog Strix 1070ti 8GB, so with 3 Fans and I put all of them to 100% at even 80 degrees, it helped a bit but not enough. I just wonder why it keeps pushing 100% when I set heat limit, normally the card stays perfectly in the limit.
      So its basicly not possible to run stable Diffusion on less then a 100% card?
      If thats the case I think I will not use Stable Diffusion until I have another card, I wont risk to burn my GPU down

  • @TheCampisis
    @TheCampisis Рік тому

    Matt Is there anyway you do 1 on 1 help. I'm struggling with this

  • @CosmosWorld
    @CosmosWorld Рік тому +4

    Thank you for the tutorial! It was plain simple and nice!

  • @hodgemann
    @hodgemann Рік тому +7

    I'm running Stable Diffusion, plus tons of other AI creation tools, and fractal exploration with Visions Of Chaos. A really fun and fantastic program from Down Under.

    • @mreflow
      @mreflow  Рік тому +4

      I'll have to look into Visions Of Chaos. I haven't heard of that yet.

    • @hodgemann
      @hodgemann Рік тому

      @@ianPedlar Did I mention that Visions Of Chaos is free? Best price!

  • @avinashjaisingh7510
    @avinashjaisingh7510 Рік тому +1

    AFTER STRUGGLING WITH MANY MANY VIDEOS, THIS ONE GOT ME THROUGH! F*CKING AMAZING. THANK YOU

  • @gamercatsz5441
    @gamercatsz5441 Рік тому +2

    Guys, he's doing this on a beast of a computer, lower your expectations up if you don't have a ton of vram on your gpu XD

  • @santonio7283
    @santonio7283 Рік тому +2

    Hi Matt, I followed the steps and was able to load Stable Diffusion in my browser. However, when Ii click generate, I got "Connection Errored Out" error. Do you have any ideas why?

    • @mreflow
      @mreflow  Рік тому +1

      I'm not sure. Do you have a decent GPU on your computer? You should have at least 8GB of VRAM to run the local version.

    • @nooo3333
      @nooo3333 Рік тому

      You have to keep the Python open. I closed python and tried running the stable Diffusion and got the same error. I Reopend the webui-user.bat and then it worked fine.

    • @FEARTHEFUTURE
      @FEARTHEFUTURE Рік тому

      It should say on the cmd window why it didn't run. If you have a slow GPU might have to close apps that aren't being used. I'm running it on a 4gb gtx1650 and I get that when they are looking for more vram

    • @buskavideo7149
      @buskavideo7149 Рік тому

      I had the same error. Followed other advice in these comments to uninstall Python 3.10.10 and install 3.10.09 instead. That seemed to fixed it as I can now generate images.

  • @chrisoconnell8432
    @chrisoconnell8432 Рік тому +2

    FYI, this will install on a Mac. Works with both intel and Apple CPU macs. It won't be able to use the GPU so it will be slow, but I did get it working. Install procedure is mostly the same as the linux procedure, but I used Homebrew for installing the dependencies.

  • @marcusj4641
    @marcusj4641 Рік тому +5

    I followed your instructions step by step. Everything went exactly as you said until I went back to the stable-diffusion-website folder. There is no webui-user.bat file the last two files are both webui-user.

    • @fabel213
      @fabel213 Рік тому +1

      Same for me 😅

    • @marcusj4641
      @marcusj4641 Рік тому

      @@fabel213 hopefully someone has an answer or fix. I really want to be able to install locally.

    • @surfcitizen
      @surfcitizen Рік тому

      Yep, same here too. Went back uninstalled python 3.11 and installed 3.10.9 as one user suggested but still no webui-user.bat file

    • @asmrfamily6505
      @asmrfamily6505 Рік тому

      me too so sad

    • @thestaf2001
      @thestaf2001 Рік тому

      i have the same isue has anybody found the solution?

  • @ComicEnthusiast01
    @ComicEnthusiast01 Рік тому +2

    Intel i5 8th gen 512gb ssd, nvidia GTX 1050 4gb, stable diffusion installed on HDD, 576×576 size, runs like butter! Thank you for your tutorial sir 🙏

  • @jimberry7865
    @jimberry7865 Рік тому +2

    Is there a list somewhere that says what the minimum GPU specs are? I have an older computer I'd like to run this on so I don't have to install so much runtime stuff on my main PC.

    • @r34ct4
      @r34ct4 Рік тому +6

      NVIDIA RTX GPU with 8 gigabytes of memory.
      Very important NOTE: From what I have read, AMD cards are essentially NOT supported (I have an AMD card). adding "COMMANDLINE_ARGS= --lowvram --precision full --no-half --skip-torch-cuda-test" to webui-user.batch file is a work-around but ends up using your CPU for processing which drastically lowers performance.

    • @mreflow
      @mreflow  Рік тому +2

      Thanks for jumping in! Super helpful. :)

  • @flvvvvvvv
    @flvvvvvvv Рік тому +2

    why is this showing up? i installed python
    "Couldn't launch python
    exit code: 9009
    stderr:
    Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases."
    please help

  • @doctorpipstone3047
    @doctorpipstone3047 Рік тому +2

    Great job providing another solution. But had challenges fulling loading it. When you ask to double click on "webui-user" batch file, nothing happens as the error states that python could not be found. Yet as per your instructions, python is fully loaded and in my system. Any advice? Many thanks. Cheers..

    • @glenyoung1809
      @glenyoung1809 Рік тому

      See the pinned comment. "When installing Python, make sure to enable the "Add Python 3.10 to PATH" checkbox. Otherwise, your .batch file may not find the Python installation".

  • @WoodenCreationz
    @WoodenCreationz Рік тому +2

    Amazing video!!!! This is almost as good as midjourney. Midjourney do a bit better job. But hey for free... its really darn close and its not blocking things. That go old really quick. its pretty fast compared to waiting in a queue for midjourney! As everyone else stated.. If you took the default python install. Uninstall it. Reinstall it but take the option to install in a customer directory for all users and select a folder path you want to save too. Then everything will work. Otherwise when you launch the webui.bat file it fails to find python...All and all best tutorial I have ever followed! Thank you!!! Brian

  • @BelaMadeira
    @BelaMadeira Рік тому +9

    Mind = blown, great stuff Matt, thank you for this! Do the latter iterations of Stable Diffusion already contain the previous versions or are are they entirely different things?

    • @MiTreasureHunter
      @MiTreasureHunter Рік тому +1

      Seems they do not since have to download each separately.

  • @herrremo
    @herrremo Рік тому

    Casey Czarnomski
    hace 1 mes
    I got stucked at 6:00 , the promp screen appears saying "press any key to continue" and it closes sudenly when I hit a key, any ideas? thanks for the video

  • @AXOHH
    @AXOHH Рік тому +4

    Hey guys heads up if you get an error that says "cannot connect" make sure you install on the main drive instead of an SSD

  • @MemeKing44
    @MemeKing44 Рік тому

    i did, it ty so much, had to follow each detail including versions EXACTLY! but finally worked ty!

  • @congratsyourearestaurant
    @congratsyourearestaurant Рік тому +3

    Hey thanks for this video! I got to the part where I managed to get the .bat file to run, it installed everything. I got to the part where it says Running on Local URL, and then it gives me a URL. When I try to put it into browsers though, it doesn't load. Any ideas?
    EDIT: Solved it! After running the .bat file, press any key to close the cmd prompt (the DOS window). Then go back to your file explorer and open the .bat file again. Once that's open and showing you the URL, open the URL in a browser, it'll work!

    • @Geetotsav
      @Geetotsav Рік тому +1

      hey. i am not getting the .bat file , instead of that i am just getting webui-user file, not webui-user.bat. But the type of file , i can see in properties is .bat file. i hope that is ok
      the issue is on doble clicking on that webui-user file , it is showing error - "Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check". what should i do next ?

  • @tedmurphy2576
    @tedmurphy2576 Рік тому

    Thank you for helping me install stable diffusion locally. Was able to follow along easily. Liked and subscribed.

  • @nicolerivera7221
    @nicolerivera7221 11 місяців тому +6

    Don't downloadthe latest python. It only works until python 3.10.6 version. If you installed the latest version just uninstall and delete the venv folder in webui

  • @ufoformdad5845
    @ufoformdad5845 11 місяців тому +5

    ERROR: Could not find a version that satisfies the requirement torch==2.0.1 (from versions: none)
    ERROR: No matching distribution found for torch==2.0.1 tried 3 computers, same error

  • @МоМавалски
    @МоМавалски Рік тому

    Благодаря! Looking forward for your videos dude, the best AI channel I'm subscribed to so far!

  • @vincentlemineur
    @vincentlemineur Рік тому +5

    Thanks Matt! It's my first time trying this and I thought it would work if I followed your really precise intructions. I struggled with Python at some points but managed to "go to the final"... To finally read this at the and of the batch: "Stable diffusion model failed to load, exiting...". No clue about what I should do! I feel like I'm back to my mid 80s Commodore 64 issues...not for me 😂(I've checked a lot of solutions in the comments but I don't seem to find that specific problem). Any advices around?! ☺

    • @josefekelund6247
      @josefekelund6247 Рік тому +1

      I ran into the same problem 🤔

    • @vincentlemineur
      @vincentlemineur Рік тому +1

      @@josefekelund6247 are we cursed, Josef? 😁🤝

    • @RPiehli
      @RPiehli Рік тому

      Same here 🤔

    • @vincentlemineur
      @vincentlemineur Рік тому +1

      @@RPiehli It's a sign: Creativity and Photoshop will remain my tools! 😁

    • @superkarrtoon
      @superkarrtoon Рік тому

      cant believe noone has answered this

  • @HerecomestheCalavera
    @HerecomestheCalavera Рік тому

    Followed the guide made it all the way to the interface at 6:42 but when I try to do anything it says in the command prompt window "RuntimeError: CUDA error: an illegal memory access was encountered
    CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
    For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
    Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions."

  • @sanelemayeza8107
    @sanelemayeza8107 Рік тому +4

    Thank you,
    Getting the errors:
    ERROR: Could not find a version that satisfies the requirement torch==2.0.1 (from versions: none)
    ERROR: No matching distribution found for torch==2.0.1
    Any ideas on how to resolve this one?
    Much appriciated

  • @KarasunosAleiro
    @KarasunosAleiro 9 місяців тому +1

    5:59 i dont have the folder in my computer for some reason anyone know what i might have done wrong?

  • @internetshort3962
    @internetshort3962 Рік тому +3

    if anyone having python not found error, try to delete "venv" folder inside stablediffusion folder. the retry opening ".bat" file

    • @Spyduhmahn
      @Spyduhmahn Рік тому

      This helped me. I was reinstallin python versions with no progress, until I deleted the venv to redirect to the right python path

    • @evgeniypupkin5763
      @evgeniypupkin5763 Рік тому

      that worked!

  • @Thehouseoftatum
    @Thehouseoftatum Рік тому

    you are really the goat I always learn something new that no one else is talking about. You're doing God's work lol Thanks

  • @kirkwcowgill
    @kirkwcowgill Рік тому +3

    says Python was not found, but I installed it...

  • @blindedjourneyman
    @blindedjourneyman Рік тому

    been meaning to get this for a while now, thank you for the guide on setting it up

  • @bambolinazaza6051
    @bambolinazaza6051 Рік тому +4

    Love the video and all your channel and just how up-to-date you are Matt. have run into an issue.. I hope you can help me with, while installing python - got this error; raise RuntimeError(message)
    RuntimeError: Error running command.
    Command: "C:\AI\stable-diffusion-webui\venv\Scripts\python.exe" -c "import torch; assert torch.cuda.is_available(), 'Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check'"
    Error code: 1
    stdout:
    stderr: Traceback (most recent call last):
    File "", line 1, in
    AssertionError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check... any idea as to the solution Matt?? Lee

    • @dustinolson
      @dustinolson Рік тому +2

      right-click on the webui-user.bat file > choose edit > replace "set COMMANDLINE_ARGS=" with "set COMMANDLINE_ARGS= --skip-torch-cuda-test" > save > run the webui-user.bat file

    • @Danielmu63
      @Danielmu63 Рік тому +1

      That seems to be working for me. Thanks!

  • @VibeVaultMusic
    @VibeVaultMusic 11 місяців тому

    Outstanding guide. Will be incorporating into my channel.

  • @SirGriefALot
    @SirGriefALot Рік тому +5

    Why is this so goddamn complicated?! 😅
    It is the coolest thing I've ever seen so I don't want to be ungrateful, but how can they make something so amazing and not be able to put it into a file I can just double click on to install it?

  • @dalemitchell1818
    @dalemitchell1818 Рік тому

    Im stuck at 6:01, My program is saying there is no module named pip and I tried installing Python again and went to custom and it showed pip was check boxed. I am 100% stuck now and can't do anything to get this pip file, or whatever the hell it is.

  • @bryanpmcgowan
    @bryanpmcgowan Рік тому +4

    Matt, loving the videos. Is there anyway to get a private consultation? I have a procedure that I’m trying to figure out, but I’m more of an artist than a computer person. I’d of course be willing to pay you for your time. Please comment here if you’re interested. (This is also open to others who are experts in the field. If you’re interested, comment and I’ll give you the details)

    • @mreflow
      @mreflow  Рік тому +1

      Shoot me a DM on Twitter. I don't have a ton of time at the moment to do phone consultations but if I can offer advice or point you in the right direction, I will.

    • @rundiffusion
      @rundiffusion Рік тому +1

      We definitely don't want to take any business away from Matt, but if he can't help you we have a few people on our team that probably can. We have done work for clients all over the world. Just finished work for a car company in Poland and a job where we generated 650,000 high resolution images in 3 days! We can definitely help! (But again, make sure Matt get's a shot at the business first)

  • @XNY_Music
    @XNY_Music Рік тому

    Your enthusiasm is infectious.

  • @tatterdemalion01
    @tatterdemalion01 Рік тому +3

    Video should be deleted. Misinformation. If it used to work, it doesn't now. Fails on Python installation (6:06). Going back to older versions of Python only shows a lack of Windows-enabled installers, and therefore total installation failure. If you trust and follow this video, you're left with a bunch of partially installed, data-hogging programs that don't work.

    • @tatterdemalion01
      @tatterdemalion01 Рік тому +2

      @lvlSpooksterlvl lol sort by most recent, 95% of the comments are along the same lines as mine. Perhaps if you can find an elevator down from your tall stallion, you could help out a little bit, since your first statement is blatantly false, and the second is self-blinded to the point of absurdity.

  • @deathkitsune6839
    @deathkitsune6839 Рік тому

    I am not sure what happened to mine, but as i was waiting for the final timer to finish it stopped at 0:00:01 while showing everything finished but the rest of the text never came up

  • @lukeyguyy
    @lukeyguyy Рік тому +3

    Be nice if there was ChatGPT for local. So doesn't crash every second when trying to write scripts 🤣