How to Install Stable Diffusion: No disconnect, Google Colab

Sdílet
Vložit
  • čas přidán 26. 06. 2024
  • In this tutorial, I will guide you through the step-by-step process of installing Stable Diffusion using Google Colab that will work on any computer, regardless of GPU strength.. Using my method, you will be able to quickly and code-free utilize Stable Diffusion for free.
    I hope that my guide will be helpful, and if you have any questions, feel free to leave them in the comments, and I will be sure to respond.
    _________________
    Timestamps
    0:00 Intro
    0:19 Stable diffusion 01
    0:46 Model selection
    1:15 How that notebook works
    2:03 Run webui
    2:57 Possible problems
    _________________
    The link for FREE colab:
    ko-fi.com/s/47ba015ba0
    #stablediffusion
    #stablediffusionaitutorial
    #stablediffusionwebui
    #ainews
  • Věda a technologie

Komentáře • 90

  • @marat_ai
    @marat_ai  Před 5 měsíci

    𝐆𝐮𝐲𝐬, 𝐚𝐥𝐥 𝐜𝐮𝐫𝐫𝐞𝐧𝐭𝐥𝐲 𝐬𝐮𝐩𝐩𝐨𝐫𝐭𝐞𝐝 𝐧𝐨𝐭𝐞𝐛𝐨𝐨𝐤𝐬 𝐚𝐫𝐞 𝐚𝐯𝐚𝐢𝐥𝐚𝐛𝐥𝐞 𝐨𝐧 𝐏𝐚𝐭𝐫𝐞𝐨𝐧 (AI, Stable Diffusion, DeepFakes etc.)
    with the majority of them being free. Donations through Ko-fi are not operational, but file downloads are available. You can support me on Patreon. Thank you!
    👉 www.patreon.com/marat_ai

  • @hanya-chan454
    @hanya-chan454 Před 10 měsíci

    omg, dud thanks a lotttt, i can use it even with free google colab without any errors. big W!

  • @jusankz
    @jusankz Před rokem +1

    Thanks for video, great tutorial
    0:16 lmao

  • @ahmedyehia4846
    @ahmedyehia4846 Před rokem

    thanks alot , finally one work , thaaaaaaaaaaanks

  • @LeagueOfLegendsPakistan

    It Indeed works!

  • @atlasthechamp82
    @atlasthechamp82 Před rokem +1

    Thank you for your efforts, highly appreciated. Do you plan on adding VAE support soon?

    • @marat_ai
      @marat_ai  Před rokem

      Thanks! It's just done: czcams.com/video/6A6aAtpGyv4/video.html

  • @smccms910
    @smccms910 Před 10 měsíci +1

    you are great man, thank you for your video. i am having too much trouble using Colab, always disconnecting. after watching your video and using our notebook link i did not face any disconnection issues.
    once again thank you for your efforts for Us

    • @marat_ai
      @marat_ai  Před 10 měsíci +1

      Thank you so much for your kind words:)

  • @ScamsandShams
    @ScamsandShams Před 9 měsíci

    good evening can you only use stable dufusion xl in any programmed and for none commercials only... is there any similar program's where you can use for commercial use and sell images and are theses the paid ones ?

  • @hindihits9260
    @hindihits9260 Před 11 měsíci

    will I be able to do textual inversion training with this?

  • @amoledraikoon4432
    @amoledraikoon4432 Před rokem +7

    Bro What special did you do to avoid disconnection? 🙁🙁

  • @Subashbs
    @Subashbs Před 10 měsíci +1

    why the colab is not using my Gdrive space?
    Where are the outputs and generated stuffs saved to???

  • @CyriIAI
    @CyriIAI Před rokem +1

    On step 3, sometimes after running the code i get this error.
    UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfe in position 155754: invalid start byte
    Stable diffusion model failed to load, exiting
    I don't really know how to solve this...

  • @mohanhegde
    @mohanhegde Před rokem +3

    Thank you so much 🙏
    Does it support downloading multiple models in the first cell? And vae and textual inversions embeddings and stuff like that? Since most of the good images require vaes and embeddings, especially in negative prompts 🙂

    • @marat_ai
      @marat_ai  Před rokem +2

      I'll make that, but a bit later. You can just download them by yourself, manually or just edit code in cell

    • @marat_ai
      @marat_ai  Před rokem +5

      I've added multiple models and lora: colab.research.google.com/drive/1GdV1vBPbAISDjgO1cPq5K0E_QOFS1X6i?usp=sharing

    • @mohanhegde
      @mohanhegde Před rokem

      @@marat_ai Thank you so much 🙂

    • @marat_ai
      @marat_ai  Před rokem +2

      Just added VAE: czcams.com/video/6A6aAtpGyv4/video.html

    • @goldilock4199
      @goldilock4199 Před 11 měsíci

      @@marat_ai Hey there, can I use my own models stored in my drive with your notebook?
      Tried changing the code but couldnt get it to work

  • @HoffaMily-zi8lk
    @HoffaMily-zi8lk Před 9 měsíci +2

    I can't install any model, it downloads but is then deleted from the models folder, I believe there is some blockage in the configuration

  • @evgen4ik225
    @evgen4ik225 Před 11 měsíci +1

    Спасибо

  • @fotomez7345
    @fotomez7345 Před 9 měsíci

    Hi ,thank you for your amazing work but I have a problem. Colab stop working after 4 minutes, do you know why?

  • @supereditor236
    @supereditor236 Před 9 měsíci +3

    Hello bro ., today I got disconnect problem and Shows an phython error to start stable diffusion, only I can able to generate 4 or 5 only its automatically getting disconnected what happen bro

    • @rodrigovalentain6484
      @rodrigovalentain6484 Před 9 měsíci +1

      for me too. today i have several disconnects before any possibility of using

    • @fotomez7345
      @fotomez7345 Před 9 měsíci +1

      I have the some problem, I hope in an answer

  • @rdc189
    @rdc189 Před 10 měsíci

    how can i use links from civitai? I tried the model url and download links and both failed

  • @buddy2665
    @buddy2665 Před rokem +1

    i had to subscribe you cuz its working fine❤, looking forward for more great videos like this.👍
    how can i install VAE on colab?

    • @marat_ai
      @marat_ai  Před rokem

      It's done: czcams.com/video/6A6aAtpGyv4/video.html

  • @marat_ai
    @marat_ai  Před 9 měsíci

    A new working and free method of using Stable Diffusion is available here:czcams.com/video/lmpAopZ41K4/video.html

  • @GrowwithJay001
    @GrowwithJay001 Před 4 měsíci

    I couldn't find the link, only you profile link is given

  • @hanya-chan454
    @hanya-chan454 Před 10 měsíci

    btw if i try to install an extention when i click the intall and restart UI button it doesnt work, and even if i refrech the extentin is not installed, can u help me please?

    • @marat_ai
      @marat_ai  Před 10 měsíci

      Strangely enough, it works for me. Restarting the web UI doesn’t work. You just need to follow the link from Colab once again. And yes, you must reinstall extensions every time after session reboot.

  • @oussamag4586
    @oussamag4586 Před rokem +5

    i want it for controlnet

    • @marat_ai
      @marat_ai  Před rokem

      I updated notebook and added controlnet/lora models
      czcams.com/video/6A6aAtpGyv4/video.html

  • @roguenoir
    @roguenoir Před 11 měsíci

    I'm gonna test to see if this'll work with SD XL.. it would be wonderful as my local GPU can't run XL (but can do 1.5 fine.)

    • @marat_ai
      @marat_ai  Před 11 měsíci

      It won't in case you still haven't tested. There is some difference in model structure. I'm currently struggling for notebook for SDXL.

    • @roguenoir
      @roguenoir Před 11 měsíci

      @@marat_ai Hopefully one of us figures it out when it's released.. I wouldn't want to be stuck on 1.5 because my computer's GPU is only 6 GB and I'll have to fork out credits to run it on Colab.

  • @Royalskif
    @Royalskif Před rokem +2

    can i work with models from civitai?

    • @marat_ai
      @marat_ai  Před rokem

      sure, any model for SD. You just need to provide a proper link for direct downloading.

  • @rockysikander.8177
    @rockysikander.8177 Před 9 měsíci +1

    This Automatic1111 version has no optimizors like xtensor. It takes a lot of time to generate images.
    kindly add tensors.

  • @andreysmirnov5727
    @andreysmirnov5727 Před 10 měsíci

    Привет Марат, скажи, пожалуйста, могу ли я использовать свои, кастомные, модели в твоем блокноте SD? Если да, то как это сделать?

    • @marat_ai
      @marat_ai  Před 10 měsíci +1

      Да, можно!
      1. Можно добавить ячейку которая будет сгружать данные с гугл диска во временную сессию
      2. Просто добавить модели на huggingface и от туда их сгружать по ссылке

    • @andreysmirnov5727
      @andreysmirnov5727 Před 10 měsíci +1

      @@marat_ai Спасибо большое, очень помог🤝👍

  • @user-ld8fm4ye3q
    @user-ld8fm4ye3q Před 10 měsíci

    its not working it is opening but when i hot generate button it shows generating and soon the image disappears. getting this error - "RuntimeError: Sizes of tensors must match except in dimension 1. Expected size 180 but got size 90 for tensor number 1 in the list."

    • @marat_ai
      @marat_ai  Před 10 měsíci

      it does work, just try proper image resolution

  • @sccheng9444
    @sccheng9444 Před 11 měsíci

    so, it need me to ask you permission for downloading. So, should I just go for it?

  • @multi-techprints2476
    @multi-techprints2476 Před rokem

    please sir replay, i use colab using your link but img2img is not working

    • @marat_ai
      @marat_ai  Před rokem

      That is strange, just testet and everything is fine. You can try the latest version of colab notebook with controlnet and lora, check my latest video.

  • @CBsTV-ox1cc
    @CBsTV-ox1cc Před 11 měsíci

    Hey, IK wired name. I wanted to add some other models not available on hugging face, can you help me with that? thanks

    • @marat_ai
      @marat_ai  Před 11 měsíci +1

      Hi, just paste your link in proper cell, that's it.

    • @CBsTV-ox1cc
      @CBsTV-ox1cc Před 11 měsíci

      @@marat_ai thanks man, really Appreciate it, your videos and this comment too.

    • @CBsTV-ox1cc
      @CBsTV-ox1cc Před 11 měsíci

      @@marat_ai hey also one more thing, i want to access its api but cant, can you help me with that?
      thanks a lot

    • @CBsTV-ox1cc
      @CBsTV-ox1cc Před 11 měsíci

      @@marat_aiI figured out something, but thanks a lot for everything

  • @rodrigovalentain6484
    @rodrigovalentain6484 Před 9 měsíci +3

    Today it was not possible to use it. crashed several times before any possibility of using

  • @marat_ai
    @marat_ai  Před rokem +2

    I updated notebook and added controlnet/lora models
    czcams.com/video/6A6aAtpGyv4/video.html

  • @ahmedyehia4846
    @ahmedyehia4846 Před rokem

    but i have problem on installing control net models

    • @marat_ai
      @marat_ai  Před rokem +1

      just download them to "/content/lite_colab/extensions/lite-kaggle-controlnet/models"

  • @tasha3520
    @tasha3520 Před rokem +2

    How can I add Lora?

    • @marat_ai
      @marat_ai  Před rokem

      download your lora model to /content/lite_colab/models/Lora. I think in next several days I make it more convenient

    • @marat_ai
      @marat_ai  Před rokem

      done! czcams.com/video/6A6aAtpGyv4/video.html

  • @dirtydancing858
    @dirtydancing858 Před 11 měsíci

    sir pls let me know how to enable 'roop extension'

    • @dirtydancing858
      @dirtydancing858 Před 11 měsíci

      one time i see there in extension tab. but after a day i use again the colab link i didn't see any more roop

    • @marat_ai
      @marat_ai  Před 11 měsíci +1

      @@dirtydancing858 that weird it worked to me, you can try another notebook from my videos

  • @adhithan8560
    @adhithan8560 Před rokem +1

    Warning
    You may be executing code that is disallowed
    which may terminate your runtime without
    warning. Colab prioritizes interactive notebook
    compute and disallows some types of usage
    when executing code without compute units as
    outlined in the FAQ.
    Your compute unit balance is 0. Purchase more
    But i try different account but not work anymore please brother tell me a solution.. i think now days Google collab charges?

    • @marat_ai
      @marat_ai  Před rokem +2

      Sometimes it's happening (just once with me), but in most cases, using a different account or waiting 6-12 hours helps. If the aforementioned methods don't work, try using a VPN with a different account.

    • @adhithan8560
      @adhithan8560 Před rokem +2

      @@marat_ai thanks for your response bro

  • @matuchaudhary5200
    @matuchaudhary5200 Před 10 měsíci

    Still i don't know how to download model i don't have any link..i search hole fac

    • @marat_ai
      @marat_ai  Před 10 měsíci

      In the SDXL version, the models are already there. In this video, just copy the proper link for downloading the model.

  • @ALL-Spire-rv6hw-05
    @ALL-Spire-rv6hw-05 Před 9 měsíci

    Bro after use its show to run pain GPU due to limit

    • @marat_ai
      @marat_ai  Před 9 měsíci +1

      Usually, Google gives you about 5 hours per day. Just use another account.

    • @ALL-Spire-rv6hw-05
      @ALL-Spire-rv6hw-05 Před 9 měsíci

      @@marat_ai thanks bro

    • @ALL-Spire-rv6hw-05
      @ALL-Spire-rv6hw-05 Před 9 měsíci

      @@marat_ai bro one more things can u make deepfake colabalso

  • @balamurugan-ww4mr
    @balamurugan-ww4mr Před 11 měsíci

    How to add civtai realistic version 4.0

    • @marat_ai
      @marat_ai  Před 11 měsíci

      just add you link in the cell

    • @balamurugan-ww4mr
      @balamurugan-ww4mr Před 11 měsíci

      @@marat_ai I tried bro but not working can you give me the link to add

    • @balamurugan-ww4mr
      @balamurugan-ww4mr Před 11 měsíci

      Pls give the link to add in the cell

    • @marat_ai
      @marat_ai  Před 11 měsíci

      @@balamurugan-ww4mr I've checked, it works 100%:
      huggingface.co/SG161222/Realistic_Vision_V4.0/resolve/main/Realistic_Vision_V4.0_fp16-no-ema-inpainting.safetensors

    • @balamurugan-ww4mr
      @balamurugan-ww4mr Před 11 měsíci +1

      @@marat_ai thank you so much bro

  • @Ra_ue2
    @Ra_ue2 Před rokem +1

    I can't start SD, it doesn't work anymore?

    • @marat_ai
      @marat_ai  Před rokem

      just checked, everything is working for me

    • @ImmortalShiro
      @ImmortalShiro Před 11 měsíci

      You're probably getting disconnected...
      That's the problem i lately encounter in colab.
      It should around 12max usage for free, but i always encounter random disconnects in less than 5mins.
      What's worse is you need to click again all of the prerequisites.