Training (Fine-Tuning) Your Own Stable Diffusion Model Using Colab

  Рет қаралды 47,139

Laura Carnevali

Laura Carnevali

Күн бұрын

IMPORTANT NOTE: YOU CANNOT RUN THIS CODE WITHOUT UPGRADING TO COLAB PRO
Training, or Fine-Tuning, your Stable Diffusion model cannot be easier with DreamBooth! Using Google Colab, I will walk you through generating images with specific subjects, objects, or styles!
📣📣📣I have just opened a Discord page to discuss SD and AI Art - common issues and news - join using the link: / discord
👀 Struggling to run Stable Diffusion locally? You can try DiffusionHub!
🤑Get 20% MORE DiffusionHub CREDIT using the link below or using the promo code LAURA20!
Link: diffusionhub.io?fpr=laura17
🤙🏻 Follow me on Medium to get my Newsletter:
- Get UNLIMITED access to all articles: / membership
- Laura: / lauracarnevali
- Intelligent Art: / intelligent
📰 Article:
/ training-fine-tuning-y...
📌 Links:
Google Colab Notebook: colab.research.google.com/git...
Step by Step guide by Excalibro1: github.com/Excalibro1/fast-st...
Ruiz et al., DreamBooth: Fine Tuning Text-to-Image Diffusion Models for Subject-Driven Generation: dreambooth.github.io
Patil et al., Training Stable Diffusion with Dreambooth: wandb.ai/psuraj/dreambooth/re...
Hugging Face: huggingface.co
Crop with Birme: www.birme.net
00:43 What is Fine-Tuning?
00:53 What is DreamBooth?
03:09 Open the Colab Notebook
03:33 Connect Colab to Google Drive
03:51 Install Dependencies
04:05 Model Download/Load
05:32 Create a New Session
06:29 Load an Existing Session
07:10 Upload Instance Images
11:32 Captions
12:53 Concept Images (Heavy Regularization)
14:05 Training the Model
19:36 Test the Trained Model
20:05 Create Images w/Stable Diffusion
25:30 Upload Model to Hugging Face
#aiart #stablediffusion #generativeart #googlecolab #colab #training #dreambooth #modeltrains #stablediffusionai #stablediffusiontutorial

