MonsterMMORPG commited on
Commit
73a25ae
1 Parent(s): 31833cb

Upload Generate-Photos-Of-Yourself-In-Different-Cities-&-Different-Fancy-Suits-With-SDXL-DreamBooth-Training-For-Free.md

Browse files
Generate-Photos-Of-Yourself-In-Different-Cities-&-Different-Fancy-Suits-With-SDXL-DreamBooth-Training-For-Free.md ADDED
@@ -0,0 +1,175 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ [![image](https://img.shields.io/discord/772774097734074388?label=Discord&logo=discord)](https://discord.com/servers/software-engineering-courses-secourses-772774097734074388) [![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2FFurkanGozukara%2FStable-Diffusion%2Fblob%2Fmain%2FGenerative-AI%2FGenerate-Photos-Of-Yourself-In-Different-Cities-%2526-Different-Fancy-Suits-With-SDXL-DreamBooth-Training-For-Free.md&count_bg=%2379C83D&title_bg=%239E0F0F&icon=apachespark.svg&icon_color=%23E7E7E7&title=views&edge_flat=false)](https://hits.seeyoufarm.com)
3
+
4
+ [![Patreon](https://img.shields.io/badge/Patreon-Support%20Me-F2EB0E?style=for-the-badge&logo=patreon)](https://www.patreon.com/SECourses) [![BuyMeACoffee](https://img.shields.io/badge/Buy%20Me%20a%20Coffee-ffdd00?style=for-the-badge&logo=buy-me-a-coffee&logoColor=black)](https://www.buymeacoffee.com/DrFurkan) [![Furkan Gözükara Medium](https://img.shields.io/badge/Medium-Follow%20Me-800080?style=for-the-badge&logo=medium&logoColor=white)](https://medium.com/@furkangozukara) [![Codio](https://img.shields.io/static/v1?style=for-the-badge&message=Articles&color=4574E0&logo=Codio&logoColor=FFFFFF&label=CivitAI)](https://civitai.com/user/SECourses/articles) [![Furkan Gözükara Medium](https://img.shields.io/badge/DeviantArt-Follow%20Me-990000?style=for-the-badge&logo=deviantart&logoColor=white)](https://www.deviantart.com/monstermmorpg)
5
+
6
+ [![YouTube Channel](https://img.shields.io/badge/YouTube-SECourses-C50C0C?style=for-the-badge&logo=youtube)](https://www.youtube.com/SECourses) [![Furkan Gözükara LinkedIn](https://img.shields.io/badge/LinkedIn-Follow%20Me-0077B5?style=for-the-badge&logo=linkedin&logoColor=white)](https://www.linkedin.com/in/furkangozukara/) [![Udemy](https://img.shields.io/static/v1?style=for-the-badge&message=Stable%20Diffusion%20Course&color=A435F0&logo=Udemy&logoColor=FFFFFF&label=Udemy)](https://www.udemy.com/course/stable-diffusion-dreambooth-lora-zero-to-hero/?referralCode=E327407C9BDF0CEA8156) [![Twitter Follow Furkan Gözükara](https://img.shields.io/badge/Twitter-Follow%20Me-1DA1F2?style=for-the-badge&logo=twitter&logoColor=white)](https://twitter.com/GozukaraFurkan)
7
+
8
+ # Generate Photos Of Yourself In Different Cities & Different Fancy Suits With SDXL DreamBooth Training For Free
9
+
10
+
11
+ To train this model I have used Stable Diffusion XL (SDXL) 1.0 Base model. I still find base model best for realism.
12
+
13
+
14
+ I used the configuration I shared here currently. It has been discovered after 120 different full trainings experimentation : [https://www.patreon.com/posts/very-best-for-of-89213064](https://www.patreon.com/posts/very-best-for-of-89213064)
15
+
16
+
17
+ Hopefully I will make a full big tutorial of DreamBooth training and show all the settings.
18
+
19
+
20
+ For training Kohya SS GUI is used. If you don’t know how to install and use Kohya SS GUI here the tutorial you need > [https://youtu.be/sBFGitIvD2A](https://youtu.be/sBFGitIvD2A)
21
+
22
+
23
+ And here is the tutorial that shows how to use shared configuration both on Windows and RunPod > [https://www.youtube.com/watch?v=EEV8RPohsbw](https://www.youtube.com/watch?v=EEV8RPohsbw)
24
+
25
+
26
+  
27
+
28
+
29
+ If you are <strong>not my Patreon supporter</strong> currently I have full public tutorial for LoRA training of SDXL that requires 12 GB VRAM &gt; [https://youtu.be/sBFGitIvD2A](https://youtu.be/sBFGitIvD2A)
30
+
31
+
32
+ If you don’t have a strong GPU and PC you can use Free Kaggle notebook for SDXL DreamBooth training &gt; [https://youtu.be/16-b1AjvyBE](https://youtu.be/16-b1AjvyBE)
33
+
34
+
35
+ So I used the below images as training images dataset.
36
+
37
+
38
+ This training dataset is at best medium quality because it has repeating backgrounds, repeating clothing and missing fully body pose. All these causes overtraining and lesser generalization.
39
+
40
+
41
+ ![](https://miro.medium.com/v2/resize:fit:875/1*UDQgkWt1IevNLyUSCSx2aw.png)
42
+
43
+
44
+ Then for training configuration I did the following.
45
+
46
+
47
+ When training with regularization images, I did 1 epoch and 150 repeating. So more regularization images are used. And saved checkpoints at every 30 epochs. To make it that way calculate the number of steps you need to save. It is easy. 15 * 30 * 2 + 1
48
+
49
+
50
+ The images are generated from epoch 150 so it is a little bit overtrained.
51
+
52
+
53
+ I have used ultra high quality manually picked Unsplash real images having man dataset as regularization images dataset. This means they were ground truth regularization images like how Stable Diffusion was initially trained.
54
+
55
+
56
+ You can download dataset from &gt; [https://www.patreon.com/posts/massive-4k-woman-87700469](https://www.patreon.com/posts/massive-4k-woman-87700469)
57
+
58
+
59
+ 5200 images for both man and woman. Perfect quality cropped and resized to many common resolutions.
60
+
61
+
62
+ ![](https://miro.medium.com/v2/resize:fit:875/1*-R_vx1C_FjdJceD6P6wSGA.png)
63
+
64
+
65
+ All training images and reg images were 1024x1024 pixels.
66
+
67
+
68
+ Used dynamic prompting so multiple color suits are generated.
69
+
70
+
71
+ Used prompts are as below.
72
+
73
+
74
+ <strong>Positive</strong>
75
+ <blockquote>
76
+
77
+
78
+ ohwx:0.98 man slightly smiling wearing and wearing an expensive {red|blue|white|black|brown|gold} suit , photoshoot in a sunny day in a city , hd, hdr, uhd, 2k, 4k, 8k
79
+ </blockquote>
80
+
81
+
82
+ <strong>Negative</strong>
83
+ <blockquote>
84
+
85
+
86
+ sunglasses, illustration, 3d, 2d, painting, cartoons, sketch, squinting eyes, blurry
87
+ </blockquote>
88
+
89
+
90
+ In the after detailer (ADetailer) the following settings are used.
91
+
92
+
93
+ <strong>Prompt</strong>
94
+ <blockquote>
95
+
96
+
97
+ photo of ohwx man slightly smiling
98
+ </blockquote>
99
+
100
+
101
+ 0.7 denoiose and 29 steps. Rest are default.
102
+
103
+
104
+ Here below full png info
105
+ ```
106
+
107
+ parameters
108
+
109
+ ohwx:0.98 man slightly smiling wearing and wearing an expensive gold suit , photoshoot in a sunny day in a city , hd, hdr, uhd, 2k, 4k, 8k,
110
+ Negative prompt: sunglasses, illustration, 3d, 2d, painting, cartoons, sketch, squinting eyes, blurry
111
+ Steps: 20, Sampler: DPM++ 2M SDE Karras, CFG scale: 7, Seed: 744692608, Size: 1024x1024, Model hash: eef545047f, Model: me15img_150repeat, ADetailer model: face_yolov8n.pt, ADetailer prompt: photo of ohwx man slightly smiling, ADetailer confidence: 0.3, ADetailer mask only top k largest: 1, ADetailer dilate erode: 4, ADetailer mask blur: 4, ADetailer denoising strength: 0.7, ADetailer inpaint only masked: True, ADetailer inpaint padding: 32, ADetailer use separate steps: True, ADetailer steps: 29, ADetailer version: 23.11.1, Version: v1.7.0-133-gde03882d
112
+ ```
113
+
114
+
115
+ And here the results.
116
+
117
+
118
+ ![](https://miro.medium.com/v2/resize:fit:1250/1*7idf6CZGiVg21H6O2C9Ofw.png)
119
+
120
+
121
+ ![](https://miro.medium.com/v2/resize:fit:1250/1*Y0JGf84Zh-rg3a1owE_EeQ.png)
122
+
123
+
124
+ ![](https://miro.medium.com/v2/resize:fit:875/1*SqZUJzvGPUGuryN0d4Px1Q.png)
125
+
126
+
127
+ ![](https://miro.medium.com/v2/resize:fit:1250/1*22lVY7NTwo6Em4MAH9RarQ.png)
128
+
129
+
130
+ ![](https://miro.medium.com/v2/resize:fit:1250/1*dEXz0t6sTuhdA2wWZixb0w.png)
131
+
132
+
133
+ ![](https://miro.medium.com/v2/resize:fit:875/1*jgKHdPNBhrNcTHpzJJKxRA.png)
134
+
135
+
136
+ ![](https://miro.medium.com/v2/resize:fit:1250/1*DEJcGIttQEDiXYb93Hek-A.png)
137
+
138
+
139
+ ![](https://miro.medium.com/v2/resize:fit:1250/1*qlKvNKLuSzgaNoqr52cbRg.png)
140
+
141
+
142
+ ![](https://miro.medium.com/v2/resize:fit:875/1*nF6NZFAWSJds1oIeN2NHJg.png)
143
+
144
+
145
+ ![](https://miro.medium.com/v2/resize:fit:1250/1*kS40t5dCLuoiHlD39UwU9w.png)
146
+
147
+
148
+ ![](https://miro.medium.com/v2/resize:fit:1250/1*cwDn9qg6Eiz0Xxoy5ZbpmA.png)
149
+
150
+
151
+ ![](https://miro.medium.com/v2/resize:fit:875/1*9ZKzt8nYnqmUWSktm9DiXg.png)
152
+
153
+
154
+ ![](https://miro.medium.com/v2/resize:fit:1250/1*J5I6Sgw6BA8MnAcLasV-Tg.png)
155
+
156
+
157
+ ![](https://miro.medium.com/v2/resize:fit:1250/1*39V5pbNnnbfR6YsptQqE4A.png)
158
+
159
+
160
+ ![](https://miro.medium.com/v2/resize:fit:875/1*sk_hwsMXobf4hKtiXVXvfQ.png)
161
+
162
+
163
+ ![](https://miro.medium.com/v2/resize:fit:1250/1*W4rCZmhOopCiMaUIue-7YA.png)
164
+
165
+
166
+ ![](https://miro.medium.com/v2/resize:fit:1250/1*FeR_T8D6ZCsVWzArupKN8g.png)
167
+
168
+
169
+ ![](https://miro.medium.com/v2/resize:fit:875/1*1w4pyNPQZedd6bpE4q2QCg.png)
170
+
171
+
172
+ ![](https://miro.medium.com/v2/resize:fit:1250/1*DYD3FncK1JJEEvbALcHNMQ.png)
173
+
174
+
175
+ ![](https://miro.medium.com/v2/resize:fit:875/1*89CZzxVAG9wE6k9TlEq12w.png)