markury commited on
Commit
02cb63e
1 Parent(s): 4ff103f

Model card auto-generated by SimpleTuner

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