Run Stable Diffusion with Google Colab (FREE)

Поділитися
Вставка
  • Опубліковано 15 лип 2024
  • Today we're going to show you how to run Stable Diffusion on the cloud using Google Colab. And the best part? It's totally free with a Google account! Whether you're a beginner or an experienced AI artist, running Stable Diffusion on the cloud with Google Colab is a game-changer. You'll be able to generate amazing AI art without worrying about hardware limitations or expensive equipment. Join us for this episode and discover how to unlock the full potential of Stable Diffusion with Google Colab. Let's get started!
    💎 Chapters
    00:00 Intro
    00:17 What is Google Colab?
    00:55 TheLastBen Notebook
    04:02 End a Notebook Session
    💎 Online Services to Run Stable Diffusion:
    github.com/AUTOMATIC1111/stab...
    💎 Google Colab Notebook “The Last Ben”
    colab.research.google.com/git...
    💎 Folder Path on your Google Drive:
    /content/gdrive/MyDrive/sd/stable-diffusion-webui/models/Stable-diffusion/
    💎 Protogen 2.2 Model
    huggingface.co/darkstorm2150/...
    #stablediffusion #aiart #midjourney

КОМЕНТАРІ • 39

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

    Hey C.M. VEGA, do you always need to run (load) all the cells to use SD? I always need to run all of the cells to use SD each time and it takes abit of time to do accomplish like maybe 10min. But once I'm connected and i have the link I am ready to go. Thanks for reminding me to terminate my session.

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

    Google Colab stopped me from using stable diffusion because it said I ran out of compute units.

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

    I don't know what's wrong when i did it but it didn't work for me
    I clicked the last cells and it show some red
    I clicked the link u told me to and it says no interface is running

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

    how to rerun stable diffusion that allready install on gdrive without installing all over

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

    how do I do this help

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

    Name caoture is not defined why

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

    Hello sir. Does this method work with a low end pc? My graphics card is nvidia 1650(4gb) so i wasnt able to run invoke ai that i wanted. Will this google collab method work instead?

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

      for low end pc you need to use Google Colab or any other cloud service that runs Stable Diffusion.

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

      @@cmdelavega oh so it does work for low end. Thats good! Thanks i will try it!

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

      i make it work with Stable Difussion locally installed, the trouble is you cant expect high resolution results, and i not able to train my images yet.

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

    Hi I'm Tryin' to enter, but this erro appeard
    ModuleNotFoundError Traceback (most recent call last)
    in ()
    4 import sys
    5 import fileinput
    ----> 6 from pyngrok import ngrok, conf
    7
    8 Use_Cloudflare_Tunnel = False #@param {type:"boolean"}
    ModuleNotFoundError: No module named 'pyngrok'

  • @NatalijaBorovnica-fx3nd
    @NatalijaBorovnica-fx3nd Рік тому +1

    Getting an error telling me that "name "os" is not defined"? Help??? 😭

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

      Have u made sure you are running every cell in order?

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

    It's banned now anypne know any other alternatives...

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

    This notepad has been working very poorly for me lately - the control doesn't work - it doesn't start at all - the scripts don't work-in general, practically nothing can be done??

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

      I haven't used it the last 2 weeks but when I did, it initially took a while to load Stable Diffusion. After starting, it worked with no issues. Have you tried the other Notebooks on the A1111 github list? github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Online-Services

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

      @@cmdelavega I've tried others before, but at the last moment I'm using this one (it's most used)- but for some reason it doesn't work quite well-especially with different settings and additions, you have to reboot all the time! And at the moment I can't launch a public link, everything is loaded, but I can't log in to the server??

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

      I just tried The Last Ben notebook and it worked. It did get stuck originally generating an image, but I hit refresh and was able to generate other images. I noticed there's an update to the A1111 repo and it may be causing some issues (from the notebook: Use the pre-major A1111 update commit to avoid bugs while the repo is fixed). Also there's a new option to use CloudFlare Tunnel (says it offers better gradio responsivity). My other suggestion is to try with a different browser. I usually use Chrome, but maybe Brave, Firefox, Edge. Hope you can get it to work! I'll keep testing.

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

      @@cmdelavega I reinstalled notepad and ticked the box you mentioned, everything works, but not always well! Do you know how to work with controlnet TemporalNet & "temporalvideo/py" script ??

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

      same here, works but it's glitchy at times. Seems like they modified the code to work with the latest version of A1111. I'm only using Canny or Depth for ControlNet. Haven't used temporalnet or the temporalvideo/py script. Let me look into this.

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

    It was already banned before you uploaded this video

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

      Lol, was working weeks after I uploaded video. Google just recently shut it down unless you have a Pro plan.

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

      you have to pay now

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

    Hi. This is super interesting, unfortunately I am just tring Collab out for the first time and I get stuck at the step where I should add path to model, (my input: Path_to_MODEL:/content/gdrive/MyDrive/sd/stable-diffusion-webui/models/Stable-diffusion/) returns name error , line 149, which is shown to read --> 149 if os.path.exists(str(Path_to_MODEL)):"; and the error I am given is -> NameError: name 'os' is not defined any advice?

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

    I keep getting the message
    python3: can't open file '/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py': [Errno 2] No such file or directory

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

    Working through this tutorial...everything is set up EXCEPT when I go to run Stable Diffusion...getting an error message
    ---------------------------------------------------------------------------
    ModuleNotFoundError Traceback (most recent call last)
    in ()
    4 import sys
    5 import fileinput
    ----> 6 from pyngrok import ngrok, conf
    7
    8 Use_Cloudflare_Tunnel = True #@param {type:"boolean"}
    ModuleNotFoundError: No module named 'pyngrok'
    Any idea?

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

      Try checking the box: "Use_Latest_Working_Commit" in the Install/Update AUTOMATIC1111 repo cell and also "Use_Cloudflare_Tunnel:" in the Start Stable Diffusion cell.

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

      @@cmdelavega Tried both...same error message. No idea!

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

      I just tried it yesterday and it worked on my end although it was a little glitchy at first generating images. Not sure whats going on although I noticed Automatic1111 repo is being updated. If TheLastBen Notebook is not working for you, try some of the other notebooks by other coders to run Stable Diffusion with Google Colab. Here's the link: github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Online-Services

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

      Try to deleted all sd folders and items in your gdrive and try running colab again with no folders in gdrive and it should create them for you?

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

      Its been banned from May 1st

  • @user-gj2th3qi1s
    @user-gj2th3qi1s Рік тому

    For ppl who get an error on the path of the model try using this one path instead
    /content/gdrive/MyDrive/sd/stable-diffusion-webui/models/Stable-diffusion/model.ckpt

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

      /content/gdrive/MyDrive/sd/stable-diffusion-webui/models/Stable-diffusion/