PseudoTerminal X commited on
Commit
92f78c1
1 Parent(s): 572e87d

Model card auto-generated by SimpleTuner

Browse files
Files changed (1) hide show
  1. README.md +239 -0
README.md ADDED
@@ -0,0 +1,239 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: creativeml-openrail-m
3
+ base_model: "black-forest-labs/FLUX.1-dev"
4
+ tags:
5
+ - stable-diffusion
6
+ - stable-diffusion-diffusers
7
+ - text-to-image
8
+ - diffusers
9
+ - simpletuner
10
+ - lora
11
+ - template:sd-lora
12
+ inference: true
13
+ widget:
14
+ - text: 'unconditional (blank prompt)'
15
+ parameters:
16
+ negative_prompt: 'blurry, cropped, ugly'
17
+ output:
18
+ url: ./assets/image_0_0.png
19
+ - text: 'a breathtaking naked portrait of a woman, capturing her essence with vibrant colors and expressive features'
20
+ parameters:
21
+ negative_prompt: 'blurry, cropped, ugly'
22
+ output:
23
+ url: ./assets/image_1_0.png
24
+ - text: 'a high-quality, detailed photograph of a woman as a sous-chef, immersed in the art of culinary creation'
25
+ parameters:
26
+ negative_prompt: 'blurry, cropped, ugly'
27
+ output:
28
+ url: ./assets/image_2_0.png
29
+ - text: 'a lifelike and intimate naked portrait of a woman exploding into stardust'
30
+ parameters:
31
+ negative_prompt: 'blurry, cropped, ugly'
32
+ output:
33
+ url: ./assets/image_3_0.png
34
+ - text: 'a cinematic, visually stunning photo of a naked man, emphasizing his dramatic and captivating presence'
35
+ parameters:
36
+ negative_prompt: 'blurry, cropped, ugly'
37
+ output:
38
+ url: ./assets/image_4_0.png
39
+ - text: 'an elegant and timeless portrait of a woman, exuding grace and sophistication'
40
+ parameters:
41
+ negative_prompt: 'blurry, cropped, ugly'
42
+ output:
43
+ url: ./assets/image_5_0.png
44
+ - text: 'a dynamic and adventurous photo of a woman, captured in an exciting, action-filled moment'
45
+ parameters:
46
+ negative_prompt: 'blurry, cropped, ugly'
47
+ output:
48
+ url: ./assets/image_6_0.png
49
+ - text: 'a mysterious and enigmatic portrait of a woman, shrouded in shadows and intrigue'
50
+ parameters:
51
+ negative_prompt: 'blurry, cropped, ugly'
52
+ output:
53
+ url: ./assets/image_7_0.png
54
+ - text: 'a vintage-style portrait of a woman, evoking the charm and nostalgia of a bygone era'
55
+ parameters:
56
+ negative_prompt: 'blurry, cropped, ugly'
57
+ output:
58
+ url: ./assets/image_8_0.png
59
+ - text: 'an artistic and abstract representation of a woman, blending creativity with visual storytelling'
60
+ parameters:
61
+ negative_prompt: 'blurry, cropped, ugly'
62
+ output:
63
+ url: ./assets/image_9_0.png
64
+ - text: 'a futuristic and cutting-edge portrayal of a woman, set against a backdrop of advanced technology'
65
+ parameters:
66
+ negative_prompt: 'blurry, cropped, ugly'
67
+ output:
68
+ url: ./assets/image_10_0.png
69
+ - text: 'a beautifully crafted portrait of a woman, highlighting her natural beauty and unique features'
70
+ parameters:
71
+ negative_prompt: 'blurry, cropped, ugly'
72
+ output:
73
+ url: ./assets/image_11_0.png
74
+ - text: 'a powerful and striking portrait of a man, capturing his strength and character'
75
+ parameters:
76
+ negative_prompt: 'blurry, cropped, ugly'
77
+ output:
78
+ url: ./assets/image_12_0.png
79
+ - text: 'a playful and spirited portrait of a clunky robot, capturing its metallic, shiny innocence'
80
+ parameters:
81
+ negative_prompt: 'blurry, cropped, ugly'
82
+ output:
83
+ url: ./assets/image_13_0.png
84
+ - text: 'a charming and vibrant portrait of a chewbacca, emphasizing his hairy personality and joy'
85
+ parameters:
86
+ negative_prompt: 'blurry, cropped, ugly'
87
+ output:
88
+ url: ./assets/image_14_0.png
89
+ - text: 'a heartwarming and cohesive family portrait, showcasing the bonds and connections between loved ones'
90
+ parameters:
91
+ negative_prompt: 'blurry, cropped, ugly'
92
+ output:
93
+ url: ./assets/image_15_0.png
94
+ - text: 'a charming and warm photograph of a man at the beach on a sunny day'
95
+ parameters:
96
+ negative_prompt: 'blurry, cropped, ugly'
97
+ output:
98
+ url: ./assets/image_16_0.png
99
+ - text: 'a cute man sitting in a roller coaster car, looking like he is enjoying the day at the theme park'
100
+ parameters:
101
+ negative_prompt: 'blurry, cropped, ugly'
102
+ output:
103
+ url: ./assets/image_17_0.png
104
+ - text: 'a photograph of a juggalo from insane clown posse standing with his gang of thugs'
105
+ parameters:
106
+ negative_prompt: 'blurry, cropped, ugly'
107
+ output:
108
+ url: ./assets/image_18_0.png
109
+ - text: 'julie, in photograph style'
110
+ parameters:
111
+ negative_prompt: 'blurry, cropped, ugly'
112
+ output:
113
+ url: ./assets/image_19_0.png
114
+ ---
115
+
116
+ # flux-dreambooth-lora-r128-dev-reddit
117
+
118
+ This is a LoRA derived from [black-forest-labs/FLUX.1-dev](https://huggingface.co/black-forest-labs/FLUX.1-dev).
119
+
120
+
121
+
122
+ The main validation prompt used during training was:
123
+
124
+
125
+
126
+ ```
127
+ julie, in photograph style
128
+ ```
129
+
130
+ ## Validation settings
131
+ - CFG: `3.0`
132
+ - CFG Rescale: `0.0`
133
+ - Steps: `20`
134
+ - Sampler: `None`
135
+ - Seed: `420420420`
136
+ - Resolution: `512`
137
+
138
+ Note: The validation settings are not necessarily the same as the [training settings](#training-settings).
139
+
140
+ You can find some example images in the following gallery:
141
+
142
+
143
+ <Gallery />
144
+
145
+ The text encoder **was not** trained.
146
+ You may reuse the base model text encoder for inference.
147
+
148
+
149
+ ## Training settings
150
+
151
+ - Training epochs: 0
152
+ - Training steps: 500
153
+ - Learning rate: 0.0001
154
+ - Effective batch size: 2
155
+ - Micro-batch size: 1
156
+ - Gradient accumulation steps: 2
157
+ - Number of GPUs: 1
158
+ - Prediction type: flow-matching
159
+ - Rescaled betas zero SNR: False
160
+ - Optimizer: AdamW, stochastic bf16
161
+ - Precision: Pure BF16
162
+ - Xformers: Not used
163
+ - LoRA Rank: 128
164
+ - LoRA Alpha: 128.0
165
+ - LoRA Dropout: 0.1
166
+ - LoRA initialisation style: default
167
+
168
+
169
+ ## Datasets
170
+
171
+ ### normalnudes
172
+ - Repeats: 0
173
+ - Total number of images: 1126
174
+ - Total number of aspect buckets: 3
175
+ - Resolution: 1.0 megapixels
176
+ - Cropped: True
177
+ - Crop style: random
178
+ - Crop aspect: random
179
+ ### nsfw-1024
180
+ - Repeats: 0
181
+ - Total number of images: 10816
182
+ - Total number of aspect buckets: 1
183
+ - Resolution: 512 px
184
+ - Cropped: True
185
+ - Crop style: random
186
+ - Crop aspect: square
187
+ ### shutterstock
188
+ - Repeats: 0
189
+ - Total number of images: 21076
190
+ - Total number of aspect buckets: 1
191
+ - Resolution: 512 px
192
+ - Cropped: True
193
+ - Crop style: random
194
+ - Crop aspect: square
195
+ ### julia
196
+ - Repeats: 0
197
+ - Total number of images: 34
198
+ - Total number of aspect buckets: 1
199
+ - Resolution: 512 px
200
+ - Cropped: True
201
+ - Crop style: random
202
+ - Crop aspect: square
203
+ ### riverphoenix
204
+ - Repeats: 0
205
+ - Total number of images: 12
206
+ - Total number of aspect buckets: 1
207
+ - Resolution: 512 px
208
+ - Cropped: True
209
+ - Crop style: random
210
+ - Crop aspect: square
211
+
212
+
213
+ ## Inference
214
+
215
+
216
+ ```python
217
+ import torch
218
+ from diffusers import DiffusionPipeline
219
+
220
+ model_id = 'black-forest-labs/FLUX.1-dev'
221
+ adapter_id = 'ptx0/flux-dreambooth-lora-r128-dev-reddit'
222
+ pipeline = DiffusionPipeline.from_pretrained(model_id)
223
+ pipeline.load_lora_weights(adapter_id)
224
+
225
+ prompt = "julie, in photograph style"
226
+
227
+
228
+ pipeline.to('cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu')
229
+ image = pipeline(
230
+ prompt=prompt,
231
+ num_inference_steps=20,
232
+ generator=torch.Generator(device='cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu').manual_seed(1641421826),
233
+ width=512,
234
+ height=512,
235
+ guidance_scale=3.0,
236
+ ).images[0]
237
+ image.save("output.png", format="PNG")
238
+ ```
239
+