Create AI Images of Yourself with Stable Diffusion & DreamBooth

Sdílet
Vložit
  • čas přidán 1. 06. 2024
  • Train Stable Diffusion with custom objects using DreamBooth on a Google Colab Jupyter Notebook for free.
    WANT TO SUPPORT?
    💰 Patreon: / agiledevart
    ---
    00:00 Introduction
    01:40 Fast-DreamBooth Google Colab
    02:37 Set up Google Colab environment
    03:43 Train Stable Diffusion model with custom images
    05:39 Stable Diffusion UI on Google Colab
    06:11 Generate AI images of a trained object with Stable Diffusion
    ---
    ▶️ Stable Diffusion One Click Install (GPU or CPU):
    • Easy One Click Install...
    💻 Fast DreamBooth:
    colab.research.google.com/git...
    💻 Fast Stable Diffusion:
    github.com/TheLastBen/fast-st...
    💻 Huggingface Tokens:
    huggingface.co/settings/tokens
    💻 Stable Diffusion Demo:
    huggingface.co/spaces/stabili...
    💻 Welcome to Google Colab!
    colab.research.google.com/
    ●▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬●
    👨‍👩‍👧‍👦 Social:
    ◆ Twitter: / agiledevart
    ●▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬●
    🎮🕹️🐭 Snappy Mouse Run:
    ◆ Facebook: / snappymouserun
    ◆ App Store: itunes.apple.com/us/app/snapp...
    ◆ Google Play: play.google.com/store/apps/de...
    ◆ Amazon Store: www.amazon.com/gp/mas/dl/andro...
    ●▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬●
    #stablediffusion #aigeneratedart #machinelearning
  • Věda a technologie

