Model card auto-generated by SimpleTuner
Browse files
README.md
ADDED
@@ -0,0 +1,168 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
- not-for-all-audiences
|
11 |
+
- lora
|
12 |
+
- template:sd-lora
|
13 |
+
- standard
|
14 |
+
inference: true
|
15 |
+
widget:
|
16 |
+
- text: 'unconditional (blank prompt)'
|
17 |
+
parameters:
|
18 |
+
negative_prompt: 'blurry, cropped, ugly'
|
19 |
+
output:
|
20 |
+
url: ./assets/image_0_0.png
|
21 |
+
- text: 'a breathtaking anime-style portrait of Philippe, capturing his essence with vibrant colors and expressive features'
|
22 |
+
parameters:
|
23 |
+
negative_prompt: 'blurry, cropped, ugly'
|
24 |
+
output:
|
25 |
+
url: ./assets/image_1_0.png
|
26 |
+
- text: 'a high-quality, detailed photograph of Philippe as a sous-chef, immersed in the art of culinary creation'
|
27 |
+
parameters:
|
28 |
+
negative_prompt: 'blurry, cropped, ugly'
|
29 |
+
output:
|
30 |
+
url: ./assets/image_2_0.png
|
31 |
+
- text: 'a lifelike and intimate portrait of Philippe, showcasing his unique personality and charm'
|
32 |
+
parameters:
|
33 |
+
negative_prompt: 'blurry, cropped, ugly'
|
34 |
+
output:
|
35 |
+
url: ./assets/image_3_0.png
|
36 |
+
- text: 'a cinematic, visually stunning photo of Philippe, emphasizing his dramatic and captivating presence'
|
37 |
+
parameters:
|
38 |
+
negative_prompt: 'blurry, cropped, ugly'
|
39 |
+
output:
|
40 |
+
url: ./assets/image_4_0.png
|
41 |
+
- text: 'an elegant and timeless portrait of Philippe, exuding grace and sophistication'
|
42 |
+
parameters:
|
43 |
+
negative_prompt: 'blurry, cropped, ugly'
|
44 |
+
output:
|
45 |
+
url: ./assets/image_5_0.png
|
46 |
+
- text: 'a dynamic and adventurous photo of Philippe, captured in an exciting, action-filled moment'
|
47 |
+
parameters:
|
48 |
+
negative_prompt: 'blurry, cropped, ugly'
|
49 |
+
output:
|
50 |
+
url: ./assets/image_6_0.png
|
51 |
+
- text: 'a mysterious and enigmatic portrait of Philippe, shrouded in shadows and intrigue'
|
52 |
+
parameters:
|
53 |
+
negative_prompt: 'blurry, cropped, ugly'
|
54 |
+
output:
|
55 |
+
url: ./assets/image_7_0.png
|
56 |
+
- text: 'a vintage-style portrait of Philippe, evoking the charm and nostalgia of a bygone era'
|
57 |
+
parameters:
|
58 |
+
negative_prompt: 'blurry, cropped, ugly'
|
59 |
+
output:
|
60 |
+
url: ./assets/image_8_0.png
|
61 |
+
- text: 'an artistic and abstract representation of Philippe, blending creativity with visual storytelling'
|
62 |
+
parameters:
|
63 |
+
negative_prompt: 'blurry, cropped, ugly'
|
64 |
+
output:
|
65 |
+
url: ./assets/image_9_0.png
|
66 |
+
- text: 'a futuristic and cutting-edge portrayal of Philippe, set against a backdrop of advanced technology'
|
67 |
+
parameters:
|
68 |
+
negative_prompt: 'blurry, cropped, ugly'
|
69 |
+
output:
|
70 |
+
url: ./assets/image_10_0.png
|
71 |
+
- text: 'A picture of Philippe'
|
72 |
+
parameters:
|
73 |
+
negative_prompt: 'blurry, cropped, ugly'
|
74 |
+
output:
|
75 |
+
url: ./assets/image_11_0.png
|
76 |
+
---
|
77 |
+
|
78 |
+
# phil_lora_flux_int8_rank8
|
79 |
+
|
80 |
+
This is a standard PEFT LoRA derived from [black-forest-labs/FLUX.1-dev](https://huggingface.co/black-forest-labs/FLUX.1-dev).
|
81 |
+
|
82 |
+
|
83 |
+
The main validation prompt used during training was:
|
84 |
+
|
85 |
+
|
86 |
+
|
87 |
+
```
|
88 |
+
A picture of Philippe
|
89 |
+
```
|
90 |
+
|
91 |
+
## Validation settings
|
92 |
+
- CFG: `3.0`
|
93 |
+
- CFG Rescale: `0.0`
|
94 |
+
- Steps: `20`
|
95 |
+
- Sampler: `None`
|
96 |
+
- Seed: `42`
|
97 |
+
- Resolution: `1024x1024`
|
98 |
+
|
99 |
+
Note: The validation settings are not necessarily the same as the [training settings](#training-settings).
|
100 |
+
|
101 |
+
You can find some example images in the following gallery:
|
102 |
+
|
103 |
+
|
104 |
+
<Gallery />
|
105 |
+
|
106 |
+
The text encoder **was not** trained.
|
107 |
+
You may reuse the base model text encoder for inference.
|
108 |
+
|
109 |
+
|
110 |
+
## Training settings
|
111 |
+
|
112 |
+
- Training epochs: 45
|
113 |
+
- Training steps: 500
|
114 |
+
- Learning rate: 0.0001
|
115 |
+
- Effective batch size: 1
|
116 |
+
- Micro-batch size: 1
|
117 |
+
- Gradient accumulation steps: 1
|
118 |
+
- Number of GPUs: 1
|
119 |
+
- Prediction type: flow-matching
|
120 |
+
- Rescaled betas zero SNR: False
|
121 |
+
- Optimizer: adamw_bf16
|
122 |
+
- Precision: Pure BF16
|
123 |
+
- Quantised: Yes: int8-quanto
|
124 |
+
- Xformers: Not used
|
125 |
+
- LoRA Rank: 8
|
126 |
+
- LoRA Alpha: None
|
127 |
+
- LoRA Dropout: 0.1
|
128 |
+
- LoRA initialisation style: default
|
129 |
+
|
130 |
+
|
131 |
+
## Datasets
|
132 |
+
|
133 |
+
### dreambooth-subject
|
134 |
+
- Repeats: 0
|
135 |
+
- Total number of images: 11
|
136 |
+
- Total number of aspect buckets: 1
|
137 |
+
- Resolution: 1.048576 megapixels
|
138 |
+
- Cropped: False
|
139 |
+
- Crop style: None
|
140 |
+
- Crop aspect: None
|
141 |
+
|
142 |
+
|
143 |
+
## Inference
|
144 |
+
|
145 |
+
|
146 |
+
```python
|
147 |
+
import torch
|
148 |
+
from diffusers import DiffusionPipeline
|
149 |
+
|
150 |
+
model_id = 'black-forest-labs/FLUX.1-dev'
|
151 |
+
adapter_id = 'PhilSad/phil_lora_flux_int8_rank8'
|
152 |
+
pipeline = DiffusionPipeline.from_pretrained(model_id)
|
153 |
+
pipeline.load_lora_weights(adapter_id)
|
154 |
+
|
155 |
+
prompt = "A picture of Philippe"
|
156 |
+
|
157 |
+
pipeline.to('cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu')
|
158 |
+
image = pipeline(
|
159 |
+
prompt=prompt,
|
160 |
+
num_inference_steps=20,
|
161 |
+
generator=torch.Generator(device='cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu').manual_seed(1641421826),
|
162 |
+
width=1024,
|
163 |
+
height=1024,
|
164 |
+
guidance_scale=3.0,
|
165 |
+
).images[0]
|
166 |
+
image.save("output.png", format="PNG")
|
167 |
+
```
|
168 |
+
|