How to train an AI (Stable Diffusion) with your own images (FOR FREE & NO APP)

  Рет қаралды 108,029

younes dom

younes dom

Жыл бұрын

IMPORTANT: when using the colab, please click 'File' and 'Save a copy in Drive' first to use your own copy.
UPDATE:
A new step by step guide on github:
github.com/Excalibro1/fast-st...
Link to colab:
colab.research.google.com/git...
Inspiration for prompts:
lexica.art/

Пікірлер: 142
@Blues-House
@Blues-House Жыл бұрын
Great video thanks. Very important to run this from a copy of the collab in your own drive as you say, or you'll lose the trained file. Thumbs up.
@1mareck1
@1mareck1 Жыл бұрын
you are a legend! been trying to run dreambooth an entire day, then I found this video!! thank you
@muhammadkalim6946
@muhammadkalim6946 4 ай бұрын
100% your are the man and youtube legend that help like a greek fabulous ! Thumbs up...
@warleroux
@warleroux Жыл бұрын
Awesome. I was wondering how to train this thing. Appreciation.
@younesdom
@younesdom Жыл бұрын
Glad to help
@M3STERL3G3ND
@M3STERL3G3ND Жыл бұрын
thank's for this bro. hugs from Brazil.
@schlib
@schlib Жыл бұрын
It really worked! Thanks 🙏
@caiocbrunofb7670
@caiocbrunofb7670 Жыл бұрын
Works! Thanks from Brazil
@furkankesgin1913
@furkankesgin1913 Жыл бұрын
Thank you for tutorial. I have a problem with "Test the trained model" session. "It seems that you did not perform training during this session or you chose to use a custom path, provide the full path to the model (including the name of the model)" i see this when i tried to start session. Do you know anything about this? Thanks.
@KatsPurr
@KatsPurr Жыл бұрын
Thanks so much for this tutorial! It worked!
@crisicleop4783
@crisicleop4783 10 ай бұрын
hello, i cant see the folder in google drive, where it is supposed to be saved: "DONE, the CKPT model is in your Gdrive in the sessions folder" ...anyone can tell me why i dont find this folder?
@SmadarBarYochai
@SmadarBarYochai Жыл бұрын
Thank you for this! very helpful and straightforward! I don't understand where in this case you teach the model that those images are of "mansa musa" and not any other person - do the file names matter? do you set it in a different place? thanks again :)
@younesdom
@younesdom Жыл бұрын
Yes exactly its only because of the filenames. They are like the labels for the images you use for training, so generic filenames wouldnt work. You are very welcome :D
@javiflaja4063
@javiflaja4063 Жыл бұрын
the notebook doesnt have a field to enter the hugging face access token...
@muhammadsajid8608
@muhammadsajid8608 Жыл бұрын
I'm not getting the Hugging face access token field to paste mine.
@jords8299
@jords8299 6 ай бұрын
I think the last step ''testing model'' is not working anymore...
@shalinidm8089
@shalinidm8089 6 ай бұрын
im getting error "HTTP Error 401: Unauthorized" in the model download cell. anyone help, please
@muzaffersozdemir5134
@muzaffersozdemir5134 3 ай бұрын
same here
@jk5kwastaken
@jk5kwastaken Жыл бұрын
great video. a couple qeustions: one it keeps saying that it does not know what pyngrok is. and how would I run the ckpt files from google drive. also now in my google drive there are a bunch of random files and pictures
@Codename-B
@Codename-B 5 ай бұрын
as per today, this video does not follow colab updated features, It will work until the test feature.
@BilSchimchelevitz
@BilSchimchelevitz 5 ай бұрын
what about if I enter all my drawings (like more than 500 of them totally different) will it learn my drawing style at the end???
@krishnamishra2465
@krishnamishra2465 4 ай бұрын
not really
@personlaura5123
@personlaura5123 10 ай бұрын
Hello, thank you very much for this easy-to-use tutorial. I do have one question. I can generate a first image after training my model. However, I can only generate one image, then my session is disconnected. When I try to reconnect, I get this error: "It seems that you did not perform training during this session or you chose to use a custom path, provide the full path to the model (including the name of the model):". However, the training was indeed performed. If I add the name of my model (laura), it doesn't work and I'm told: "The model doesn't exist on you Gdrive, use the file explorer to get the path:". When I try to write the path (../FastDream-booth/Sessions/laura), it doesn't work. Any idea how to fix this error?
@younesdom
@younesdom 8 ай бұрын
Sorry never encountered this error, anyone?
@KelvinMandriaza
@KelvinMandriaza Жыл бұрын
Thhx buddy, helped a lot
@younesdom
@younesdom Жыл бұрын
Glad to hear that!
@javiflaja4063
@javiflaja4063 Жыл бұрын
many things are not covered in this video. I have been trying to run this for 3 hrs and nothing yet, I get stcuk at different stages.
@younesdom
@younesdom 8 ай бұрын
Sorry to hear that, I did this just for fun on the side ... worked for me :)
@addisonknox5052
@addisonknox5052 5 ай бұрын
I think KZbin would love to see a tutorial that has more to it. Even if it's outdated in a year, something 1 year old but will made will still guide those who are lost. This just feels like footnotes.
@addisonknox5052
@addisonknox5052 5 ай бұрын
That all is coming from someone who has it running natively on their desktop. And that definitely seemed like a lot more steps than this, but we had a well made guide for that. Having more accessibility would be great, but I got stuck following your lead and I think the probability of you knowing that a huge percent of your audience also got stuck is high. It might be worth reviewing this video and revisiting the subject.
@addisonknox5052
@addisonknox5052 5 ай бұрын
The colab has changed over the year and your video is out of date. Even still, you glanced over downloading the model in the set up process and gave a vague mention of hugging face being a resource but no more that. Break it down man
@NejW.
@NejW. 2 ай бұрын
Would this work with tensor art?
@daniels571
@daniels571 Жыл бұрын
Thanks a lot bro. How do you let the AI know how your model is called? Is it via the jpg name file (e.g. "name.jpg")? or when you give your session a name? I'd really appreciate help :)
@younesdom
@younesdom Жыл бұрын
The model file should be the session name. Your welcome :D
@daniels571
@daniels571 Жыл бұрын
@@younesdom thanks :) is it possible to load multiple models in a single session? I tried to move one model of a session in another one (gdrive) but that didnt work
@LeoAr37
@LeoAr37 Жыл бұрын
ty so much!
@thelbas5128
@thelbas5128 Жыл бұрын
i have a question. if i train the model with a name (eg: dave) and images of dave and then after a few days if i train the same model with some different images of dave using the same name, will it overwrite the previous files or will it merge?
@younesdom
@younesdom Жыл бұрын
it will merge and probably create some weird mix between the two daves
@DickyG41
@DickyG41 Жыл бұрын
Thanks for the video. I seem to have some trouble getting it to work. I get to the point where I upload images, and I keep getting the same error: "RangeError: Maximum call stack size exceeded". The images are all 512x512 jpgs. Have tried numerous times and done some reformatting, but no luck. Any advice is appreciated, thanks!
@KendoruSutautu
@KendoruSutautu Жыл бұрын
same
@KendoruSutautu
@KendoruSutautu Жыл бұрын
some people say to try chrome (if you're using safari on a mac)
@younesdom
@younesdom Жыл бұрын
Also found out on stackoverflow that this might be because of Safari, if so pls try chrome
@realtyrone
@realtyrone Жыл бұрын
So I did this and it worked. I have one question though, is this only for faces? Or can I train other stuff using this?
@younesdom
@younesdom Жыл бұрын
not sure actually cause it seems like dreambooth was made for faces
@gogidolim
@gogidolim Жыл бұрын
I installed Easy Diffusion. How do I train it with images I own?
@NeVeREire
@NeVeREire Жыл бұрын
If I want to use the model I've trained at a later date, how to I load it back up?
@younesdom
@younesdom Жыл бұрын
In the Step Create/Load a Session there's an input 'Session_link_optional' to enter the name of your previous session (which is stored on your google drive)
@yashwanth4395
@yashwanth4395 3 ай бұрын
I have trained the model, but while testing , the code is not working
@thedaviesguitars
@thedaviesguitars Жыл бұрын
I get a 401 error when I try to run the model download, I add my API key as in my settings but it's not working. Anyone experienced this?
@shalinidm8089
@shalinidm8089 6 ай бұрын
did you find solution for this?
@ExVatic
@ExVatic Жыл бұрын
I'm getting this error: [Errno 2] No such file or directory: '/content/stable-diffusion-v1-5/text_encoder/pytorch_model.bin at the training cell, any idea what's going on there?
@ExVatic
@ExVatic Жыл бұрын
I guess I'm supposed to have stable diffusion installed already?
@younesdom
@younesdom Жыл бұрын
Looks like the previous step to download the model from hugging face didn't succeed. Maybe try a new token from hugging face. You dont need to install anything on your laptop, it all runs in google colab.
@ExVatic
@ExVatic Жыл бұрын
@@younesdom thanks will try :)
@barathelango267
@barathelango267 Жыл бұрын
in the video you used tokens but in the code there is no token should I skip it?
@achilleschin
@achilleschin Жыл бұрын
yup. just skip that part
@JohnGilbertmoore
@JohnGilbertmoore Жыл бұрын
Mansa Musa baby!
@boucheromain-alexis9285
@boucheromain-alexis9285 9 ай бұрын
Hi great video thanks! Do you know how to use this via api? I'd like to plug it to an automation sofware... Any advice would be greatly appreciated :)
@younesdom
@younesdom 8 ай бұрын
you can train your model and push it on huggingface, then you can use it via the huggingface API (probably the easiest way)
@ewilner
@ewilner Жыл бұрын
It did not give me an option to upload images. can you help?
@younesdom
@younesdom Жыл бұрын
When you run the "Instance Images" step, there should appear be a little upload button below
@babejomb8554
@babejomb8554 Жыл бұрын
Guys i need an answers , i got 4vram and i installed sd on my computer but i can't training models locally , can i training models on google colab and use the results on my local sd? Will training in Google Colab affect on my vram?
@mansamusa559
@mansamusa559 Жыл бұрын
Training on google colab will not affect your vram and yes u can use the result on ur machine, result is stored in ur google drive
@babejomb8554
@babejomb8554 Жыл бұрын
@@mansamusa559 love u ❤️
@IJOGijog
@IJOGijog Жыл бұрын
does anyone else have the same problem i keep trying to run the model cell after i paste the hugging face token and it says error, it is only just now doing this even tho i have used the doc before and have already accepted the terms
@younesdom
@younesdom Жыл бұрын
Idk why but something changed with the hugging face API. I ran it yesterday without a token. Try to copy the nb from here colab.research.google.com/github/TheLastBen/fast-stable-diffusion/blob/main/fast-DreamBooth.ipynb again and it should run without a token
@IJOGijog
@IJOGijog Жыл бұрын
@@younesdom thank you bro it worked!
@cgc2300
@cgc2300 9 ай бұрын
hello would this allow me to place the images of my rings on avatars generated by artificial intelligence
@krishnamishra2465
@krishnamishra2465 4 ай бұрын
not this exactly the ring wont be the same u need a large data set to train it to perfection
@jakemccartney1827
@jakemccartney1827 Жыл бұрын
when i go to test image i click the link but theres no pic that comes up its blank
@younesdom
@younesdom Жыл бұрын
there should be a .gradio.app link in the output when running this step
@sagarjani8760
@sagarjani8760 Жыл бұрын
Which model should we use from huggingface
@younesdom
@younesdom Жыл бұрын
I used 1.5 which is the default, you can try new versions tho
@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" This happens every time i try using anything by TheLastBen and nobody is able to help me on it
@SignificantOwner
@SignificantOwner Жыл бұрын
3:15 🇩🇪 Helpful video, thanks!
@slksmg5875
@slksmg5875 4 ай бұрын
Can this model be trained on images and predict the next image
@younesdom
@younesdom 4 ай бұрын
It can be trained on images and generate images according to your training data
@ZeroXL722
@ZeroXL722 Жыл бұрын
I’m having trouble with the model download part it’s gives me an error also I did all the steps you did
@younesdom
@younesdom 8 ай бұрын
Sorry I do not maintain the github repo
@thatsdoablevr
@thatsdoablevr Жыл бұрын
So you can't download the trained model?
@younesdom
@younesdom Жыл бұрын
There should be a model file in your google drive that you can download
@sk.darina
@sk.darina 8 ай бұрын
Hi, great video! I can't download the model, it gives me HTTP ERROR 401 and I can't procced to the next step, any clues?
@younesdom
@younesdom 7 ай бұрын
seems like they require a token again, Im not sure why they removed it and added it now, tbh Ive never used stable diffusion since this video, hope you will find a way
@shalinidm8089
@shalinidm8089 6 ай бұрын
did you find solution I'm facing the same error
@psr9289
@psr9289 Жыл бұрын
Danke bro
@zonealone5487
@zonealone5487 5 ай бұрын
how would i go about doing this using my own computer?
@younesdom
@younesdom 4 ай бұрын
first you need a good GPU with lots of RAM, then you can just do the same thing with python if you check the code behind the notebook cells
@zonealone5487
@zonealone5487 4 ай бұрын
@@younesdom I have a very good pc so yeah.. I just need the guide
@twitterglobalarmy
@twitterglobalarmy Жыл бұрын
I utilized a ton of AI tools. Blue Willow is the one I love the most. Blue Willow is really cool, and I made some incredible images using it
@CryptobdSchool
@CryptobdSchool Жыл бұрын
Blue Willow is gaining traction for it's quality and this image generator gives anyone to create unlimited images completely free. That's really amazing!
@sneakerhead4124
@sneakerhead4124 Жыл бұрын
How do you resize the images to 5.12 by 5.12
@younesdom
@younesdom Жыл бұрын
On windows you can use the fotos app but its a bit tricky, the step by step guide recommends this website to do it www.birme.net/ (tho usage without warranty from me, I did it on linux kubuntu with Gwenview)
@sneakerhead4124
@sneakerhead4124 Жыл бұрын
@@younesdom what you mean usage without warranty
@younesdom
@younesdom Жыл бұрын
@@sneakerhead4124 I dont trust websites without imprints, better to do it on windows
@kaont3569
@kaont3569 5 ай бұрын
It didnt work because is not showing use_gradio_server. Also why are a tone of random data and images in my drive, that are not mine and not my instance images...
@younesdom
@younesdom 4 ай бұрын
the python notebook generates these files
@whellyabima
@whellyabima Жыл бұрын
how tostable diffusion checkpoint?
@younesdom
@younesdom Жыл бұрын
The model is being saved to your google drive, so you can use it again by clicking the checkbox as a checkpoint. Hope that helps
@sniperplus
@sniperplus 7 ай бұрын
How can we create an android app using it
@younesdom
@younesdom 5 ай бұрын
you would need to host the model on a server (or use an existing API, which probably costs more) and send http requests from the android app to the server.. You could use something like FastAPI to create the API in python and setup the inference and training routes..
@user-vh9sj1gw5w
@user-vh9sj1gw5w 7 ай бұрын
If we train our own images will it be private? I dont want my selfie online.
@younesdom
@younesdom 7 ай бұрын
it will be private but it is on google servers, tho only in your google account.. If you want complete privacy you would have to run the model on your local machine which would require a good GPU..
@user-vh9sj1gw5w
@user-vh9sj1gw5w 7 ай бұрын
@@younesdom Thanks man
@SeanAlSuwaidi
@SeanAlSuwaidi 6 ай бұрын
how good would that GPU have to be ?@@younesdom
@redaizo
@redaizo Жыл бұрын
How to do this localy?
@younesdom
@younesdom Жыл бұрын
To run it locally, I recommend at least a 16 GB GPU. Here is a good repo by huggingface to train your model with dreambooth: github.com/huggingface/diffusers/tree/main/examples/dreambooth
@redaizo
@redaizo Жыл бұрын
@@younesdom got two 4090, but i'm bit lost i have to install dreambooth first to SD ? thanks for the links! EDIT: found an amazing tutorial by Aitrepreneur, i'm trying this now
@Afkmuds
@Afkmuds 7 ай бұрын
how can i train a model for free that can read pdfs and learn on that data?
@younesdom
@younesdom 7 ай бұрын
first you need to collect your data, maybe perform text recognition on your pdfs and then pick a model (check huggingface and the transformer library)
@Afkmuds
@Afkmuds 7 ай бұрын
@@younesdom yuh got the data and found a model from Facebook fast text model but it’s not reall interpreting as I’d wished, or maybe it was the trying to convert to pdfs again that messed it up idk
@aimusiek
@aimusiek Жыл бұрын
Could not pass Model Download both read and write tokens from huggingface HTTPError: HTTP Error 401: Unauthorized :-(
@younesdom
@younesdom 8 ай бұрын
Huggingface keeps changing things so there can be bugs... google can help
@robcalif6337
@robcalif6337 7 ай бұрын
Your colab sheet is different than your video.
@younesdom
@younesdom 7 ай бұрын
the video is pretty old and the github colab keeps updating, hope it still works
@VioFax
@VioFax Жыл бұрын
Lets just be clear, you can have a pretty decent computer and still not have enough juice to do training at home.
@juanpaju8096
@juanpaju8096 Жыл бұрын
the hugging face token space in the olab doesnt appear to me, why could tis be happening
@rubaduba8263
@rubaduba8263 Жыл бұрын
dont need it now
@bren4425
@bren4425 Жыл бұрын
why so quiet??
@younesdom
@younesdom 8 ай бұрын
was on vacation
@Nelex5000
@Nelex5000 7 ай бұрын
I've noticed the dislike amount is always the same with these videos. probably real human beings that were looking for this and all never found it. interesting, isnt it?
@MansubaTabassum-nw1kb
@MansubaTabassum-nw1kb 2 ай бұрын
This is not training a model ...it us just fine tuning
@younesdom
@younesdom 2 ай бұрын
fine tuning involves training some parts of the model, so its not wrong to call it training i guess :)
@contentfreeGPT5-py6uv
@contentfreeGPT5-py6uv Ай бұрын
Yea fine tunning, the title Is clickbait, but it's ok all people doing it
@janbaer3241
@janbaer3241 11 ай бұрын
Start video at 3:00. You're welcome.
@younesdom
@younesdom 8 ай бұрын
I need more watch time to Earn $ on yt :(
@Nelex5000
@Nelex5000 7 ай бұрын
No download link: check no actual explaination on where to put the images: check very non friendly ui: check not free: check another nothingburger clickbait
@Elba.Ginon93
@Elba.Ginon93 7 ай бұрын
It wont work, I need step by step, AI was supposed to be easier than drawing why fo you have to be a Dr Mathematician 😢?
@younesdom
@younesdom 5 ай бұрын
welcome to the life of programmerds
@neelamverma7852
@neelamverma7852 Жыл бұрын
Ima use it to make corn☠️☠️
@younesdom
@younesdom 8 ай бұрын
use the force wisely
@anunnakiiscomming9810
@anunnakiiscomming9810 4 ай бұрын
>uses cloud >use your own images nope disliked and flagged for being absolutely dumb
@younesdom
@younesdom 3 ай бұрын
thanks for your feedback, now go make a video about running stable diffusion on an old laptop ;) PS dont forget to subscribe
@hpatel01terp
@hpatel01terp Жыл бұрын
I keep getting this error when im running the "test the training model" LatentDiffusion: Running in eps-prediction mode DiffusionWrapper has 859.52 M params. Failed to create model quickly; will retry using slow method. LatentDiffusion: Running in eps-prediction mode DiffusionWrapper has 859.52 M params. loading stable diffusion model: TypeError Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_models.py", line 338, in load_model sd_model = instantiate_from_config(sd_config.model) File "/content/gdrive/MyDrive/sd/stablediffusion/ldm/util.py", line 79, in instantiate_from_config return get_obj_from_str(config["target"])(**config.get("params", dict()))
@JirenFTW
@JirenFTW Жыл бұрын
Im getting the same error, it was working fine yesterday Idk whats causing this error
@younesdom
@younesdom Жыл бұрын
no idea what that is, someone please ask chatgpt..
Training (Fine-Tuning) Your Own Stable Diffusion Model Using Colab
29:57
How I Made AI Assistants Do My Work For Me: CrewAI
19:21
Maya Akim
Рет қаралды 782 М.
لااا! هذه البرتقالة مزعجة جدًا #قصير
00:15
One More Arabic
Рет қаралды 24 МЛН
No empty
00:35
Mamasoboliha
Рет қаралды 10 МЛН
Run your own AI (but private)
22:13
NetworkChuck
Рет қаралды 1,3 МЛН
Turn AI Images into 3D Animated Characters: Tutorial
28:58
Prompt Muse
Рет қаралды 557 М.
Train a Stable Diffusion Model Based on Your Own Art Style
18:25
How Senior Programmers ACTUALLY Write Code
13:37
Thriving Technologist
Рет қаралды 1,5 МЛН
23 AI Tools You Won't Believe are Free
25:19
Futurepedia
Рет қаралды 2 МЛН
Training Your Own AI Model Is Not As Hard As You (Probably) Think
10:24
Steve (Builder.io)
Рет қаралды 488 М.
Training LoRA with Kohya (theory included!)
36:18
Laura Carnevali
Рет қаралды 90 М.
Nokia 3310 top
0:20
YT 𝒯𝒾𝓂𝓉𝒾𝓀
Рет қаралды 4,4 МЛН
Сколько реально стоит ПК Величайшего?
0:37
Ba Travel Smart Phone Charger
0:42
Tech Official
Рет қаралды 1,2 МЛН
Это - iPhone 16!
16:29
Rozetked
Рет қаралды 445 М.
Rate This Smartphone Cooler Set-up ⭐
0:10
Shakeuptech
Рет қаралды 7 МЛН
iPhone 15 Pro в реальной жизни
24:07
HUDAKOV
Рет қаралды 503 М.