Пікірлер: 190
@LaCarnevali
@LaCarnevali Жыл бұрын
Note that the name of the instance images needs to represent the unique identifier. Need to call that name when writing the prompt!
@calvinlparks
@calvinlparks Жыл бұрын
Very cool and clear. Thanks again Laura!
@jamesbriggs
@jamesbriggs Жыл бұрын
Super helpful, thanks!
@minigabiworld
@minigabiworld Жыл бұрын
Great video! Great job!
@killzann7757
@killzann7757 19 күн бұрын
this is what i was looking for! thank u so much!
@cadid1
@cadid1 Жыл бұрын
Thanks for the tutorial!!!
@cadid1
@cadid1 Жыл бұрын
Could you make a tutorial about textual inversion embeddings, please?
@user-ld6oe3of6x
@user-ld6oe3of6x Жыл бұрын
Great job thanks! Could you explain hot to train Lora, in order to use combined with other models
@ekkamailax
@ekkamailax 6 ай бұрын
Excellent video and very well explained.
@SevannPiano
@SevannPiano 8 ай бұрын
Great video, thank you very much!
@aouzestudio
@aouzestudio Жыл бұрын
Welcome to Thailand :) im one of your fans , hope you really enjoy your holiday.
@LaCarnevali
@LaCarnevali Жыл бұрын
Thanks! I love Thailand! 🥰
@yzufardiansyah3156
@yzufardiansyah3156 6 ай бұрын
Thank you,, so easy
@Project481-bd8is
@Project481-bd8is 10 күн бұрын
Thank you so much Mam
@d0nv3rgasarenoso91
@d0nv3rgasarenoso91 9 ай бұрын
Thank you for this video, it can be frustrating when you don't really understand what's going on and are just following tutorials
@SouthbayCreations
@SouthbayCreations Жыл бұрын
Thank you Laura! Very helpful video!! Do you know how we can create a Lora using Colab also? Thanks again! BTW, did you make a part 2?
@LaCarnevali
@LaCarnevali Жыл бұрын
Hi, yes, you can, although I had some running issues last week. I'll try to make a video if it works again.
@SouthbayCreations
@SouthbayCreations Жыл бұрын
@@LaCarnevali Fantastic! Thank you very much!
@vicentemaiz8290
@vicentemaiz8290 7 ай бұрын
thanks!!
@j1124
@j1124 Жыл бұрын
hi - do you have a tutorial on how to create the folder "LaCarnevali/Laura-test"? I have the batch of images, i have stable diffusion running but im trying to train a LoRA based on my own images. Im doing all this on a mac. Also - LOVE your videos - keep up the good work!
@LaCarnevali
@LaCarnevali Жыл бұрын
Hi, you need to create that inside your Google Drive...just right click> new folder
@suzanazzz
@suzanazzz Жыл бұрын
Hi Laura ❤🙏thank you for this tutorial, I have been looking for something like this for a while now!!! I have a few questions if you could please clear up for me. 1- When u crop and RENAME your INSTANCE images do they have to be the same name as UR SESSION? 2- If I do not want to train BOTH 1- face /a character AND an AESTHETIC (my images have a pinkish coloring) do I need to upload both INSTANCE and CONCEPT images? I am not sure I understand the difference between the two and whether I can do both in ONE TRAINING SESSION. 3- Any tutorials you have in mind that show how to do CONCEPT training? 🙏❤
@LaCarnevali
@LaCarnevali Жыл бұрын
1) The name of the instance images needs to represent the unique identifier. Need to call that name when writing the prompt! 2) The INSTANCE images are those used to train the model. They need to be almost perfect, I would say. They need to vary though, show the face/character from different prospective, different dresses, etc. If you have only one image with a pinkish color, that's fine. However, if you have all of them with that pinkish color, which you don't want, I would suggest to change the pictures! XD CONCEPT images are used to regularize the model. If you are training your face, you don't need to use them. If you need to train the model on a specific car (BMW), for example, it is preferable to upload lots of different cars in different environments, shapes, etc, so that the model can generate more variety of your car in different places, positions, ... otherwise, the model will focus too much on the INSTANCE images and will reproduce them as they are. Also, the CONCEPT image name doesn't matter. I'll add this to my to-do list :) Hope it s clear. XD
@SevannPiano
@SevannPiano 8 ай бұрын
Forgot how to do it and came back, still an awesome video :D thanks again
@Minahil-zw6wt
@Minahil-zw6wt 4 ай бұрын
hey how did you do it?
@SevannPiano
@SevannPiano 4 ай бұрын
​@@Minahil-zw6wtsadly it doesn't work anymore because they havent updated it.
@Minahil-zw6wt
@Minahil-zw6wt 4 ай бұрын
@BlakeSevann2 do you have any other suggestions, am looking for a pre trained model for making an app where user can provide his images and he can get different ai generated images , like in remini app if you have used it
@SevannPiano
@SevannPiano 2 ай бұрын
@@Minahil-zw6wt unfortunately i don't :(
@marcolopresti9425
@marcolopresti9425 Жыл бұрын
Ciao Laura, complimenti davvero per il video e soprattutto grazie! Avrei una domanda: volendo effettuare il training su di un volto usango come modello Realistic Vision v2.0, il processo sarebbe lo stesso e basterebbe poi caricare su Drive il ckpt del modello e selezionarlo su SD? Oppure bisognerebbe fare altro? Grazie di nuovo
@LaCarnevali
@LaCarnevali Жыл бұрын
Ciao! Si esattamente lo stesso :)
@jeffmurray1102
@jeffmurray1102 10 ай бұрын
Hi Laura, Great tutorial probably the best I've seen thus far for training LoRA. I did notice at marker 12:39 Instance images is not loading on my page or has been removed. I'm assuming the latter. Do you know why that was removed and what replaced it? Thanks again!!!
@LaCarnevali
@LaCarnevali 10 ай бұрын
Hi, you can use the 'deprecated' folder for that :)
@eduardocambiaso9579
@eduardocambiaso9579 8 ай бұрын
Hey Laura, awesome vid. I have a question though. In the training part, when I run the code, the training starts and after a minute, when it gets to the "training the Unet" part it stops, the code at the bottom says something like "something went wrong" although there is a green check mark next to the play button you click to run the code on the colab notebook. Any ideas?
@BigMathGaming
@BigMathGaming 2 ай бұрын
same issue here
@mrkeyzzz
@mrkeyzzz Жыл бұрын
Hi Laura, on the "Training" part of the Google Collab I get the error "No model found, use the "Model Download" cell to download a model.". When looking at the python code it's getting stuck in the while not Resume_Training and MODEL_NAME=="": loop. Any suggestions? Not sure what I did wrong.
@LaCarnevali
@LaCarnevali Жыл бұрын
try cancel the folder from your drive and re-run the notebook
@mrkeyzzz
@mrkeyzzz Жыл бұрын
@@LaCarnevali I tried that many times and it still wouldn’t work. Are there hidden files that are stored in the drive?
@LaCarnevali
@LaCarnevali Жыл бұрын
There’re some, but should be that. Do you have Colab pro?
@mrkeyzzz
@mrkeyzzz Жыл бұрын
@@LaCarnevali No, I only have the free version. Is pro required?
@LaCarnevali
@LaCarnevali Жыл бұрын
@@mrkeyzzz Yes, the free version was banned by Google last month, unfortunately. So you can now run it only on the pro version
@AmirRifaix
@AmirRifaix Ай бұрын
Hello Laura, really enjoyed the video! I tried following what you did step by step however when I launched the "Test the trained model" cell, I got a traceback error message which prevents me from testing the model. Do you have any advice or is there an updated version of the notebook I should download? (I got colab pro)
@dominiquecroshaw8736
@dominiquecroshaw8736 Жыл бұрын
Thank you for the brilliant tutorial, very clear and accessible. I am new to the process and was just wondering if I make my own set of concept images to inform my instance images - will the end result be entirely created from my own image data inputted? Or will Stable Diffusion's vast image dataset also inform the final image?
@LaCarnevali
@LaCarnevali Жыл бұрын
Thanks, it will use the dataset used to trained the model (it depends which model you used, i.e., civitai, v1.5). I understand you are new to it, but just a hint - you might use Lora models in addition to your model.
@dominiquecroshaw8736
@dominiquecroshaw8736 Жыл бұрын
@@LaCarnevali great! Thanks for the advice
@suzanazzz
@suzanazzz Жыл бұрын
@@LaCarnevali Oh... 😮how do we do that?
@ruedeclare
@ruedeclare 10 ай бұрын
The "Instance Images" tab is missing from the notebook in the link to the video. How do I find that or code for it? I've looked on other websites but can't find it. Some people train their images in another website like Astria and not the google colab, but I want to keep everything in the google colab notebook. Thank you !!! I've only been able to get this far bc of your videos, this seems to be the last missing piece.
@LaCarnevali
@LaCarnevali 10 ай бұрын
I just clicked on the link - the instance tab is still there. Make sure you are opening the correct notebook colab.research.google.com/github/TheLastBen/fast-stable-diffusion/blob/main/fast-DreamBooth.ipynb
@LuppoDesign
@LuppoDesign 11 ай бұрын
Hi Laura, thanks for all the explanation. I have a doubt about if I want to create a Model from scratch, how do you do that?. I was looking for it in your videos but I didn´t find it. and after that, make the fine tuning step. Grazie
@LaCarnevali
@LaCarnevali 11 ай бұрын
Hi, training from scratch requires many images (thousands) and time. I haven't made a video, but might think about making one
@angel_rf
@angel_rf Ай бұрын
Hi, has someone the link with the second part? I want to know how to continue with the training if Colab doesn´t allow me to continue using the GPU. Thanks for the video Laura!!
@angienavarrete3580
@angienavarrete3580 Жыл бұрын
Hi Laura! Thanks for sharing all of these videos. Do you think is possible to re train (fine tune) a model to get more "diverse" results? For Example, if I generate "pictures of CEOs" I'm gonna get lots of white man pictures, if I re train with 100 pictures of CEO of different genders and races, do you think is possible to get more diverse results? And also, do you think I can see a difference when using DreamBooth or LoRA? Thanks!
@LaCarnevali
@LaCarnevali Жыл бұрын
Hi! Yes, you can do that. In my opinion, DreamBooth is going to be more precise as you are training the full neural network model, rather than only one part (LoRA).
@mohammadawwad7832
@mohammadawwad7832 11 ай бұрын
Very nice and clear, Anything regarding data Privacy ?
@shaunbass444
@shaunbass444 8 ай бұрын
Hey Laura, thanks for this really cool content and tutorials, really helping me in my learning Journey. Im trying this one out but sadly when i try to import drive im getting the error message " ValueError: Mountpoint must not already contain files" I already installed SD onto google drive, do I have to create a different folder to link to? Any help would be amazing. Grazie Mille x
@LaCarnevali
@LaCarnevali 8 ай бұрын
When you run the mounting code, make sure it is mounting to the right directory. from google.colab import drive drive.mount('/content/drive/') You might want to change the directory /content/drive/ to the actual directory (not sure where you have your SD folder)
@user-ms7lw4no5f
@user-ms7lw4no5f 6 ай бұрын
Hi Laura. I really like your videos. It could be possible to train a model to complete objects. Imagine I have objects hide by others and I want to complete those incomplete. I'm thinking in an actual application. Imagine you have fruits (i.e., apples on a tree) hidden by the leaves. I'd like to train model able to complete those fruits which are completed.
@bessemhamudhamud2934
@bessemhamudhamud2934 Жыл бұрын
Hi Laura! Couldn't find the video for reloading the trained model without going through all the steps again. Where can I find more information about it?
@LaCarnevali
@LaCarnevali Жыл бұрын
Hi, You can just skip the training by putting 0 to all steps or running only the section where you need to upload the model. Otherwise, if you are using colab, you can use this notebook (still need to run all of the steps but it s less complicated) colab.research.google.com/github/TheLastBen/fast-stable-diffusion/blob/main/fast_stable_diffusion_AUTOMATIC1111.ipynb
@blacksyan
@blacksyan 10 ай бұрын
Thanks for the tutorial, but now the localtunnel asks for IP. Where I can find the IP address required by local tunnel?
@yanex4631
@yanex4631 Жыл бұрын
please part two, a way so that the image does not display hand or body errors🙏🙏
@SouthbayCreations
@SouthbayCreations Жыл бұрын
Hi Laura! Well I guess Google is banning the use of webUI’s from the colab servers. What options do we have now? RunPod?? What’s your thoughts? Thanks! Jason
@LaCarnevali
@LaCarnevali Жыл бұрын
Not sure if this is actually going to happen, but yes, Runpod can be the option B. Would like to find something free though ... :/
@SouthbayCreations
@SouthbayCreations Жыл бұрын
@@LaCarnevali I'm not sure if there's anything out there that's available freely to use. Even with Colab I ended up subscribing, because my "free" ran out.. 😔
@thoudamchitaranjan
@thoudamchitaranjan 7 ай бұрын
Hello Laura, First of all, thank you so much for these incredible guides. I tried running your Colab code from this tutorial and successfully completed the training 2 times. However, when it comes to testing, I am not able to launch the SD. Also, every time I run this Colab, I am not able to launch my previous Colab SD, which I did from your other tutorial. Am I supposed to install them in seperate drives???
@LaCarnevali
@LaCarnevali 7 ай бұрын
Hi, you can try this notebook to test it: colab.research.google.com/github/TheLastBen/fast-stable-diffusion/blob/main/fast_stable_diffusion_AUTOMATIC1111.ipynb
@thoudamchitaranjan
@thoudamchitaranjan 7 ай бұрын
@@LaCarnevali I am already running this very AUTOMATIC notebook after watching your other video. But after running the training session from the Dreambooth notebook in this current training tutorial, I am getting error, and unable to launch the AUTOMATIC notebook. However, if wipe the installation, and perform a new clean installation, I can run the AUTOMATIC notebook just fine. Both the notebooks are from your tutorial. Steps I went trhough: 1). Ran AUTOMATIC notebook and Installed SDv1.5 from the link you have provided. SD works fine for various sessions(Shutdown -Restart many times.) 2). Ran Dreambooth training notebook and completed style training 1 time. Testing unable to launch SD. Getting errors.->So shut down session. 3). Ran AUTOMATIC notebook, but unable to launch SD. Getting errors.-> So, shut down the session. 4). Wiped the sd drive in GDrive. 5). Repeated the above steps from step 1 to 4 for a second time., but for for face training. Still not able to launch AUTOMATIC webui. Getting errors about missing files, and errors in webui.py and more. So, I had to wipe the sd drive and reintall the whole SD clean using the AUTOMATIC notebook. I hope I can run both Dreambooth training and the AUTOMATIC webui from the saem Colab pro account. Otherwise, I'll have to pay for another Colab pro account. Help please. Also, if there is some way, or platform, where I can get personalised assistance/guidance from you, for Generative AI training, it will be helpful. I really connect with your teaching style. -Thanks in advance.
@DanielRodrigues-bx6lr
@DanielRodrigues-bx6lr 4 ай бұрын
I've tried using external captions and when training it always seems to truncate my captions to the first 50 - 55 characters instead of using the whole caption. Have you come across anything similar?
@Selavie-xp2nk
@Selavie-xp2nk 6 ай бұрын
Hey Laura, thank you so much for this amazing Video! I have a question though: Whenever I reach the section "test the train model" I won't get a URL for my Model, but receive this message: " ModuleNotFoundError: No module named 'cchardet' " Why is that and how can I fix it? Thank you so much in advance!
@AntanasStasiunas
@AntanasStasiunas 6 ай бұрын
Same here, did you manage to solve this?
@LaCarnevali
@LaCarnevali 5 ай бұрын
probably need to upgrade to Colab Pro
@victoremanuelgyn
@victoremanuelgyn 4 ай бұрын
Did you solve?@@AntanasStasiunas
@RAHUL-tw1zu
@RAHUL-tw1zu 4 ай бұрын
@@AntanasStasiunas I think this would require the paid version of collab i,e, Collab PRo
@estheryang1295
@estheryang1295 3 ай бұрын
no you just need to run !pip install cchardet
@stijnvaneeckhoutte5009
@stijnvaneeckhoutte5009 Жыл бұрын
Good video, but could you uuse the screen recording of the full screen? It's kind of confusing when it jumped around when the video is cut. And super zoomed in i'm losing overview of where you are on the page.
@ordermusic3941
@ordermusic3941 6 ай бұрын
Hi laura. How can i train stable diffusion for a specific style with dreambooth? For example i want to train it so that i can convert myself into a marvel character etc.
@LaCarnevali
@LaCarnevali 6 ай бұрын
You can probably do that without training - anyway, it will require another video 🫠
@pastuh
@pastuh Жыл бұрын
If I have thousand images which will be for model.. Which settings you suggest? :) At this moment I'm trying 1024,1024, and total is 120950 steps.. (maybe too much?)
@LaCarnevali
@LaCarnevali Жыл бұрын
The choice of the settings depends also on type of training, image type, image quality, etc.
@nk6971
@nk6971 Жыл бұрын
Please can we get one on textual inversion for Google collab
@pelomundo2080
@pelomundo2080 Жыл бұрын
🙌🙌🙌🙌
@wsligter
@wsligter Жыл бұрын
What's the best course of action when the images in my dataset are all the same dimensions but it's not a square (690*760)?
@LaCarnevali
@LaCarnevali Жыл бұрын
For this type of training you need to resize your images. Use Birme or Photoshop.
@user-qt5ku8qq3l
@user-qt5ku8qq3l 9 ай бұрын
Thanks for the tutorial, but now the localtunnel asks for IP, and i cant seem to find it, is there an alternative for this? Please help
@fatima93263
@fatima93263 10 ай бұрын
hello Laura, I have trained my model and I have used it. but now i want to use that trained model again. so I enter session name and it says session loaded, but now I don't know what to do next. please help me. thanks in advance.
@LaCarnevali
@LaCarnevali 10 ай бұрын
You can use this notebook: colab.research.google.com/github/TheLastBen/fast-stable-diffusion/blob/main/fast_stable_diffusion_AUTOMATIC1111.ipynb
@user-mw9ku2un8q
@user-mw9ku2un8q 17 күн бұрын
Hello! Thanks for great tutorial! I have a problem on the step Upload Model to Hugging Face. Google colab deletes the runtime and displays a message that it does not support this action (apparently, loading the model on hugging face). Could anyone help me fix this error, please? 🙏
@OrbitMoonAlpha
@OrbitMoonAlpha Жыл бұрын
thx for sharing, may I ask if that's impossible for Mac user to train a lora using tools like kohya_ss?
@LaCarnevali
@LaCarnevali Жыл бұрын
You can do that with Mac, it can be slow though (it depends on what mac you are using). Otherwise, you can use kohya in Colab
@daganmiller8604
@daganmiller8604 Жыл бұрын
Can you do a tutorial on how to train a Lora or Textual Inversion with Google Colab?
@ikissedscarlet
@ikissedscarlet 11 ай бұрын
I think I am falling in love
@beytullahyayla7401
@beytullahyayla7401 3 ай бұрын
Hi, at the end of the notebook when we try to open webui, it ask for a tunnel password?
@user-us1qx7vx4c
@user-us1qx7vx4c 5 ай бұрын
where can I find the fast dreamBooth google drive folder?
@user-oz5mo2vo9q
@user-oz5mo2vo9q 11 ай бұрын
Hello Laura I try to follow your lecture, but there is some issue. I finished training model, and want to go in to the local tunnel url, but The site want me some tunnel creator's Ip address. How can I solve it?
@LaCarnevali
@LaCarnevali 11 ай бұрын
Once you close your notebook, you cannot go back to it. Every time you open a new notebook you need to start again. Also, why do you need to go back to the local tunnel? You should have your output model in your drive :)
@islamicinterestofficial
@islamicinterestofficial 8 ай бұрын
Yeah I'm also facing the same issue. How you fixed it? I also passed my public ip there, but still it is not accepting that. please tell me?
@islamicinterestofficial
@islamicinterestofficial 8 ай бұрын
@@LaCarnevali But at least first time, we need to test it on local tunnel. But it is asking for IP and we don't know what to put there. I also put the public ip there but it is not accepting that. Please tell how to resolve this.
@PhylumVertebrae
@PhylumVertebrae 11 ай бұрын
Can you show how to save it as a checkpoint directly?
@user-ot9zx9rg9w
@user-ot9zx9rg9w Жыл бұрын
Hi, just wondering I can no longer see the option to add concept images(regularization) any ideas?
@LaCarnevali
@LaCarnevali Жыл бұрын
I cannot see them as well - it seems they have updated the notebook
@rohitrai6815
@rohitrai6815 3 ай бұрын
if i have many images so how should i add caption to every image
@user-pg3gc4fq1o
@user-pg3gc4fq1o 4 ай бұрын
That's awesome! But I am encountering some tensor size issues can anyone here help me how to resolve this issue
@ekkamailax
@ekkamailax 6 ай бұрын
One thing I’m a bit confused about - what if the model already has existing images that are labeled as “Laura” from the original weights? How does it know that “Laura” should only refer to the images you fine tuned?
@LaCarnevali
@LaCarnevali 5 ай бұрын
It would be better to call the model with something the model doesnt know, like L4vr4. Including numbers within the model name is ideal.
@KiraBue
@KiraBue 10 ай бұрын
I still have troubles with how long each and every cell takes to load... I´ve already tried it with a smaller dataset to make it faster...does the training section take half an hour for everyone else? Does it maybe have something to do with that colab keeps informing me that I got disconnected from the GPU? Sorry, i am new to this...
@LaCarnevali
@LaCarnevali 10 ай бұрын
Hi, it can be. When you open the notebook, go into runtime, and change runtime to GPU to make sure you're using it
@amazingfacts129
@amazingfacts129 7 ай бұрын
we have 25gb outfit data.can we train on It.same steps.
@balachander2002
@balachander2002 7 күн бұрын
During test the trained model I'm getting the following error: Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/aiohttp/client_reqrep.py", line 70, in import cchardet as chardet ModuleNotFoundError: No module named 'cchardet'
@platwork
@platwork 3 күн бұрын
@LaCarnevali Ciao Laura, grazie per questo fantastico video! Non riesco a creare il file .ckpt in huggingface. Come posso fare? Si può prendere un modello qualsiasi o deve avere delle caratteristiche particolari= graxzie mille
@professional5659
@professional5659 9 ай бұрын
The "Use_localtunnel" page is asking for "Endpoint IP", do you have any idea how to obtain it?
@LaCarnevali
@LaCarnevali 9 ай бұрын
Not sure - I would avoid the local tunnel
@user-bg7ut6qt7w
@user-bg7ut6qt7w Жыл бұрын
if it okay, i would like to request about 1 click colab, there so many of people don't know about that and is it hard to us 1 click colab stable diffusion.
@LaCarnevali
@LaCarnevali Жыл бұрын
Hi! Sure, thank you for the suggestion :) will do that
@FM-zp2hl
@FM-zp2hl 5 ай бұрын
nice video there, I tried with the safetensor model of dreamshapper, but it did not work. I had the model in my gdrive and provided the link to the model path but could not get pass the model download stage. Any ideas?
@LaCarnevali
@LaCarnevali 5 ай бұрын
Have you upgraded to Colab Pro?
@FM-zp2hl
@FM-zp2hl 5 ай бұрын
@@LaCarnevali Yes
@FM-zp2hl
@FM-zp2hl 4 ай бұрын
@@LaCarnevali Hello, yes
@bgm1
@bgm1 Жыл бұрын
😍🥰👍🙏
@josephivill6533
@josephivill6533 9 ай бұрын
Hey Laura, thanks for the tutorial I've run into an issue I can't figure out. When testing the trained model I dont get a local link even when I've selected local tunnel. I get this error.. any ideas? TypeError: check_deprecated_parameters() missing 1 required keyword-only argument: 'kwargs'
@LaCarnevali
@LaCarnevali 9 ай бұрын
Have you upgraded to Colab Pro?
@josephivill6533
@josephivill6533 9 ай бұрын
@@LaCarnevali yep I have! Do I need to have pre installed stable diffusion on my Mac first?
@LaCarnevali
@LaCarnevali 9 ай бұрын
@@josephivill6533 Nope, you don't need any local installation - try this link to test your model: colab.research.google.com/github/TheLastBen/fast-stable-diffusion/blob/main/fast_stable_diffusion_AUTOMATIC1111.ipynb Make sure you mount to Google Drive, and your model is in the right folder inside your drive.
@Mk78027
@Mk78027 9 күн бұрын
Does anyone get this error, " ModuleNotFoundError: No module named 'torchvision.transforms.functional_tensor' " when testing the trained model? How do you fix this?
@jasongaretthatcher
@jasongaretthatcher 3 ай бұрын
Hi Laura. Is this colab notebook still working? I had it working a few days ago, but now it gives an error when I get to the training cell.
@LaCarnevali
@LaCarnevali 2 ай бұрын
it works, but it's under payment (~10$ / month)
@fahamidurrahaman1882
@fahamidurrahaman1882 8 ай бұрын
regularization part is not in the code anymore
@juliagarcia7302
@juliagarcia7302 2 ай бұрын
is there a reason why the part for inserting concept images doesnt show up anymore? has something in this notebook changed since one year ago?
@LaCarnevali
@LaCarnevali 2 ай бұрын
yes, it has been updated
@pricelessalpaca
@pricelessalpaca Жыл бұрын
What are the words you used to generate your cat in these images?
@LaCarnevali
@LaCarnevali Жыл бұрын
Sorry, I don't remember!
@uroojakmal1726
@uroojakmal1726 11 ай бұрын
Hi Laura, while Testing the trained model i cant seem to access the webpage, Error: endpoint IP is not correct. Please try again or contact whoever gave you this link for the correct public IP.
@LaCarnevali
@LaCarnevali 11 ай бұрын
Are you using Colab pro?
@uroojakmal1726
@uroojakmal1726 11 ай бұрын
@@LaCarnevali No the free version
@LaCarnevali
@LaCarnevali 11 ай бұрын
@@uroojakmal1726 unfortunately, google has banned the free version of A1111 with Colab, so you can run it only with the pro - you might try ComfyUI (I think it's still free )
@uroojakmal1726
@uroojakmal1726 11 ай бұрын
@LaCarnevali Thanks a lot dear for your help.
@minggnim
@minggnim 10 ай бұрын
I don't have the window above "Dependencies".
@LaCarnevali
@LaCarnevali 10 ай бұрын
it can be that the notebook has been updated since the video - do you have requirements?
@diggydretv
@diggydretv Жыл бұрын
How can I do this with Dreambooth in Automatic1111?
@LaCarnevali
@LaCarnevali Жыл бұрын
This requires another video lol
@user-ux3el2lv9h
@user-ux3el2lv9h 3 ай бұрын
Hi everyone, do you think it's a good idea to fine tunning Stable Diffusion for movie poster generator? I have a dataset with movie poster images and their txt overview.
@angel_rf
@angel_rf Ай бұрын
Hi, I'm trying to do the same. I think that is a good idea btw. What's the prompt that are you using? Are you getting any good results? I would like to talk about it
@silvanproductions8478
@silvanproductions8478 5 ай бұрын
Hello, thanks for the very helpful Tutorial. When i want to test the trained Model in Google Colab there is an error: ModuleNotFoundError Traceback (most recent call last) in () 6 from subprocess import getoutput 7 from IPython.utils import capture ----> 8 from pyngrok import ngrok, conf 9 import base64 10 ModuleNotFoundError: No module named 'pyngrok'. Can you help me with that?
@error7715
@error7715 3 ай бұрын
Click +code on top left and run pip install pyngrok
@EMF-xx3mf
@EMF-xx3mf 8 ай бұрын
Is there a way to do this without getting colab pro? Is there a free way?
@LaCarnevali
@LaCarnevali 8 ай бұрын
unless locally, not that I m aware
@benjaminos1445
@benjaminos1445 11 ай бұрын
Have you made the video to continue this one ? The one to show how to use our model.
@LaCarnevali
@LaCarnevali 11 ай бұрын
yes, but I haven't uploaded it, need to do that sorry >.
@benjaminos1445
@benjaminos1445 11 ай бұрын
@@LaCarnevali Thanks a lot! Your videos are really helpful. Also, I've been trying to train a LoRA with Kohya, but I am getting an error. I searched a solution for hours, but couldn't find one. This is the error type: TypeError: memory_efficient_attention() got an unexpected keyword argument 'scale'. Maybe you could make a video about the possible error or answer here ? Anyay thanks for you videos they are awesome.
@hamitdes7865
@hamitdes7865 4 ай бұрын
After training to use tunnel it is asking for tunnel password from where can I get tunnel password?
@valeriocalabrese5000
@valeriocalabrese5000 Жыл бұрын
Ciao Laura, non è possibile installare Stable Diffusione per Mac con processori Intel? Ho provato, ma appena apre stabile diffusion su browser appena chiedi una generazione crasha per via di Python. Risolvibile secondo te?
@LaCarnevali
@LaCarnevali Жыл бұрын
Ciao Valerio. Si puoi installarlo. Ti consiglio di seguire questo video: kzbin.info/www/bejne/mnqlZXqNaM50ebM Unica differenze per Intel riguarda Homebrew. Homebrew viene installato in una directory differente: /usr/local Quindi, dovrai installare le libraries usando quanto segue: /usr/local/bin/brew install cmake protobuf rust python@3.10 git wget Dovrai poi seguire NEXT STEPS sul terminal (dovresti avere qualcosa del genere): ==> Next steps: - Add Homebrew to your PATH in /Users/$USER/.zprofile: echo 'eval $(/opt/homebrew/bin/brew shellenv)' >> /Users/$USER/.zprofile eval $(/opt/homebrew/bin/brew shellenv) Copy and paste the first line on the same terminal window, then hit enter echo 'eval $(/opt/homebrew/bin/brew shellenv)' >> /Users/$USER/.zprofile Then Copy and paste the last line on the same terminal window, then hit enter eval $(/opt/homebrew/bin/brew shellenv)
@valeriocalabrese5000
@valeriocalabrese5000 Жыл бұрын
@@LaCarnevali proverò oggi. Sei troppo buona. Complimenti per la competenza.
@valeriocalabrese5000
@valeriocalabrese5000 Жыл бұрын
@@LaCarnevali ciao Laura, non ci sono riuscito. :( le mie lacune da programmatore sono evidenti.
@LaCarnevali
@LaCarnevali Жыл бұрын
@@valeriocalabrese5000 Ciao Valerio, prova a far partire il programma con il seguente: ./webui.sh --no-half Se questo non funziona, potresti dirmi che errore ti appare sul terminal quando fai click su genera?
@valeriocalabrese5000
@valeriocalabrese5000 Жыл бұрын
@@LaCarnevali ciao Laura, se ti va quando hai 20 minuti liberi. Lo faccio passo passo con te. E ti dico gli errori. Me ne dava diversi.
@ai_and_gaming
@ai_and_gaming 10 ай бұрын
Can we train with sdxl?
@LaCarnevali
@LaCarnevali 9 ай бұрын
yup, there should be an updated kohya file to train SDXL
@GAMINGGEEKzzz
@GAMINGGEEKzzz 11 ай бұрын
hello laura i am having an issue whenever i start stable diffusion and generating image it disconnects or loading any model
@LaCarnevali
@LaCarnevali 11 ай бұрын
what error do you get?
@GAMINGGEEKzzz
@GAMINGGEEKzzz 11 ай бұрын
@@LaCarnevali disconnected and i cant reload it again so i have to restart the whole thing again
@LaCarnevali
@LaCarnevali 11 ай бұрын
@@GAMINGGEEKzzz oh yeah - this is a common issue unfortunately. Nothing we can do about that
@4SP1DER
@4SP1DER Жыл бұрын
Hi Laura! Tunnel URL dont work. I clicked "Click to Submit" but it needs Endpoint IP. How can I solve this?
@LaCarnevali
@LaCarnevali Жыл бұрын
You can also run it without tunnel if that gives you issue. Make sure you have the Colab Pro version, as Google banned the free version last month or so.
@4SP1DER
@4SP1DER Жыл бұрын
@@LaCarnevali How come!!! Very sad. Thanks a lot for your help.
@4SP1DER
@4SP1DER Жыл бұрын
@@LaCarnevali How can i run it without tunnel?
@filliprenotazionilastminut7866
@filliprenotazionilastminut7866 11 ай бұрын
Hi Laura thank you for the video! I was able to train the model but I have some problems with Gradio in particular: ImportError: cannot import name 'Recordable' from 'gradio.events' (/usr/local/lib/python3.10/dist-packages/gradio/events.py) Did they change some packages? Thank you a lot!
@LaCarnevali
@LaCarnevali 11 ай бұрын
Try running it without Gradio?
@CRIMELAB357
@CRIMELAB357 Жыл бұрын
[HELP] during the Upload to Huggingface cell collab disconnected but I have my session saved in drive, how do I manually upload to Huggingface and use the darn thing. Where is the continuation of this vid?
@CRIMELAB357
@CRIMELAB357 Жыл бұрын
[PS. I can't find any yt tutorial to help me, if anyone can link a tut,that b awesome]
@LaCarnevali
@LaCarnevali Жыл бұрын
Hi, sorry I still need to upload the continuation. Regarding your question, you can use the same notebook - use the Create/Load a Session section to link to your saved session, them use the Upload The Trained Model to Hugging Face section. Otherwise, you can upload anything on HuggingFace just clicking on your avatar on top-right, and choose +New Model/+New Dataset/+New Space
@nuransengul1439
@nuransengul1439 9 ай бұрын
I'm having an issue with my access to Google Colab. I'm unable to log in due to an access restriction. Can you please help me resolve this issue? I appreciate your help in advance......
@LaCarnevali
@LaCarnevali 9 ай бұрын
Do you have Colab Pro? What is the issue exactly?
@nokiyo8609
@nokiyo8609 Жыл бұрын
Hello, do you know if I can buy google colab pro with a google play gift card?
@LaCarnevali
@LaCarnevali Жыл бұрын
Hi, sorry, but I m not sure about that
@rohitrai6815
@rohitrai6815 3 ай бұрын
When i am going to local tunnel tab so its asking for password how to get it
@beytullahyayla7401
@beytullahyayla7401 3 ай бұрын
hey, did you find the answer?
@karticksharmapro1523
@karticksharmapro1523 Жыл бұрын
BRO LAURA MEANS dICK IN MY COUNTRY MY WHOLE OFFICE IS LAUGHING SORRY BRO BUT FOR ME ITS LOT OF FUN
@forheuristiclifeksh7836
@forheuristiclifeksh7836 6 ай бұрын
4:09
@NetTubeUser
@NetTubeUser 10 ай бұрын
10:28 -- I know that English is not your first language, but in this case, when you mention that these files must have the same name. That's not really the case, otherwise, it won't work at all. What you meant was that these files must have the same prefix, but we need to change the suffix _(prefix from Old French "prefixe", from Latin "praefixus" and "suffix" from modern Latin "suffixum")_ e.g. prefix "Laura" and suffix "2" or "3", etc. ... "Laura 1", "Laura 2", etc.
@akshara8812
@akshara8812 5 ай бұрын
12:03 isnt she looking left?
@LaCarnevali
@LaCarnevali 5 ай бұрын
LOL, yeah
@arielle4087
@arielle4087 11 ай бұрын
Are you italian or argentinian? XD
@LaCarnevali
@LaCarnevali 10 ай бұрын
Italian
Easy run SDXL in A1111!
9:14
Laura Carnevali
Рет қаралды 6 М.
Training LoRA with Kohya (theory included!)
36:18
Laura Carnevali
Рет қаралды 85 М.
Would you like a delicious big mooncake? #shorts#Mooncake #China #Chinesefood
00:30
Final muy inesperado 🥹
00:48
Juan De Dios Pantoja
Рет қаралды 16 МЛН
Contextual vs Addressable Targeting
6:11
Ad Tech Plebes
Рет қаралды 142
Personalized Image Generation (using Dreambooth) explained!
17:45
😕LoRA vs Dreambooth vs Textual Inversion vs Hypernetworks
21:34
Stable Diffusion v2.0 fine-tuning with DreamBooth on Free Colab
27:51
Diffusion models from scratch in PyTorch
30:54
DeepFindr
Рет қаралды 231 М.
Intro to LoRA Models: What, Where, and How with Stable Diffusion
21:01
Laura Carnevali
Рет қаралды 185 М.
ComfyUI for Everything (other than stable diffusion)
32:53
Design Input
Рет қаралды 22 М.
[Tutorial] Create Your Own LoRA | Easy and Free! - Google Colab
14:50