bghira commited on
Commit
384827f
1 Parent(s): 863debd

Model card auto-generated by SimpleTuner

Browse files
Files changed (1) hide show
  1. README.md +196 -0
README.md ADDED
@@ -0,0 +1,196 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ base_model: "black-forest-labs/FLUX.1-dev"
4
+ tags:
5
+ - flux
6
+ - flux-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 juggalo performing miracles at a festival'
20
+ parameters:
21
+ negative_prompt: 'blurry, cropped, ugly'
22
+ output:
23
+ url: ./assets/image_1_0.png
24
+ - text: 'a juggalo man and woman in a close-up portrait smiling and happy'
25
+ parameters:
26
+ negative_prompt: 'blurry, cropped, ugly'
27
+ output:
28
+ url: ./assets/image_2_0.png
29
+ - text: 'a juggalo family portrait'
30
+ parameters:
31
+ negative_prompt: 'blurry, cropped, ugly'
32
+ output:
33
+ url: ./assets/image_3_0.png
34
+ - text: 'a juggalo teacher giving a lesson to a classroom of juggalo students'
35
+ parameters:
36
+ negative_prompt: 'blurry, cropped, ugly'
37
+ output:
38
+ url: ./assets/image_4_0.png
39
+ - text: 'a toddler juggalo criminal mugshot 1998 olan mills studio photography'
40
+ parameters:
41
+ negative_prompt: 'blurry, cropped, ugly'
42
+ output:
43
+ url: ./assets/image_5_0.png
44
+ - text: 'a baby juggalo welder working on the titanic, 1912, sepia'
45
+ parameters:
46
+ negative_prompt: 'blurry, cropped, ugly'
47
+ output:
48
+ url: ./assets/image_6_0.png
49
+ - text: 'a baby juggalo news anchor on the insane clown news network wearing glasses'
50
+ parameters:
51
+ negative_prompt: 'blurry, cropped, ugly'
52
+ output:
53
+ url: ./assets/image_7_0.png
54
+ - text: 'a juggalo holding a sign that says keepin it real'
55
+ parameters:
56
+ negative_prompt: 'blurry, cropped, ugly'
57
+ output:
58
+ url: ./assets/image_8_0.png
59
+ ---
60
+
61
+ # flux-juggalos-lokr
62
+
63
+ This is a LyCORIS adapter derived from [black-forest-labs/FLUX.1-dev](https://huggingface.co/black-forest-labs/FLUX.1-dev).
64
+
65
+
66
+ The main validation prompt used during training was:
67
+
68
+
69
+
70
+ ```
71
+ a juggalo holding a sign that says keepin it real
72
+ ```
73
+
74
+ ## Validation settings
75
+ - CFG: `3.4`
76
+ - CFG Rescale: `0.0`
77
+ - Steps: `25`
78
+ - Sampler: `None`
79
+ - Seed: `42`
80
+ - Resolution: `1024x1024`
81
+
82
+ Note: The validation settings are not necessarily the same as the [training settings](#training-settings).
83
+
84
+ You can find some example images in the following gallery:
85
+
86
+
87
+ <Gallery />
88
+
89
+ The text encoder **was not** trained.
90
+ You may reuse the base model text encoder for inference.
91
+
92
+
93
+ ## Training settings
94
+
95
+ - Training epochs: 1
96
+ - Training steps: 500
97
+ - Learning rate: 5e-06
98
+ - Effective batch size: 12
99
+ - Micro-batch size: 6
100
+ - Gradient accumulation steps: 1
101
+ - Number of GPUs: 2
102
+ - Prediction type: flow-matching
103
+ - Rescaled betas zero SNR: False
104
+ - Optimizer: optimi-lion
105
+ - Precision: bf16
106
+ - Quantised: No
107
+ - Xformers: Not used
108
+ - LyCORIS Config:
109
+ ```json
110
+ {
111
+ "algo": "lokr",
112
+ "multiplier": 1.0,
113
+ "linear_dim": 10000,
114
+ "linear_alpha": 1,
115
+ "factor": 16,
116
+ "apply_preset": {
117
+ "target_module": [
118
+ "Attention",
119
+ "FeedForward"
120
+ ],
121
+ "module_algo_map": {
122
+ "Attention": {
123
+ "factor": 16
124
+ },
125
+ "FeedForward": {
126
+ "factor": 8
127
+ }
128
+ }
129
+ }
130
+ }
131
+ ```
132
+
133
+ ## Datasets
134
+
135
+ ### juggalos-aspect-bucket
136
+ - Repeats: 10
137
+ - Total number of images: ~26
138
+ - Total number of aspect buckets: 7
139
+ - Resolution: 0.262144 megapixels
140
+ - Cropped: False
141
+ - Crop style: None
142
+ - Crop aspect: None
143
+ ### juggalos-crop
144
+ - Repeats: 10
145
+ - Total number of images: ~22
146
+ - Total number of aspect buckets: 1
147
+ - Resolution: 0.262144 megapixels
148
+ - Cropped: True
149
+ - Crop style: random
150
+ - Crop aspect: square
151
+ ### juggalos-aspect-bucket-1mp
152
+ - Repeats: 10
153
+ - Total number of images: ~26
154
+ - Total number of aspect buckets: 8
155
+ - Resolution: 1.048576 megapixels
156
+ - Cropped: False
157
+ - Crop style: None
158
+ - Crop aspect: None
159
+ ### juggalos-crop-1mp
160
+ - Repeats: 10
161
+ - Total number of images: ~20
162
+ - Total number of aspect buckets: 1
163
+ - Resolution: 1.048576 megapixels
164
+ - Cropped: True
165
+ - Crop style: random
166
+ - Crop aspect: square
167
+
168
+
169
+ ## Inference
170
+
171
+
172
+ ```python
173
+ import torch
174
+ from diffusers import DiffusionPipeline
175
+ from lycoris import create_lycoris_from_weights
176
+
177
+ model_id = 'black-forest-labs/FLUX.1-dev'
178
+ adapter_id = 'pytorch_lora_weights.safetensors' # you will have to download this manually
179
+ lora_scale = 1.0
180
+ wrapper, _ = create_lycoris_from_weights(lora_scale, adapter_id, pipeline.transformer)
181
+ wrapper.merge_to()
182
+
183
+ prompt = "a juggalo holding a sign that says keepin it real"
184
+
185
+ pipeline.to('cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu')
186
+ image = pipeline(
187
+ prompt=prompt,
188
+ num_inference_steps=25,
189
+ generator=torch.Generator(device='cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu').manual_seed(1641421826),
190
+ width=1024,
191
+ height=1024,
192
+ guidance_scale=3.4,
193
+ ).images[0]
194
+ image.save("output.png", format="PNG")
195
+ ```
196
+