trongg commited on
Commit
0ed0ec9
1 Parent(s): 64ef317

Model card auto-generated by SimpleTuner

Browse files
Files changed (1) hide show
  1. README.md +162 -0
README.md ADDED
@@ -0,0 +1,162 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: ''''
17
+ output:
18
+ url: ./assets/image_0_0.png
19
+ - text: 'unconditional (blank prompt)'
20
+ parameters:
21
+ negative_prompt: ''''
22
+ output:
23
+ url: ./assets/image_1_1.png
24
+ - text: 'a ohwx woman wearing a dress at party'
25
+ parameters:
26
+ negative_prompt: ''''
27
+ output:
28
+ url: ./assets/image_2_0.png
29
+ - text: 'a ohwx woman wearing a dress at party'
30
+ parameters:
31
+ negative_prompt: ''''
32
+ output:
33
+ url: ./assets/image_3_1.png
34
+ - text: 'a woman wearing a dress at party'
35
+ parameters:
36
+ negative_prompt: ''''
37
+ output:
38
+ url: ./assets/image_4_0.png
39
+ - text: 'a woman wearing a dress at party'
40
+ parameters:
41
+ negative_prompt: ''''
42
+ output:
43
+ url: ./assets/image_5_1.png
44
+ - text: 'ohwx woman, simple background'
45
+ parameters:
46
+ negative_prompt: ''''
47
+ output:
48
+ url: ./assets/image_6_0.png
49
+ - text: 'ohwx woman, simple background'
50
+ parameters:
51
+ negative_prompt: ''''
52
+ output:
53
+ url: ./assets/image_7_1.png
54
+ ---
55
+
56
+ # FLUX.1-dev-dreambooth-renca_multi_res
57
+
58
+ This is a standard PEFT LoRA derived from [black-forest-labs/FLUX.1-dev](https://huggingface.co/black-forest-labs/FLUX.1-dev).
59
+
60
+
61
+ The main validation prompt used during training was:
62
+
63
+
64
+
65
+ ```
66
+ ohwx woman, simple background
67
+ ```
68
+
69
+ ## Validation settings
70
+ - CFG: `3.0`
71
+ - CFG Rescale: `0.0`
72
+ - Steps: `28`
73
+ - Sampler: `None`
74
+ - Seed: `42`
75
+ - Resolutions: `512x768,1280x768`
76
+
77
+ Note: The validation settings are not necessarily the same as the [training settings](#training-settings).
78
+
79
+ You can find some example images in the following gallery:
80
+
81
+
82
+ <Gallery />
83
+
84
+ The text encoder **was not** trained.
85
+ You may reuse the base model text encoder for inference.
86
+
87
+
88
+ ## Training settings
89
+
90
+ - Training epochs: 16
91
+ - Training steps: 250
92
+ - Learning rate: 0.0001
93
+ - Effective batch size: 4
94
+ - Micro-batch size: 1
95
+ - Gradient accumulation steps: 4
96
+ - Number of GPUs: 1
97
+ - Prediction type: flow-matching
98
+ - Rescaled betas zero SNR: False
99
+ - Optimizer: adamw_bf16
100
+ - Precision: bf16
101
+ - Quantised: No
102
+ - Xformers: Not used
103
+ - LoRA Rank: 16
104
+ - LoRA Alpha: 16.0
105
+ - LoRA Dropout: 0.1
106
+ - LoRA initialisation style: default
107
+
108
+
109
+ ## Datasets
110
+
111
+ ### renca_512
112
+ - Repeats: 0
113
+ - Total number of images: 20
114
+ - Total number of aspect buckets: 1
115
+ - Resolution: 0.262144 megapixels
116
+ - Cropped: True
117
+ - Crop style: center
118
+ - Crop aspect: random
119
+ ### renca_768
120
+ - Repeats: 0
121
+ - Total number of images: 20
122
+ - Total number of aspect buckets: 1
123
+ - Resolution: 0.589824 megapixels
124
+ - Cropped: True
125
+ - Crop style: center
126
+ - Crop aspect: random
127
+ ### renca_1024
128
+ - Repeats: 0
129
+ - Total number of images: 20
130
+ - Total number of aspect buckets: 1
131
+ - Resolution: 1.048576 megapixels
132
+ - Cropped: True
133
+ - Crop style: center
134
+ - Crop aspect: random
135
+
136
+
137
+ ## Inference
138
+
139
+
140
+ ```python
141
+ import torch
142
+ from diffusers import DiffusionPipeline
143
+
144
+ model_id = 'black-forest-labs/FLUX.1-dev'
145
+ adapter_id = 'trongg/FLUX.1-dev-dreambooth-renca_multi_res'
146
+ pipeline = DiffusionPipeline.from_pretrained(model_id)
147
+ pipeline.load_lora_weights(adapter_id)
148
+
149
+ prompt = "ohwx woman, simple background"
150
+
151
+ pipeline.to('cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu')
152
+ image = pipeline(
153
+ prompt=prompt,
154
+ num_inference_steps=28,
155
+ generator=torch.Generator(device='cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu').manual_seed(1641421826),
156
+ width=512,
157
+ height=768,
158
+ guidance_scale=3.0,
159
+ ).images[0]
160
+ image.save("output.png", format="PNG")
161
+ ```
162
+