Inject Yourself into the AI and Make Any Image With Your Face! (100% FREE Method)
Key Takeaways
This video demonstrates how to use Stable Diffusion and Dreambooth to generate AI digital art with a user's face, utilizing tools like Hugging Face, xformers, and Google Drive. The process involves fine-tuning a model with 20 images of the user and generating images with specific prompts.
Full Transcript
what's up everyone Matt wolf here AKA e flow in this video we're going to talk about AI art and how you can generate images with your face on them you can generate anything you can imagine just look at all these images I've put my face on you can do anything like this once you know how to do what I'm talking about I've literally generated hundreds of these put my face on everything and you're gonna be able to do that too right when this video is over so let's go ahead and Dive Right In now before you get into this you're going to want about 20 images of yourself in my specific example I have 16 close in head shots and about four from the waist up you want to try to get your face from as many different angles different backgrounds and wearing different clothes as possible to really help train the AI now all of these images should be exactly 512 by 512 pixels you want to resize them and crop them so that they all are at that 512 by 512 aspect ratio and then I rename all the files as the prompt that I'm going to use to make my name show up more on that in the video so once you've got your 20 or so images first thing you're going to want to do is come to this long URL here I will make sure the URL is available in the comments or the blog post below this video so you don't have to remember it and once you're on this website to start you're just going to follow the steps on the screen so first step we're going to click this play button next to check type of GPU and vram available run anyway and let it do its thing here that took you know just a couple seconds here that step is done we're going to come down to install requirements right here we're going to click on play next to install requirements all right so once these install requirements are done this took about 47 seconds we're going to move down to the next step that says log into hugging face so what you're going to want to do is you're going to want to click on this link here that says visit the model card and then you're going to need to sign up for a hugging face account so go ahead and click sign up follow the instructions to sign up and then once you are signed up to hugging face for free now once you're signed up you're actually going to want to close this tab completely come back to this page again click on this model card link again so that you're opening this link again but while you're logged in so make sure you're logged in when you get to this page there's going to be a button down here at the bottom to accept the terms and conditions make sure you click that button that's why you clicked on this link again and opened this page in a new tab you need to click on the button to accept the terms and conditions if you do not accept the terms and conditions the process won't work it won't work until you've checked that box so make sure you check the box now I've already checked it because I've run this a few times once you've checked that box you're going to come up to the top right where your little profile icon should be click on it and come down to settings under settings click on this access tokens button go ahead and create a new token the name really doesn't matter it can be anything you want I'm just going to put example and then you want to change the role to right go ahead and generate your token and it's going to give you a new code here go ahead and click this button to copy the code come over to your dream Booth tab here and paste this code right here next to the hugging face token once you've pasted this code in go ahead and press play on this and it's going to make sure your API is properly plugged into the project that takes less than a second now we're going to come down to this next step install xformers from pre-compiled Wheel go ahead and just click this play button and let it run and that took about 12 seconds so now we're going to scroll down to the settings and run there's a button here that says save to G drive I like to select that if I save this to Google Drive it makes it easier for me to reuse my trained images in the future under model name we're going to leave that con the the same we're not going to touch that output directory this is going to be the area where it outputs the trained model that this is going to create is going to create a file with all of the details about the model so that you can use it again so I'm going to call this Mr e flow model no spaces and then I'm going to go ahead and run this and it's going to make you connect to Google drive to make sure that it can use your folders here we're going to go ahead and allow this and it's going to take a few seconds to create these proper folders in the proper places and you can see that took about 15 seconds there so we're going to keep on scrolling down here to where it says start training and we need to change a little bit of this code up in here so next to instance prompt this is going to be the prompt you're going to use to get it to pull in your face so for example if I was making an image of Mark Cuban in space eating a burrito wearing a cowboy hat and I want to replace that image and not have Mark Cuban's face but my own face I need a prompt keyword to use in place of Mark Cuban so my example I use Mr e flow that's my Twitter handle and my handle everywhere you don't want to use something that's a common word you don't want your code word to be Mark right because there's a million marks out there you want it to be something fairly unique so my instance prompt I'm going to put photo of Mr e flow and then I'm going to replace dog with person because I'm a person and not a dog the class prompt that's just the the class I put person here so I'm going to place dog also with person the instance data directory this is where we're going to upload those 20 square 5x12 images we're going to upload that to this directory here so I'm just going to call this Mr e flow and then the class data directory I'm going to call person then we're going to go ahead and click play and it's going to create those various folders for us real quick didn't even take a full second and now we're to the point where we're going to upload our images all right so you can press play here and it'll give you an upload box to upload images but what I found to be the faster way is if I come over here to this folder on the left side of the screen click on this open up the data folder open up the Mr e flow folder here and I'm going to put my files that I'm going to train right inside of this Mr e flow folder so I'm going to go ahead and open all these files that I've already pre-cropped select them all I'm just going to drag and drop them over into this Mr e flow folder it's going to remind you uploaded files will get deleted when the runtime is recycled that's fine now we've got all of our images uploaded here you can see all 20 are uploaded so I don't actually actually have to press this play button I can skip this play button we've already uploaded this is the point now where we actually start to train our images this is the point where we actually need to you know let it do its work in the background this is the part that's going to take a good you know 30 minutes in the background all right but we do need to change some settings real quick here we're going to go all the way down we're going to leave everything mostly the same next to num class images here I'm going to set this to 12 MAX train steps this is basically how many times do you want the AI to go over these images over and over and over again to figure out what the model looks like now there is a sweet spot here I find that anywhere between 1000 and 2000 seems to work the more the bigger the number the longer it's going to take to process but 2000 seems to have worked the best in fact I even did one where I trained it at four thousand and the images the final product came out worse than when I changed it at 2000 so you can over train these images and get it to a point where the face no longer looks like yours so I've noticed that the max train steps between one thousand and two thousand seem to work I've heard some rules of thumb that you want to multiply how many photos you're uploading by a hundred so if you're uploading 20 photos multiply that by a hundred you got two thousand that rule of thumb seems to have worked well for me when I've done this so I'm going to put Max train steps at 2000 the save interval I'm also just going to put that at 2000 and then when this is all done processing it's going to run some example images from you for you now when it runs the example images right now it's going to give you an example image of zwx Dot is not going to know how to process that so we need to change that to the prompt that we created earlier so for this one I'm going to change that to photo of Mr e flow person that way when it generates my samples it's going to generate them using my face all right now I'm going to go ahead and click this play button and this is the part that actually takes some time to process so the video is probably going to pause while I process this and then we'll come back when it's all done but I'm going to go ahead and press play now you're going to watch it start to do some work in the background and a bunch of text is going to show up now there is one thing about using this Google website to process all of this is if you step away for too long the site will time out and you'll have to start all over from scratch from the beginning so while this is processing you actually kind of want to scroll up and down the site here a little bit you got some of these little arrows that will open and close boxes you want to open and close stuff here this is going to take a good 30 to 40 minutes sometimes even upwards of an hour to process all of this so just make sure that you're active on the site what I tend to do scroll around a little bit open and close stuff then I'll go watch a YouTube video for like five minutes and then I'll come back scroll around a little more open up some stuff but you probably don't want to step away from your computer while you're doing this you want to kind of do other stuff while it's processing come back to this page make sure you're opening and closing stuff make sure the page doesn't time out on you alright so I'm gonna go ahead and let this run I'll let you know how long it took when I come back but for now we're just we're gonna let it roll for a bit all right so that process is finished now you can see up here it took about 37 minutes to run all of that and to train my images so the next step after we've done that is next to this weights directory I'm just going to go ahead and leave it blank and press play it's just going to kind of set a default directory where it's going to put the finished products and then I'm gonna go ahead and click this play button to generate a grid of preview images just to make sure that everything's looking the way I would expect it to so these are all AI generated images using my likeness and the photos that I uploaded do they all look pretty close to me I would say Yep they're all you know all pretty good some interesting outfit choices but they look good all right so we're going to scroll on down here convert weights to ckpt this is a file that you'll use if you want to use your training data again in the future so if you're going to want to use this trained model so that you could create images out of this trained model in the future you're probably going to want to run this conversion and download the file that it generates so I'm going to go ahead and run the conversion real quick all right so that took about 23 seconds and you can see that it saved it into my Google Drive under this folder here so now I can find this model file again I'll be able to use it again in the future so next you're going to go to this inference click play on here let it run this script all right so that took about 37 seconds to run that script and now we get to the fun stuff so this random seed here this could literally be any number this is just a random number that the code uses to generate your images so you can generate some images with a random seed number if you don't like any of the images that came out you can change the seed number with to a different number and see if you like the images that it generates that time I'm gonna go ahead and leave it as this default seed for now and click play that took less than a second and now we can type a prompt to generate some images of ourselves so in this prompt I'm going to use my keyword that I created earlier photo of Mr e flow and then we want to put person after it you can also change the word person to woman or man if you want and you'll get slightly different variations of the images so all something to test I've found that so far the best images I've gotten have come when I used the term person versus man or woman when I generate my images so I'm going to put photo of Mr e flow person so now it knows that it's going to inject me into this image and then I can add whatever I want so wearing a top hat on the beach eating a potato you can enter a negative prompt here so if you want to make sure it doesn't include something specific you can put that here number of samples this is how many sample images it's going to generate for you the figure the number the longer it's going to take for it to generate them four seems to be like a pretty good number this guidance scale it seems like if you put the number somewhere between 5 and 15 you get the best images if you go too far beyond that they start to look like really kind of dull you go too far below it the images seem to not have that much detail so anywhere from 5 to 15 seems to work you could play with this number and get different styles of images I'm going to go with nine and then you can change the height and width if you don't want to Output a square image you can change your aspect ratio here I'm gonna go ahead and just leave it on 512 by 512 for right now and then I'm going to click play and now it's going to run and generate some images for me so it took about 39 seconds to generate these four Images let's see what it's got so this is the first image it generated of me in a top hat on the beach and that's a potato and a plate there's another one of me on a beach and you can see what it generated I don't know what's going on with this one but those do look like a plate of potatoes a giant plate of potatoes now you're probably wondering those don't look like those crazy cool stylized images you showed me at the beginning of this video how do I make them look like that well there's a really cool little ninja trick to get images that look like that so let me show you that real quick if you go to this site Lexica dot art this is all images that were generated with this same stable diffusion program and you can actually see what prompts they use to get the images so one of my favorite things to do on this site is to type in a celebrity name and I like to look up a celebrity's name because then it's really easy to just replace That Celebrity Name with my own name so for instance let's just do I don't know Tom Cruise first name that came to my mind so let's go ahead and search Tom Cruise now you can see a whole bunch of images that were generated with AI of Tom Cruise so if I like a style of any of these images I can go ahead and copy exactly what they did and replace the name Tom Cruise with Mr e flow person so let's find a really cool stylistic image here so let's say I really like this one a portrait drawing of Tom Cruise drawn by Robert Crum so I can go ahead and I can actually copy this entire prompt and you can see some other images that were generated using that exact same prompt I could copy this prompt here come over to dream booth and in the prompt paste that exact prompt and then it gives me a seed number I can actually copy this seed number replace it with this one go ahead and press play so that it processes that seed number it's got a guidance scale of seven and dimensions of 512 by 512 so let's change our guidance scale here to seven and the dimensions to 512 by 512 and we've got a portrait drawing of Tom Cruise drawn by Robert Crum so let's go ahead and replace Tom Cruise with Mr e flow person and see what it spits out at us all right so it took about 35 seconds this time let's see what it gave us so here's a handful of drawing sort of images let's say I'm not really a big fan of the way any of these came out and I want it to generate some more well simple I can go and change this seed right here to any random number I want let's just go oh 420 69 press play so that it adds that seed into it and then maybe I want to change the guidance scale a little bit and see how that affects these images press play again I've changed two variables here but left the prompt the same change the seed number change the guidance scale let's see how drastically just changing those two things changes the output of what I get all right so that took about 36 seconds and you can see here's some more drawings in various Styles this time it kind of made them all in black and white let's say I want it to be color I can go and add that to the description a portrait drawing of Mr eflow person drawn by Robert Crum let's just go ahead and add colorful to the end and see how that changes things all right so here's what it got it looks like uh some sort of campaign poster colorful drawing you know here's some interesting variations and if I want to save them I just right click save image as and save it to where you want to save your images and that's really all there is to it now you can literally put your face on anything you want in any style image you want great for YouTube thumbnails Profile Pics nfts whatever you want to do with them hope this video was helpful I'm gonna be creating a lot more videos about AI in the future so check back for more see you later
Original Description
I love to teach this kind of stuff! Here's how you can train Stable Diffusion to use your face when generate AI Digital Art.
Here's the the long link to Dreambooth:
https://colab.research.google.com/github/ShivamShrirao/diffusers/blob/main/examples/dreambooth/DreamBooth_Stable_Diffusion.ipynb
🛠️ Explore hundreds of AI Tools: https://FutureTools.io/
🐤 Follow me on Twitter: https://Twitter.com/mreflow
🐺 My personal blog: https://MattWolfe.com/
🌯 Buy me a burrito: https://ko-fi.com/mattwolfe
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from Matt Wolfe · Matt Wolfe · 8 of 60
1
2
3
4
5
6
7
▶
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Turn GMail In To An Autoresponder
Matt Wolfe
Side Hustle Ideas With Nick Loper
Matt Wolfe
How To Show Hidden Elements On Sales Pages
Matt Wolfe
Speed Up Online Video Playback
Matt Wolfe
How To Download Online Videos
Matt Wolfe
Turn GMail In To An Autoresponder
Matt Wolfe
These Crazy FREE AI Tools Let You Generate Completely Unique Images
Matt Wolfe
Inject Yourself into the AI and Make Any Image With Your Face! (100% FREE Method)
Matt Wolfe
Use This AI Tool To Make An Entire Slide Presentation
Matt Wolfe
Let AI do your Christmas shopping for you! (2 new tools)
Matt Wolfe
What happens when I let AI write my tweets?
Matt Wolfe
How I Automated My Website With These AI Tools
Matt Wolfe
The Ultimate MidJourney Prompting Guide
Matt Wolfe
Make Money Selling AI Images From MidJourney
Matt Wolfe
Do ChatGPT Detectors Work? Let's Find Out!
Matt Wolfe
Make A Royalty-Free Copy of ANY Image You Find Online
Matt Wolfe
Sound Like Any Celebrity - Free AI-Powered Voice Changer
Matt Wolfe
MidJourney Cheat Codes - Advanced Prompting Guide
Matt Wolfe
Free Tool Generates WILD MidJourney Prompts For You
Matt Wolfe
Like MidJourney But Unlimited Free Image Generations!
Matt Wolfe
How To Animate A MidJourney Image (For Free)
Matt Wolfe
This Is Better Than ChatGPT (With Prompting Guide)
Matt Wolfe
Can A.I. Make Good Music? And Can We Use It In Our Videos?
Matt Wolfe
Try This Simple Trick Next Time You're In MidJourney
Matt Wolfe
Using AI To Generate Text-To-VIDEO! Things Are Moving Fast.
Matt Wolfe
Find The Next Insane AI Tools BEFORE Everyone Else
Matt Wolfe
3 MidJourney-Like Tools That You Can Use For Free
Matt Wolfe
ChatGPT did this whole thing for me!
Matt Wolfe
Creating AI Generated Logos Using MidJourney
Matt Wolfe
Text-To-Speech Generators Are Getting So Good!
Matt Wolfe
A Single AI Prompt Built This Entire Website!
Matt Wolfe
This Voice-Cloning Tool Could Get Banned (So Let's Play With It!)
Matt Wolfe
This AI Tool Could Replace Photoshop (No Skill Required)
Matt Wolfe
MidJourney Got An Upgrade - Version 4 Is Much Better Now
Matt Wolfe
This Is How You Fool The ChatGPT Detectors
Matt Wolfe
This is Google's Answer To ChatGPT!
Matt Wolfe
GPT-4 is Now in Bing (The Next ChatGPT)
Matt Wolfe
Google Is Losing The War On AI (A Breakdown of The Event)
Matt Wolfe
This Will Make You Want To Switch To Bing!
Matt Wolfe
Forget Text-To-Image, Check Out Text-To-3D-World!
Matt Wolfe
Why Buy ChatGPT Plus If Bing Does It For Free?
Matt Wolfe
New Tool Makes AI VECTOR Logos (You're Seeing This First!)
Matt Wolfe
AI-Generated Music Vocals Are Crazy (New Tech)
Matt Wolfe
Simple Scribble Drawings Into Works of Art! (Anyone can be an artist!)
Matt Wolfe
Install Stable Diffusion Locally (Quick Setup Guide)
Matt Wolfe
How To Make Cool AI Videos (Step-By-Step)
Matt Wolfe
This AI Chrome Extension Is Amazing!
Matt Wolfe
"Borrow" Any Pose For Your AI Art! (Easy Tutorial)
Matt Wolfe
Bing Chat Refuses To Talk To Me (Use This Instead)
Matt Wolfe
Revealed: This Is Exactly How I Make My Thumbnails
Matt Wolfe
MidJourney Prompts For Ultra-Realistic Images
Matt Wolfe
Turn ChatGPT into a Powerful Midjourney Prompt Machine
Matt Wolfe
Find The Next Insane AI Tools BEFORE Everyone Else (Pt. 2)
Matt Wolfe
This AI-Video Tool Will Change Video Production Forever
Matt Wolfe
Create Amazing Videos With AI (Deforum Deep-Dive)
Matt Wolfe
Crazy AI-Powered Webcam Technology!
Matt Wolfe
AI Technology That Will Change The World (Again)
Matt Wolfe
Easily Turn Your Videos into Cool Animations with AI
Matt Wolfe
MidJourney V5 Looks Insane!
Matt Wolfe
GPT-4 is Coming Next Week? Plus More Insane AI Tools!
Matt Wolfe
More on: Fine-tuning LLMs
View skill →Related AI Lessons
⚡
⚡
⚡
⚡
FREE AI Sin City Photo Generator — Turn Any Photo Into High-Contrast Noir Art (2026)
Dev.to AI
Google makes Gemini’s personalized image generation free for all US users
The Next Web AI
Gemini’s personalized AI image generation is now free for U.S. users
TechCrunch AI
WebP's Compression Secret: How a 1MB PNG Becomes a 200KB WebP
Dev.to · swift king
🎓
Tutor Explanation
DeepCamp AI