How to Use Google Colab to Run Stable Diffusion (for free, without coding experience or a fancy GPU)

Поділитися
Вставка
  • Опубліковано 24 сер 2024
  • In this video I walk you through how to use the Stable Diffusion image generation model to generate images. You don't have to know how to code or own a fancy computer.
    Here are some links that are relevant:
    The Colab notebook: colab.research...
    The usage license: huggingface.co...
    Link to join Hugging Face: huggingface.co...
    Where you can get your Hugging Face token: huggingface.co...
    More info on the model: huggingface.co...
    An article on setting up Stable Diffusion locally: / run-stable-diffusion-i...

КОМЕНТАРІ • 58

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

    After installing 20 gigs of Easy Diffusion and attempting to redownload the 1.5 gig model it comes with when it wouldn't run I figured out that my PC is too low spec to run it (after deleting redownloading and reinstalling because I thought it might just be corrupt). After all that I stumbled onto your video and in 5 minutes I accomplished what I was trying to do all day and I finally made an ai image. Thank you for the video

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

    none of the stuff you say comes up

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

    I'm getting error while running the code "TypeError: 'bool' object is not iterable"

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

    I’m not seeing the “access repository” thing.

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

      not seeing it either

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

      me neither

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

      hey guys i had the same problem. the video is a bit outdated so now there is no need for the "access repository" step. you're doing great! just keep going and follow along with the video! Everything works out nice at the end! Its a lot of fun

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

    i try to change safe save from False to True. and i have error in 5 stroke, in promt window. but if start like false - all works (withouts nsfw)
    how to fix? *3*

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

    I love it and your voice makes me happy 😊

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

    How do you accept the terms on huggingface? I created an account but can't find any button.

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

    Each time I try local I get errors. I'm stuck on a torch GPU error. I feel like an idiot because I can't seem to fix it. My computer is likely just not built to host this.

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

    Can I use my own Model cpkt

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

    Hello, can you spesificly how to get free license for model or how can i bring up a pages like this 3:59? Thank you

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

    Thank you, relaxed and provided a good level of confidence in explaining the procedures.

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

    when I change safety checker to true I get error when generating image, can I fix that somehow?

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

    Please tell how to run other models like this??

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

    Incredibly helpful, thank you.

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

    The link to the licence doesn`t seem to take you to agreement button ? thank you

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

    sir your link doesnt work, please fix

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

    please how about image to image translation

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

    Is it possible to enter negative prompt in this notebook?

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

    Thanks for this great tutorial❤❤❤.
    I have a question: How can I enlarge the images I get?

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

      Glad you like it! Thanks for the question. I know there are other independent ways to upscale images you could look into. If you want to generate higher quality images you could check out this colab: colab.research.google.com/github//wakamenori/txt2imghd-colab/blob/master/txt2imghd.ipynb
      If it isn't clear, let me know and I will try to make a tutorial for the HD colab.

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

      Thank you very very very much man . you are the best😄❤️❤️

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

    Great explanation. Thanks!

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

    Any way to use an image for helping the prompt?????

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

    Thank you! This is fantastic!

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

    how do i add negative prompt, is possible?

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

    6:05 I did everything as you say but I'm struggling passing that error thing...HELP
    edit: it's fixed

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

      what did you do to accept the terms? its not showing up for me

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

      @@criticalboot2567 Create complete account and scroll down then just use your young eye fr(I mean you ain't an elder) you'll find a check box

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

    Thank you for the easy tutorial, I have 0 knowledge in programming and I was able to get it to work. Are we able to use this with other stable diffusion models like controlnet? Thank you

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

    Tbe safety checker remove did not work for me but adding
    pipe.safety_checker = None
    pipe.requires_safety_checker = False
    Did:)

    • @Revon-Feuer
      @Revon-Feuer 11 місяців тому

      has not worked for me x3

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

    Thanks a lot!

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

    thank you for this tutorial!!!

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

    can't even connect to my google drive online to do this

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

    I liked that you put a bit of an explanation of what Colab is in your video, which most haven't. I still don't understand some things about colabs though. Future video? Like I understand image generation requires VRAM, right? so where is the collab image generation actually taking place? A random or specific server somehwere? And how does that work with your machine connected just by a browser?

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

      I'm assuming it's in the google server dungeons.

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

      Yeah basically, google is hosting the compute power, which is why Colab is a good tool if you don't have a fancy GPU set up for machine learning. I might post a future video about that but I am thinking my next one will be on fine tuning stable diffusion using textual inversion to learn new concepts/objects/styles.

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

      @@thedigitaldilettante6681 That sounds really interesting

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

      Are you deaf bro?
      0:46

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

      ​@@Ulexcool wow wow wow, calm down boy

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

    Is there anyway to change the model?

  • @Human_Evolution-
    @Human_Evolution- Рік тому

    Do you have an img2img video?

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

    You are so straight edge. Gotta read docs to not harm people, gotta keep NSFW on. What is it like living like that? I am always the opposite.

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

    I use several Colab notebooks that do not require Huggingface tokens. However, for them to run quickly and efficiently, I need a Google pro subscription. Your image generation was fast. Was it done with a free account or a paid subscription?

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

      It was done with a free account! I'm not sure but my guess is that the ones that avoid using tokens have to import and install a lot more stuff so they take more time. Using tokens makes sense unless you are worried about violating their use policy or something imo.

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

    good tutorial thanks alot

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

    Can I use LoRA models on colab?

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

    Awesome! Is there a way to use the image prompt like in the dream studio version?

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

      Hey Brye-life, do you mean using an image as input and having the model improve it? If so then yes there is a way, and I hope to post a video on that in the future!

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

    Can we use this to traind SD for faces?
    If yes, where shall I start from? The menus seem limited on this colab page

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

    Don't we have to pay for the usage of Google GPU?
    Great Tutorial. 👍🏽

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

    Collab has too much errors bro....tired of it

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

      What errors are you getting?

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

      @@NineSeptims it uses this "Gradio"....and after 5-6 minutes, it just says "No interface is running currently" and I have to connect the Google drive and all everything again, and this time, after 2-3 minutes, it again breaks off...