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
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.
Google Colab stopped me from using stable diffusion because it said I ran out of compute units.
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
how to rerun stable diffusion that allready install on gdrive without installing all over
how do I do this help
Name caoture is not defined why
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?
for low end pc you need to use Google Colab or any other cloud service that runs Stable Diffusion.
@@cmdelavega oh so it does work for low end. Thats good! Thanks i will try it!
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.
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'
Getting an error telling me that "name "os" is not defined"? Help??? 😭
Have u made sure you are running every cell in order?
It's banned now anypne know any other alternatives...
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??
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
@@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??
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.
@@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 ??
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.
It was already banned before you uploaded this video
Lol, was working weeks after I uploaded video. Google just recently shut it down unless you have a Pro plan.
you have to pay now
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?
Same here!
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
same
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?
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.
@@cmdelavega Tried both...same error message. No idea!
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
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?
Its been banned from May 1st
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
/content/gdrive/MyDrive/sd/stable-diffusion-webui/models/Stable-diffusion/