Komentáře • 61

  • @vigorousvoices
    @vigorousvoices Před rokem +1

    Great work on this video, I enjoyed trained the model with my photos. I got some hilarious ones

  • @kendarr
    @kendarr Před rokem +5

    Thaaanks!, the process is a bit different now, you need to name the pictures what you want, I named it them kendarr, so kendarr(1) kendarr(2) and so on, it works great, thank you

  • @MichaelWoodrum
    @MichaelWoodrum Před rokem +5

    Make sure that if you used a phone to create your photos to open in irfanview and turn off the exif rotation and reopen in the program. I didn't check the exif rotation values and made my first model and all images were actually rotated 90 degrees. Prompts do not work right with this orientation.
    Everything you open with will present it correctly rotated but the colab code seems to ignore the exif rotation data. You can batch rotate and fix in irfanview.

  • @delossantoscoutado
    @delossantoscoutado Před rokem +1

    Great. It works fine for me. Thank you

  • @DiogenesRiguer
    @DiogenesRiguer Před rokem +1

    My friend, it works great. But if a need to work again on the same trained faces. Where should i start?

  • @lithium534
    @lithium534 Před rokem +11

    If you use a custom model of a person don't use the restore faces.
    This will remove the detail that makes you you.
    2000steps is not sufficient. 3500 to about 4500 steps.
    Above that the model will be over saturated with your data and it's harder to add style.

  • @salvadorrobles7014
    @salvadorrobles7014 Před rokem +1

    Great work!, I tried training with waifu diffusion 1.2 EMA version and got an error for using EMA, anyone know how to solve that?...thanks

  • @ArielTavori
    @ArielTavori Před rokem +3

    Thanks for a great video!..
    congratulations on your timing right when there's inevitably a relative way of traffic coming but also...
    Any idea if there are changes that need to be made to any of this process now with SD 1.5, or should it 'just work'?..

    • @agiledevart
      @agiledevart  Před rokem +1

      I see they already updated the code to 1.5, so it should work out of the box

    • @ArielTavori
      @ArielTavori Před rokem

      Thanks great to know. I wonder what kind of results it might yield with the inpainting checkpoint too? Worth some experimenting!.. can you teach it a new face without it forgetting how to do this magical new inpainting?..

    • @ArielTavori
      @ArielTavori Před rokem

      @@agiledevart also I wonder, would it make a difference merging a 1.5 checkpoint trained on a new face into a 1.5 inpainting checkpoint, vs training the inpainting checkpoint separately on the face..?🤔

  • @Sebi.1301
    @Sebi.1301 Před rokem +1

    do you need to somehow disconnect or logout when finnished?

  • @AtulKamble333
    @AtulKamble333 Před rokem +1

    Hi there, extremely helpful video. Is it possible to run a trained model online in runpod just like how you did here with colab? Thanks! 😊

    • @agiledevart
      @agiledevart  Před rokem +1

      I haven't tried it on runpod, but it should definitely be possible

  • @user-lw1tx8no4m
    @user-lw1tx8no4m Před 3 měsíci

    Do you have an updated set of instructions. The colab has been updated and it now looks totally different from your video.

  • @kenarock6800
    @kenarock6800 Před rokem +1

    I like it

  • @mixitnow1932
    @mixitnow1932 Před rokem

    Wow, can we use another version of models for this one like protogen or anything v3?

  • @someonefromnowhere6222
    @someonefromnowhere6222 Před rokem +1

    Thank you so much for the video! It really works. Subscribed to your channel!
    But i have a question: Can you also upload photos of your body along with photos of face for training the model?

    • @agiledevart
      @agiledevart  Před rokem

      Yes you can

    • @ContPanda
      @ContPanda Před rokem

      @@agiledevart why mine says namerror when starting dreambooth

    • @ContPanda
      @ContPanda Před rokem

      @@agiledevart
      it doesnt give me url it give me this
      Embeddings:
      Traceback (most recent call last):
      File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 171, in
      webui()
      File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 132, in webui
      demo = modules.ui.create_ui(wrap_gradio_gpu_call=wrap_gradio_gpu_call)
      File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/ui.py", line 1241, in create_ui
      new_hypernetwork_activation_func = gr.Dropdown(value="relu", label="Select activation function of hypernetwork", choices=modules.hypernetworks.ui.keys)
      AttributeError: module 'modules.hypernetworks.ui' has no attribute 'keys'

    • @ContPanda
      @ContPanda Před rokem

      do you get url? mine i get webui in my drive

  • @lamzez94
    @lamzez94 Před rokem +2

    xformers is missing

  • @ChanningWork
    @ChanningWork Před rokem

    So all was going well - and then it stalled around 2100 steps - when I went to reload it all - it kept saying that session was undefined - even if i typed in session name - What all do I delete on GDRIVE to start from scratch?

  • @kellanrad
    @kellanrad Před rokem

    Are you using Compute Units? Can we run this locally?

  • @user-xx6vl2yu6m
    @user-xx6vl2yu6m Před rokem

    Hello, everyone.
    What a model makes it easy to edit a photo (for example upload the specific photo of a house and with AI change color of the house or add something as additional construction like a patio or a veranda or a pool)?

  • @madwurmz
    @madwurmz Před rokem +1

    ha very nice video! very clear explanation made me try it, I see they added a new option , called 'NEW FAST METHOD', right before 'Setting up' , i'm doing it but I don't know what i'm doing you know what I mean? :D

  • @jcnation5393
    @jcnation5393 Před rokem

    Can I add New Images after sometime, or I have to run Everything again?

  • @levenin9689
    @levenin9689 Před rokem +3

    Does i have to run all nodes again next time...If my CKPT model file is already generated in Gdrive ? or i have to delete that file for fresh execution?

    • @MichaelWoodrum
      @MichaelWoodrum Před rokem +1

      If you exit completely you should be able to load your copy still. Not the ckpt but the information in the folder that colab created. You can name the session and add a number version. When it's fingered it will save the ckpt to the drive with the new name.

    • @kaushiksunder7207
      @kaushiksunder7207 Před rokem

      @@MichaelWoodrum Any further help? I'm unable to load it.

    • @MichaelWoodrum
      @MichaelWoodrum Před rokem

      @@kaushiksunder7207 I haven't tried recently and I'm not sure that the same method works with the newest stable diffusion. It might, I haven't tried yet.

  • @BringUsTheGirl
    @BringUsTheGirl Před rokem

    Sorry if this might a dumb question, but: Are those pictures actually uploaded to anywhere publically accessible or can this be only accessed by me?

    • @agiledevart
      @agiledevart  Před rokem

      Only you can access it. It's saved to your google drive

    • @ikewilliams4399
      @ikewilliams4399 Před rokem +1

      @@agiledevart nothing is safe with google lmfao

  • @malovke
    @malovke Před rokem +1

    What do you mean by accept the stable diffusion term and you will get the token ? I can't find a way to accept any term on t he website ?

    • @lamzez94
      @lamzez94 Před rokem

      Did you manage to fix this ? I don't know what he means by token either

  • @amulpatel
    @amulpatel Před rokem

    this is awesome! pleaes more 'train your model' content

  • @applulu7645
    @applulu7645 Před rokem

    Hi , I want to traning full body photo of a alien race but look like human , which option should I choose? object or charactor?
    and which SUBJECT_TYPE:

    • @agiledevart
      @agiledevart  Před rokem

      I would probably set SUBJECT_NAME to human. I'm not an AI expert, all I did was trail and error experimentation.

  • @joonasvrtn
    @joonasvrtn Před rokem +1

    This video is awesome. However, at the very end, I'm getting an annoying error/warning:
    Warning: Taming Transformers not found at path /content/gdrive/MyDrive/sd/stable-diffusion/src/taming-transformers/taming
    It's not running it and consequently not giving me the link to the Web GUI. Anybody encountering the same problem?

    • @DanielBandi
      @DanielBandi Před rokem

      Yep, I have the same problem, we need a more updated tutorial with the new method. If anyone has it please post a link.

  • @Carlos-fs4yd
    @Carlos-fs4yd Před rokem

    the training does not work, a message appears saying "Something went wrong"

  • @perryclayton3987
    @perryclayton3987 Před rokem

    Do the photos have to be sized to 512 x 512?

  • @handyneo6997
    @handyneo6997 Před rokem

    How long does Dreambooth train your images?

  • @lamzez94
    @lamzez94 Před rokem

    How do you actually get a token ?

  • @Nutronic
    @Nutronic Před rokem

    There is a new version at that link now.

  • @NachoGunk
    @NachoGunk Před rokem

    I think the colab is broken now

  • @Sebi.1301
    @Sebi.1301 Před rokem +1

    I have a question: is this whole thing completely legal? it seems too cool to be true

  • @user-pn6fi1jl1r
    @user-pn6fi1jl1r Před 11 měsíci

    one of these tutorials look like the notebook its so annoying

  • @UltraPatate
    @UltraPatate Před rokem

    Bad tutorial

  • @ContPanda
    @ContPanda Před rokem

    mine says in final step modules.hypernetworks.ui' has no attribute 'keys'

  • @omershiby23
    @omershiby23 Před rokem +2

    I am getting
    "Running on local URL: :443"
    that's bring me into empty page, can somone help me please?

  • @teddyxz5182
    @teddyxz5182 Před rokem

  • @illegaloli
    @illegaloli Před rokem +2

    Everything is different for me and i can't follow instructions🥲