Install Stable Diffusion Locally (In 3 minutes!!)

Поділитися
Вставка
  • Опубліковано 23 вер 2024

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

  • @TheRoyalSkies
    @TheRoyalSkies  2 роки тому +360

    NEW: There is a new method of installation that is much simpler and faster - You can find my new 60 second tutorial for it here:
    ua-cam.com/video/i5hvZvzcxoo/v-deo.html
    For those of you interested in learning how to train your own AI model with Stable Diffusion FAST, I have a playlist for it right here:
    ua-cam.com/video/2Nvpbvnj_u0/v-deo.html
    Also, we have a new discord specifically for anyone new needing general AI help usage/installation/etc here as well -
    discord.com/channels/1138979360943120445/1204654189897322557
    ---
    If you'd like to try and see what the most common 'installation error' messages are and their solution, you might have some luck with the following:
    ---
    For those wondering about my computer's specs, I'm operating on a Windows 10 Pro 64-Bit, AMD Ryzen 7 3700X 8-Core Processor, 32 Gigs of Ram, And a GForce RTX 2070 Super Graphics Card -
    BIG Shoutouts to Penguin Dragon for taking so much time to walk me through the whole installation process -
    Here are all the materials demonstrated in the video:
    Github Website Link:
    github.com/
    Hugging Face Website Link:
    huggingface.co/
    Link to GitBash for windows:
    gitforwindows.org/
    Stable Diffusion WebUI Link:
    github.com/AUTOMATIC1111/stable-diffusion-webui
    Hugging Face Stable Diffusion v1-4 Downlaod Link:
    huggingface.co/CompVis/stable-diffusion-v-1-4-original
    GFPGAN Face Restoration Link:
    github.com/TencentARC/GFPGAN
    Python 3.10.6 Download Link:
    www.python.org/downloads/release/python-3106/
    Code for Gitbash Commands:
    "cd /c/ai"
    "git clone github.com/AUTOMATIC1111/stable-diffusion-webui.git"
    Code Edit for less powerful computers
    --opt-split-attention --precision full --no-half --medvram
    ----------------------------------
    Common Error Messages and their solutions:
    0-Problem: RuntimeError: Couldn't install Torch.
    0-Solution: multiple versions of python confusing the system, you need to remove the older version (This is most likely because some versions of Windows come with Python installed by default)
    ---
    1-Problem: when i launch the webui-user.bat file it says: "couldn't launch python"
    1-Solution: you have to the edit webui-user file via note editor or some text editor, then you need to enter the file path of python to where it says "set PYTHON=" should look like : "set PYTHON=C:\Users\urusername\AppData\Local\Programs\Python\Python310\python"
    ---
    2-Problem: If you get error code 9009, Python not found.
    2-Solution: Uninstall Python using the executable, then go to the windows store and download the same Python version from there.
    ---
    3-Problem: it say "Couldn't launch python"
    3-Solution: press "add python to path" when i installed -
    ---
    4-Problem: "No matching distribution found for torch==1.12.1+cu113"
    4-Solution: You probably have a previously installed version of python already on my computer, so it was trying to use the old python to run the script. You need to uninstall any and all versions of python, and then delete the ai folder you created and start all over from the beginning.
    ---
    5-Problem: Couldn't launch python, exit code: 9009
    5-Solution: going into: start> type: manage app execution aliases> and turn off app installer
    ---
    6-Problem: Creating venv in directory venv using python "C:\Python27\python.exe"
    Unable to create venv in directory venv
    exit code: 1
    stderr:
    C:\Python27\python.exe: No module named venv
    6-Solution: Try renaming your sd-v1-4.ckpt file to "model.ckpt"
    ---
    7-Problem: it says python not found after installing it
    7-Solution: you have to the edit webui-user file via note editor or some text editor, then you need to enter the file path of python to where it says "set PYTHON=" should look like : "set PYTHON=C:\Users\urusername\AppData\Local\Programs\Python\Python310\python". then safe it and it should work (make sure that its the actual python, not some shortcut)
    Hope that helps :)

    • @DrFeho
      @DrFeho 2 роки тому +5

      I some how got an error :(

    • @Mandraw2012
      @Mandraw2012 2 роки тому +4

      @@DrFeho Then say what it is ¯\_(ಠ_ಠ)_/¯

    • @Dracolichizm
      @Dracolichizm 2 роки тому +6

      From what I recall this will only work with Nvidia cards currently

    • @Mandraw2012
      @Mandraw2012 2 роки тому +7

      @@Dracolichizm People have been successful in making it work on amd , but it's really shoddy... But the beauty of open source is that probably someone will make it work given enough time

    • @DrFeho
      @DrFeho 2 роки тому +3

      @@Dracolichizm i have that. i got an error when you have to let it download some thing

  • @crabmothflunderbum7770
    @crabmothflunderbum7770 Рік тому +1449

    This should be the worldwide baseline standard for how tutorial videos are made. Thank you for this comprehensive, easy-to-follow setup guide.

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

      This is likely one of the most comprehensive tutorials that I've ever watched for installing any complex software packages in a Linux-UI style manner (no .exe to download by clicking a link, then install by double clicking the file). I've always been confused as to why these layers of complexity are implemented when the dev could just make a downloadable installation file. Like, this is a full on hour, to hour and a half process with a multitude of steps. Think of the combined/condensed days/weeks/years it takes for people to install this, vs the time it'd take for the dev to create an install package.

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

      ​@@sizlax That's the price of modularity and development environments. None of these things are forced to work with one another and it's super easy to plug in different AI models and do research while having a nice UI on any platform. Windows, Mac, Linux on any hardware. Installers require the developer to make individual installers for every platform and various hardware combinations as well as testing everything. Despite the code not doing anything different. Just because the installers might introduce bugs.
      In other words, the focus of this software isn't end users. It's developers and AI researchers.
      And instead of spending tons of time to making install packages they instead spend this time advancing the software.

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

      @@Elanduli Well, I do wish they'd hurry up and perfect that deepfake software. I think it'd be pretty fun to play around with. But I just can't be fucked to go through all these steps just to install it.
      I mean, I'm consistently dealing with enough headaches trying to learn Autodesk Maya, then getting around all the inevitable bugs and glitches; especially in Xgen (the plug-in within Maya that's used for creating the most realistic game/3D animated hair).
      And any time I'm not doing that, I'm trying to improve my skills in digital artistry.
      In all honesty, I've got lots of time, but limited patience for unnecessary complexities.

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

      you don't like indian accents and shitty mics

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

      @@sizlax brother the steps take

  • @morphman86
    @morphman86 Рік тому +587

    A note from someone who uses the Windows CMD console a LOT at work: It is safer to press space than enter, if you think the terminal is frozen.
    Enter may "accept" a command, whereas space will simply just type a space if it has frozen at a command input prompt.
    Can't tell you how many times I accidentally accepted a default value by pressing enter before I realized any input works to "unfreeze" the screen...

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

      you should migrate to powershell and start using test-connection instead of ping. Join me :)

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

      this actually unpaused the download for me when hitting enter didn't, thanks

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

      The download isnt paused

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

      Yep, this helped unpause the download while clicking didn't do anything for me. Thanks!

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

      thank you

  • @johnjuki6669
    @johnjuki6669 2 роки тому +420

    im not gonna install it yet... but i gotta say: I LOVE THIS TUTORIAL!!! I always wish every tutorial is like this. Straight to the point and the instructor knows how to edit. Damn. perfect.

  • @Grimleal-ws1mk
    @Grimleal-ws1mk Рік тому +34

    gonna be honest, I don't often give videos likes. This has absolutely earned it and I've installed SD twice on two computers from this tutorial. This is the clearest tutorial I think I've seen on youtube, no nonsense, no bs, just step by step. Thank you a million, man!

  • @RadiKaroum-di1kt
    @RadiKaroum-di1kt Рік тому +32

    Great Tutorial! Unlike other tutorials, this one is actually straight to the point with no useless nonsense information. Great job, this is worth a subscribe!

  • @shortping9287
    @shortping9287 Рік тому +80

    One of the best tutorials of any kind. Straight to the point, no useless talking. Thank You!

  • @Andrew-ku2mo
    @Andrew-ku2mo Рік тому +61

    because a lot of people seem to be having trouble with torch install: The latest supported python version for torch is 3.9.13. If you installed 3.10 like the tutorial suggests, you'll need to uninstall it and use 3.9.13 instead.

    • @Waverider-yb7ql
      @Waverider-yb7ql Рік тому +5

      bro wtf people say this for every fucking python version. why do most people seem to get it right with 3.10.6?

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

      Mine had the torch install error too but underneath it it said i needed to download windows distributable C++ and gave me a link. Then it worked fine.

    • @monmon-vl8bx
      @monmon-vl8bx Рік тому

      yup, work for me, thx bro.

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

      ill try it. thanks

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

      @@ARegularPerson-bs2hc thank you

  • @Marvinscreed
    @Marvinscreed Рік тому +74

    Great tutorial: Straight to the point, no filler, everything you need is shown and explained and links are in the description. Wow! Thank you so much!

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

      Deserves way more subs tbh

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

      how do u copy the ai file address if using win11?

  • @Cantersoft
    @Cantersoft Рік тому +33

    Finally a tutorial that is concise, doesn't skip important details, and doesn't bombard me with information I didn't click for. Thanks so much!

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

      Yesss!!! #RespectOurVitalTime 😊👍

  • @driesvanheeswijk1633
    @driesvanheeswijk1633 Рік тому +17

    Guys, if you seem to get far but then an error message comes up about something not being able to access the GPU, this is something you should try:
    right-click the 'webui-user' file and select 'edit' this will take you to the 'batch file'. Add the command "--skip-torch-cuda-test" after 'set COMMANDLINE_ARGS='. This worked for me, after being stuck for a pretty long time. (I think maybe 1 hour in total).
    Good luck guys! I'm gonna finally test it all out!

    • @DMLorem
      @DMLorem 10 місяців тому +2

      Thanks bro worked for me

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

      @@DMLorem No problem bro
      I remember doing this and being sooo frustrated, glad it's over. I hope you're having a good time with it like I was half a year ago lol

  • @MrStatic9000
    @MrStatic9000 Рік тому +32

    This is the way every tutorial should be! I had no trouble with this and it was all thanks to you and the patron! Had I taken any other tutorial this would've taken me days! Thank you so much! May your bounty be plentiful and your hunger satiated!

  • @Arrkail
    @Arrkail Рік тому +46

    it looked intimidating at first but it's super easy to follow. thanks!

  • @isaiahhughes5264
    @isaiahhughes5264 Рік тому +70

    That was the most straight to the point pain free tutorial I've followed in my entire life. Thank you!

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

      It truly is, it respects our brains and not treat us like 5 year old as all other tutorials.

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

    This tutorial is so good, I am using it as a reference how to properly, precisely and quickly present an information.
    Every tutorial should be like that. Instead of playing it with x1.5 speed, pausing to note down necessary content.
    PS: In my cause, I had to pause it for a week at 2:41 to buy an RTX to handle Stable Diffusion :))

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

      do we need to copy the url everytime and run in browser when i open my desktop the next day?

  • @GamerDomePlays
    @GamerDomePlays Рік тому +208

    followed the tutorial but when i launch the webui-user.bat file it says: "couldn't launch python"
    i reinstalled python and made sure it's the exact same path as it should, but the batch file won't work
    EDIT:
    found the solution in the comment section:
    you have to the edit webui-user file via note editor or some text editor, then you need to enter the file path of python to where it says "set PYTHON=" should look like : "set PYTHON=C:\Users\urusername\AppData\Local\Programs\Python\Python310\python"

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

      so, when i do that it says
      Couldn't launch python
      exit code: 9009
      stderr:
      'C:\Users\User\AppData\Local\Programs\Python\Python310' is not recognized as an internal or external command,
      operable program or batch file.
      Launch unsuccessful. Exiting.
      Press any key to continue . . .
      please help its very frusterating

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

      Problem was not selecting “add to path” when installing python. Now webui user runs but says cannot use gpu

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

      @@ogonbio8145 yeah same im stuck there

    • @Omega-mr1jg
      @Omega-mr1jg Рік тому

      @@ogonbio8145 what is your pc spec

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

      you need to register python with enviromental variable

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

    The longest 3 mins of my entire life. Although I must say...it worked in the end. If you are having problems with python (like me) install from the microsoft store instead...thats what worked for "failed launch of python" when trying to run the batch file. Hope this helps someone, because I was stressing over it lol

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

      Good looking out! got it working :D

  • @_shadow_1
    @_shadow_1 Рік тому +102

    Stable Diffusion is one of the best image generators I have ever seen, and it is free and open source. It is astonishing that something like this is possible.

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

    Hey, I just wanted to say thank you so much for making this tutorial. Without dropping names, I tried a few other tutorials and they didn't work/give me what I want, and I just happened to stumble upon this one. I have been trying to set this up for a week and I finally got it working with this video. I will definitely be looking through the rest of your Stable Diffusion playlist as I want to learn more about this program and how to use it. Awesome video! Thank you so much again ♥️

  • @TheMotiveMindOnly
    @TheMotiveMindOnly 5 місяців тому +3

    hello, what should I fix, if i have this: ERROR: Could not find a version that satisfies the requirement torch==2.1.2 (from versions: 2.2.0, 2.2.0+cu121, 2.2.1, 2.2.1+cu121, 2.2.2, 2.2.2+cu121)
    ERROR: No matching distribution found for torch==2.1.2

  • @dragovian
    @dragovian 2 роки тому +9

    I have followed many other installation tutorials trying to set it up..
    Yours work perfectly! Thanks a lot!

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

    Short, straight to the point, actually has useful extra information...You really nailed the tutorial format, worth a subscribe!

  • @5sweatingpalm
    @5sweatingpalm 2 роки тому +5

    bro love your guide. I spent the whole day with some guys who post their work and skip alot of things. Going around in circle, had to delete alot of things and gave them a thumbs down.

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

    For the guys that have AMD and when doing the last step it gives you error ''torch can't use gpu'' you just have to copy de prompt that it gives you (in my case ''--skip-torch-cuda-test''), then go to the ai folder, open webui-user.bat with notepad++ (or any other, just open it with notepad) and copy the prompt in command line args (just, copy paste next to the = sign), save the file and you are good to go. I know it sounds obvious but it took me a while to understand xd.

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

    Dude, thank you for making a no-nonsense, quick, easy to understand tutorial. So tired of videos that have 3 minutes of promoting the channel and blah blah, detours, etc. Thanks man!

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

    very straightforward tutorial, found no issues and the only problem is the waiting part. which to me took some 2 hours... but thats due to my sucky internet provider.
    Thanks for the simple tutorial!

  • @CrabBattle1337
    @CrabBattle1337 Рік тому +12

    Thanks for the quick and easy walkthrough, truly appreciate your effort in making this.

  • @ghazalmajidi
    @ghazalmajidi Рік тому +20

    I came across two issues that I could eventually fix. I'll share what I did maybe it'll help you too. First, after the installation, I had issues with the local URL not working and I fixed that (following another comment in another youtube video) by uninstalling Python and re-installing it with CUSTOM INSTALLATION and everything ticked (I had to delete the files and restart the process for it to work as well) and then the URL file worked. Secondly, SD kept generating black images no matter what I did, the only solution that fixed it for me (following a comment on Reddit) was typing --lowvram --precision full --no-half after set COMMANDLINE_ARGS= with no space, ctrl+save, and reopening the webui, and IT GOT FIXED. Hope this can be helpful!

    • @Toby-tk4zv
      @Toby-tk4zv Рік тому

      Thanks for the comment here. Im setting mine up right now, so it's helpful to know this while setting this whole thing up now rather than later.

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

      Where do you type these lines sorry? Same issue

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

      @@theresident1 you need to edit webui-user.bat

  • @MachineCog-i2l
    @MachineCog-i2l Рік тому +2

    Followed instructions using python 3.11.4 and no issues so far using the tool or generating images. Thank you for the guide!

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

    i cant believe i actually managed to follow a tutorial with this many steps, i ran into some problems with it, but at the end it actually worked and im so happy it did

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

    Great tutorial, after I've installed it successfully, I've closed everything, how do I restart everything again? what prompt do I use, instead of re-installing everything again?

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

    i followed all of the instructions presented by the video but whenever i launch webui it gets stuck on installing torch and torchvision, can somebody please help me

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

    Heads up the share option actually exposes the application to the entire internet and allows for remote code execution. I would highly recommend no one use it under any circumstance.

  • @MichaelJesmer
    @MichaelJesmer 8 місяців тому +1

    It's working! Thank you so much every other tutorial was either convuluded or hard to follow i.e giving wrong or over simplified instructions. It's downloading now! I just had to screw around with the .cfg file to get the batch file to find the right version of python after I corrected it. So if anyone is watching this, make sure you follow his instructions EXACTLY (though I did download the newer version of stable diffusion as he said to; at the time the newest was 1.4 for him but it was 2.1 for me). The version of Python he got working for him was the EXACT one you need, don't look for the newer one.
    Thank you so much Royal Skies! You're a life saver. Wish me luck with my writing!

    • @ToddDyer-o2j
      @ToddDyer-o2j 7 місяців тому

      I ran into the same thing and grabbed a newer version of Python, and got errors and had to start over the install. Follow exact same versions of the files listed, and you should be golden

  • @dimasbagussetiawan4484
    @dimasbagussetiawan4484 2 місяці тому

    I don't know why but somehow this video could the most simple-and-clear tutorial instruction I've ever seen, great job and thanks a lot dude !

  • @rogaldornthefortified6404
    @rogaldornthefortified6404 2 роки тому +8

    okay ive got 1 important question, can i simply make a shortcut link to the generated link from that git command prompt? or if i close it do i have to generate a new link every time? and if so how would i go about doing that?

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

    Thanks a lot for the tutorial!!!
    Is it possible to add more models? Does it require some additional steps, or just putting models into a folder just like shown on this video?

  • @m.tutorials4941
    @m.tutorials4941 Рік тому +9

    Thank you for the great tutorial! Just in case someone is trying: Python 3.11 is not working. You get the torch errors.

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

      Thank you so much! I've been wondering if it would work with 3.11

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

      @@eliherrin3997 Same for me. Thanks M. Tutorial!

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

    You have no idea how much I appreciate a tutorial that gets to the point. Thank you!

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

    I ran into multiple errors. It turned out I had Python 3.7 already preinstalled, and continued to have errors when I uninstalled it and installed 3.10. Finally I deleted everything, and redownloaded the webgui thing, ran it all again, and it worked! Amazing work here, thank you.

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

    Just want to give you a big thank for making this video and channel. Dummy like myself was ready to pay some freelance to install Stable Diffusion on my computer and pay them to teach me how to use it. Most videos on YT were made for people who already have a certain level of knowledge. I have never seen a video so effective and easy to follow. I am supporting you, keep making good new content, so dummies like me can take the AI ride too

  • @Larry-Jiao
    @Larry-Jiao 2 роки тому +14

    Honestly, I'm so impressed at how well SD operates. Just reading the comments it looks like the tradeoff between having a less beefy computer is just the time, which honestly seems negligible when the thought of this hitting mainstream (based on the pacing of development on hardware & software side) is within five to seven years. I'd wager that the only bottleneck once it hits mainstream would be the VRAM but it's too early (for me) to tell.
    I'm running on a Lenovo T7i (i7-11700K, 16GB RAM, RTX 3070) and it takes me less than 15s to generate one 512x512 image using LMS on 20 step samples

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

      I upgraded to a 3090 and 32gb of ram just in case for stable diffusion :D

    • @Larry-Jiao
      @Larry-Jiao Рік тому

      @@anthonycampbell422 Nice! I was initially thinking of upgrading my RAM to see if I can justify SD but as long as you have a GPU with a lot of VRAM you should be good to go.
      I've been using Euler_a on 80-100 samples, CFG at 15-20, and have been creating them one by one lately but the output quality has not really faltered.

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

      How the heck do you reenter the software though? The link no longer works and I don't want to reinstall anything since I have it already. I had to exit as I can't leave it running forever but Idk how to get back in

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

      @@Subutai_Khan Run the file from 2:16. It should start quickly - the downloading is a one-time thing.

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

    I followed the instructions to the letter on Windows 10, but when I run the batch file I get this error:
    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.
    Launch unsuccessful. Exiting.
    Press any key to continue . . .
    Can you please tell me how I can fix this?

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

      got the same problem :/

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

      Struggling with this too :/

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

      i fixed this by going into: start> type: manage app execution aliases> and turn off app installer

    • @williamlaurent456
      @williamlaurent456 Місяць тому +1

      @@tordg1356 Thanks, only one that worked (:

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

    My friend linked me this guide and boy I was never disappointed
    All guides I've seen are hours and etc
    This one is straightforward easy and works like a charm
    Thank u

  • @Sta7ic
    @Sta7ic 7 місяців тому

    This is one of the best installation tutorials I've ever watched. Concise and coherent. Thank you for your time and effort.

  • @cliffy987
    @cliffy987 2 роки тому +58

    penguin dragon is a GigaChad

    • @Its_A_Gundam
      @Its_A_Gundam 2 роки тому

      o7

    • @zeekthegeek4538
      @zeekthegeek4538 2 роки тому

      De nada

    • @penguindragonts5152
      @penguindragonts5152 2 роки тому

      maybe yesterday, but tonight i have made too many comments for this reality to be true 😆🐧🐉❄️❄️❄️❄️

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

    Once installed, how do you update the automatic1111 installation via git? Seems kind of important for an everchanging project and as much as I appreciate the instructions to the successful one time installation - it leaves me clueless on how to keep the automatic1111 web-ui updated (preferably without loosing my settings and/or custom ckpt-models. Worth to make a youtube video about it? Highly appreciated in advance...

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

      This probably won't solve your trouble but 2 months after you commented that I saw this video, followed all the steps and I got the thing to work :)

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

    I did everything you said exactly as you said it. When I entered the URL in my browser, I got the prompt "This site can't be reached."

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

      I had this happen. I rebooted my computer and it worked afterward.

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

      @@theroyalbureau so, I tried this. And it didn’t work :(
      When you say “reboot,” you don’t mean “restart” do you..?
      Like, you ACTUALLY mean “reboot?”

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

      @@sanjaydutt678 I went to Windows Start Menu > Power > Restart and that solved it for me. I don't know why, but it worked.

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

      @@theroyalbureau hmm.. weird.. didn’t work for me. Tried it like three times (sigh)…

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

    stucked in a cdm line: model loaded in ...... load textual inversion embeddings:...
    what should i do?

  • @martingreen6194
    @martingreen6194 6 місяців тому +1

    you are awesome, best installation guide ever. I'd never figure that out without help

  • @DefinitelyNotAMachineCultist
    @DefinitelyNotAMachineCultist 2 роки тому +16

    Worth mentioning.
    Most of this machine learning stuff does not play well with AMD GPUs, if you can get it to work at all.
    You'll need an Nvidia card or a _very_ powerful CPU for decent performance.

    • @lightbel18
      @lightbel18 2 роки тому

      By not play well you mean it will get a error message or long waiting time or you will get bad image results?

    • @Omega-mr1jg
      @Omega-mr1jg Рік тому

      @@lightbel18 either not work or long time wait

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

      @@lightbel18 The rendering will be done on your CPU, not on your AMD GPU. So its a couple of minutes vs a couple of seconds per image.

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

    Is the URL always available to launch, or is there something you need to execute manually to generate the URL? My plan was to just get it installed then create a shortcut to open the GUI in my browser.

  • @rp05
    @rp05 7 місяців тому +4

    am getting the runtime error: torch is not able to use gpu any advice thanks very much
    Traceback (most recent call last):
    File "C:\ai\stable-diffusion-webui\launch.py", line 48, in
    main()
    File "C:\ai\stable-diffusion-webui\launch.py", line 39, in main
    prepare_environment()
    File "C:\ai\stable-diffusion-webui\modules\launch_utils.py", line 384, in prepare_environment
    raise RuntimeError(
    RuntimeError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check
    Press any key to continue . . .

    • @terrorhuhn9192
      @terrorhuhn9192 7 місяців тому +6

      you have to rightclick "webui-user.bat and add --skip-torch-cuda-test to COMMANDLINE_ARGS that it should look like this
      @echo off
      set PYTHON=
      set GIT=
      set VENV_DIR=
      set COMMANDLINE_ARGS= --skip-torch-cuda-test
      if you keep getting some error about half or something, add --precision full --no-half
      that it looks like
      call webui.bat --precision full --no-half

    • @DantePosto-pc2dr
      @DantePosto-pc2dr 6 місяців тому

      THANKSSSSSS@@terrorhuhn9192

    • @aprixity214
      @aprixity214 5 місяців тому +2

      @@terrorhuhn9192 God bless this man

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

    Thought something in this process would most probably go wrong - but it was indeed just easy like this. Done after 30 minutes. Thank you so much!

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

    How do you, re-open it? That is to say, once I've restarted my computer the local URL no longer works and I just ended up having to do the last part on CMD again. Is this normal or is there a way around this?

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

      Trying to figure it out as well.
      Like this tutorial ends with how to start it and it worked. But now I have no idea how to turn it on again. I tried running webui-user.bat again but it stops at saying "To create a public link, set `share=True` in `launch()`."
      I have no idea what I'm supposed to do. I went into a file called launch and opened with notepad but there's no "share=false" or something like that.

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

    Even though I installed python, it says "Couldn't launch Python" 9009 code. What do I do?

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

    Any tips for stuck at installing torch & vision torch?

  • @mariocano7263
    @mariocano7263 2 роки тому +46

    This is great! It's very easy to dismiss SD at a glance beacuse of the FREE pricetag. You might find it cheap in quality and lacking features. This however is the reverse when you start to dive in. You'll soon start to see how jam packed of features SD has and how fast it's overtaking the paid alternatives with it's open source community behind it.

    • @da_roachdogjr
      @da_roachdogjr 2 роки тому +10

      Costing money is not at all connected to quality, especially in the FOSS community.
      A lot of people do what you said, they dismiss open source stuff because it looks finicky and different, but its almost always an improvement to whatever proprietary product they're using.

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

    Heyo I did the exact steps stated in this video but had to add --precision and --no-half to get it all running. Yet it is very slow and doesnt use my GPU (only 7% Load) can sb help me fix this? I hvae a AMD RX6750XT... Thank you in advance!

  • @Kalyptic
    @Kalyptic Рік тому +13

    I'm surprised that someone didn't just compile all of it into one program and installer by now

    • @4ReeZy
      @4ReeZy Рік тому +7

      I hope someone does cause this is pretty stressful as is

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

    I don't think it works on macbooks, but unlike the other tutorials I watched, this one was straight to the point and simple, so thanks for making it this way👍

    • @sub-jec-tiv
      @sub-jec-tiv Рік тому

      There is one out now that works on M1 and M2 machines. Expect your computer to turn into a space heater.

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

      @@sub-jec-tiv Is there a link or something to the M1 version? Been having trouble finding it.

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

      @@sub-jec-tiv where is the guide?

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

    This is hands down the best How To video ever. The world would be a better place, almost like a heaven, if all tutorials would look like this. Keep up the good work mate!

  • @Falkenhorst2000
    @Falkenhorst2000 Місяць тому

    Perfect; straight to the point, step by step, and no yapping. Awesome! Have this like and sub, good sir!

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

    Do i have to redownload every time I want to use the locally sourced generator again? Or can I use the same IP/website?

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

    I got the "RuntimeError: CUDA out of memory. Tried to allocate ..." maybe because I use a 8ram laptop. Any help to fix this?

  • @TheCatMurgatroyd
    @TheCatMurgatroyd 2 роки тому +5

    will you be going into detail of the stable diffusion web UI interface? or how to use scripts and libraries and that stuff? The first and only prompt I did turned out really weird and I feel kinda dumb lol it's not as easy as a browser based image generator lol

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

    so when i click on the webui-user it load up and gets the point where it says "installing torch and torchvision" but it doesn't look like its doing anything. how do i know if its working... its been quite a long time and its just stuck on that screen. how long does this step normally take? i have a very beefy pc setup

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

    at 2.40 on the cmd, it block at ""Textual inversion embeddings loaded(0):
    Model loaded in 76.0s (calculate hash: 15.2s, load weights from disk: 50.0s, create model: 4.3s, apply weights to model: 1.0s, apply half(): 1.0s, load VAE: 0.1s, move model to device: 1.0s, load textual inversion embeddings: 3.5s).""""

  • @rob679
    @rob679 2 роки тому +21

    Some remarks
    GFPGAN is optional, Automatic's repo has CodeFormer that will download and install by itself, that imo works better.
    --precision full no-half is only required for cards series GTX 16XX, that have rpoblems with half point precision, resulting in black or green image. Remove it normally as it will just increase memory usage.
    --medvram can be changed to --lowvram if you still get CUDA out of memory errors
    lastly, adding 'git pull' before 'call webui bat' will automatically download updates and it tends to be added something every day. Your version for example don't have the tab for training custom style or objects.
    AI can be extended by downloading additional objects or styles 4kb files in 'embeddings' folder.

    • @Yotanou
      @Yotanou 2 роки тому +2

      Hey Robert seems like you know what you are talking about so I kindly asking here.
      Im looking for a decent tutorial on how to use the best of this WebUI I just installed in this video.
      Im looking around but most tutorial are for the web version and not local or for another UI.
      What would you recommend me? Thanks in advance for your help !

    • @penguindragonts5152
      @penguindragonts5152 2 роки тому +1

      Thanks for taking the time to clarify for everyone! I didn’t know about the -lowvram argument. I have Nvidia 16XX (i think 1680) and it gave me black screens but still took forever to create, then I put in the magical first 3 arguments found on a reddit, and my ai now dreams of penguin dragons and cielmaids 🐧🐉

    • @penguindragonts5152
      @penguindragonts5152 2 роки тому +2

      @@Yotanou In my experimenting, what makes or breaks the ai’s content is your use of artist names. I’m personally looking forward to the “important artist names” bonus mission from RoyalSkies this month. If you haven’t checked out RoyalSkies previous video on stable diffusion’s official site, start there!

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

      what's annoying is I have like 8 gigs of vram and I keep getting CUDA problems

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

      i have the black square image i see what you said but how do i actually perform that instruction? do i need to edit a text file do i need to do it in cmd or is it one of the settings on the web version?

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

    Best tutorial clarity and pace i've seen in a while. Thank you so much

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

    Is there a easy way to re-launch stable diffusion or do you always have to go though webui-user?

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

      Why is there no answer to this anywhere?

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

      @@motionsick Great question, figured it out? I have the same problem and there are no answers to it anywhere. People just try it once and that's it or what?

  • @in.side808
    @in.side808 Рік тому +1

    I have trouble to the step after clicking on the webui.user. there is an error and it is written :
    [notice] A new release of pip available: 22.2.1 -> 23.1.2
    [notice] To update, run: C:\IA\stable-diffusion-webui\venv\Scripts\python.exe -m pip install --upgrade pip
    of course, I have no others versions of python and when I go to python command prompt and paste "-m pip install --upgrade pip", it says: invalid syntax..

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

    Dude... It works... *press play* * listen* *pause* * do what you're told* *press play* *repeat*! Links in the description in order! Brilliant job! Thank you very much!

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

    Great Tutorial Thx ! Installed without any problem. But i have maybe a dumb question, how can i relaunch it ? Yesterday its worked fine but today off course the link isn't good anymore. Do i need to do again every step of the tutorial ?
    Thanks

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

      BUMP. Did you find the solution? I'm in the same boat. Presumably we would need to run something along with our web browser.

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

    Such great content! Wanted to start generating my own art and I came across this video and it helped so much. Keep up the great work!

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

    Never followed a better tutorial than this. Usually i hate watching tutorials because of all the slow and meaningless talk, but this was amazing.

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

    i dont even know what kind of videos you make, but this was so pain free i subscribed anyways. Thank you

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

    Looks intimidating at first but it was stupidly easy to do. I am absolutely horrible at computer related stuff but this was super easy to follow. Keep up the great videos 👍

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

    Thank you for your work.
    I'm stuck at 2min13, when I launch "webui-usr", the window starts and says "unable to create venv in directory venv
    exit code 3
    stderr
    the specified path is not found." I have however respected all the folder positioning in the tutorial. Thanks for your help

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

      i have the same problem

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

      my mistakes was inserting the wrong pathway to the python exe

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

      maybe it doesnt have enough permission, try to run it as administrator

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

      Same problem, did you found a solution. The one in the description ( renaming it ) didn't do it for me.

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

      @@planebreach I solved it by creating a different user with a name in English, I had the same problem and a name in a different language

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

    Didn't work for me unfortunately. It gives me the URL but it leads to nothing. I left the webui batch file open, but still nothing. Anyone got any advice as to why it won't work? I got no errors at all

  • @tolgacam1907
    @tolgacam1907 2 місяці тому +2

    ERROR: Could not find a version that satisfies the requirement torch==2.1.2 (from versions: 2.2.0, 2.2.0+cu121, 2.2.1, 2.2.1+cu121, 2.2.2, 2.2.2+cu121, 2.3.0, 2.3.0+cu121, 2.3.1, 2.3.1+cu121)
    ERROR: No matching distribution found for torch==2.1.2

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

    My pc crash in this point of the instalation (2:17)
    My pc specs: 12gb ram
    rx570 8gb vram
    cpu ryzen 5 1600af
    i installed in HDD 1TB

  • @AnnSnowfrost
    @AnnSnowfrost 2 роки тому +6

    I'm stuck at 2:18
    It says "...Torch is not able to use GPU.." sad.. :(

  • @nothingchannel111
    @nothingchannel111 8 місяців тому +3

    This only works with Python 3.10.6. If you try to use a later version you will get the "torch error".
    - Uninstall Python
    - Install the proper version of Python
    - Delete repo
    - Clone repo
    - Move chck files and .pth files to respective places
    - Profit.

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

    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

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

    Does this work with a normal laptop?? Or will I need a super fast computer?

  • @DrFeho
    @DrFeho 2 роки тому +5

    Yes, finally!. (THANK you penguin dragon and royals skies ) now my ai art skills could be a bit more.. better :)

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

    Hey, I am stuck at "Installing torch and torchvision". I already tried both variants, one for the "normal" computers and one for the ones with less processing power but both stay stuck at that command. What could I do? Every help would be greatly appreciated

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

    Great tutorial Sir! Pure info. No 10min intro about what is a computer...

  • @tonelemoan
    @tonelemoan 5 місяців тому

    Jeez. I got it to work. My problems were nothing to do with your tutorial - kudos for the work you put into this. My issue was my Python version was 3.9 so I aborted this process after reading the initial warning and installed 3.10 - my PC refused to let go of the previous path to the Python.exe and the .BATch file wouldn't work even if I specified the new path explicitly. So I rolled back to 3.9 and it worked fine. Of course prompt engineering is another mountain to climb but at least I can play around free of nags for now. Massive thank you!

  • @ricurse
    @ricurse 2 роки тому +9

    Haha I already had it installed myself and it works great even if you only have a 1050TI

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

      I got it working with a lame integrated intel card lmao

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

    RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cpu and cuda:0! (when checking argument for argument index in method wrapper__index_select)

  • @dissonanceparadiddle
    @dissonanceparadiddle 2 роки тому +7

    Oh good this way we don't have to deal with the censor blur problem right?

    • @ricurse
      @ricurse 2 роки тому +7

      Yup

    • @Mandraw2012
      @Mandraw2012 2 роки тому +4

      This model is the reason there's a discord server called unstable diffusion dedicated to NSFW generations ( and like always, nsfw drives the industry, it has quite a big R&D community in it )

    • @dissonanceparadiddle
      @dissonanceparadiddle 2 роки тому

      @@Mandraw2012 oh good. I'm happy about that. While I'm not planning to generate NSFW stuff the fact things I make can get misconstrued as it is a major turn off

  • @26magicman26
    @26magicman26 Рік тому +1

    Getting an error that says
    "NansException: A tensor with all NaNs was produced in Unet. This could either be because there's not enough precision to represent the picture, or because your video card does not support half type. Try setting the "Upcast cross attention layer to float32" option in settings>Stable Diffusion or using the no-half commandline argument to fix this issue.....
    Any help? I have a 1660ti graphics card, and I downloaded stable diffusion v1.5

  • @smangle7328
    @smangle7328 2 роки тому +5

    It won't let me install torch, it's saying "No module named pip'".
    I've made sure there's no previous versions of Python on my computer and followed everything as instructed twice.
    Still doesn't work when I double click the batch file, any help?

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

      im also having this issue

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

      i need help with this too please. anyone

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

      same probleme over here

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

      I searched a lot but pytorch is just not compatible with python 3.11 so the only solution is to uninstall python. and install an old version. seems like 3.9.13 works for me.

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

    for problem 1
    "1-Problem: when i launch the webui-user.bat file it says: "couldn't launch python"
    1-Solution: you have to the edit webui-user file via note editor or some text editor, then you need to enter the file path of python to where it says "set PYTHON=" should look like : "set PYTHON=C:\Users\urusername\AppData\Local\Programs\Python\Python310\python"
    i cant find the "set PYTHON=" within the webui-user file.
    im downloading this to my local drive (D:), so I'd like to change the directory if possible.

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

    This would be great if everything python related was as easy as it was made out in the video.
    A fresh install of the python version found in the video will just lead to a bunch of new errors for windows users.
    Anyone getting a "no module named encodings" error, search up System Variables, click Environment Variables, and in User variables for [user], click New and type PYTHONHOME with the Variable Value being your Python's directory (for me it's C:Users\[user]\Local\Programs\Python\Python310).
    Now that I've done this, I get a new error: (AttributeError: 'str' object has no attribute 'isascii')
    At this point I've given up. I officially hate python.

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

      There is a version of Python older than 3.7 installed on your machine if you have that error. And it ended up being used for something.

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

      I was getting "no module 'xformers'. Processing without.." three times. The program still launches, but I don't know if CFPGAN works. Also it said it couldn't load styles

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

    I have a different error.
    First of all it shows me Downloading torch==2.0.1
    Downloads something weighing 2.6 GB then when it finishes it's just on 2.6 / 2.6 and nothing happens.

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

      Im having the same exact problems

  • @keijimuto
    @keijimuto 8 місяців тому +1

    When i´m at the process at 2:31 it says ERROR: could not find a version that satisfies the requirement torch 2.0.1. ERROR No matching distribution found for torch 2.0.1. What could the error be? Otherwise i completely followed your instructions.

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

    very sad to see the ''Torch is not able to use GPU'' Error after over an hour of trying to get this to run, truly an AMD GPU moment

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

      What to do in these cases??

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

      same. i did all this shit just to find out AMD cards don't work