rohn132 commited on
Commit
b85c681
1 Parent(s): 40dcabc

Model card auto-generated by SimpleTuner

Browse files
Files changed (1) hide show
  1. README.md +106 -0
README.md ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+
14
+ ---
15
+
16
+ # simpletuner-lora-flux
17
+
18
+ This is a standard PEFT LoRA derived from [black-forest-labs/FLUX.1-dev](https://huggingface.co/black-forest-labs/FLUX.1-dev).
19
+
20
+
21
+ The main validation prompt used during training was:
22
+
23
+
24
+
25
+ ```
26
+ ethnographic photography of teddy bear at a picnic
27
+ ```
28
+
29
+ ## Validation settings
30
+ - CFG: `3.0`
31
+ - CFG Rescale: `0.0`
32
+ - Steps: `20`
33
+ - Sampler: `None`
34
+ - Seed: `42`
35
+ - Resolution: `1024x1024`
36
+
37
+ Note: The validation settings are not necessarily the same as the [training settings](#training-settings).
38
+
39
+
40
+
41
+
42
+ <Gallery />
43
+
44
+ The text encoder **was not** trained.
45
+ You may reuse the base model text encoder for inference.
46
+
47
+
48
+ ## Training settings
49
+
50
+ - Training epochs: 7
51
+ - Training steps: 0
52
+ - Learning rate: 8e-05
53
+ - Effective batch size: 40
54
+ - Micro-batch size: 10
55
+ - Gradient accumulation steps: 4
56
+ - Number of GPUs: 1
57
+ - Prediction type: flow-matching
58
+ - Rescaled betas zero SNR: False
59
+ - Optimizer: adamw_bf16
60
+ - Precision: bf16
61
+ - Quantised: No
62
+ - Xformers: Not used
63
+ - LoRA Rank: 64
64
+ - LoRA Alpha: None
65
+ - LoRA Dropout: 0.1
66
+ - LoRA initialisation style: default
67
+
68
+
69
+ ## Datasets
70
+
71
+ ### transparent_objects_custom
72
+ - Repeats: 0
73
+ - Total number of images: 160826
74
+ - Total number of aspect buckets: 1
75
+ - Resolution: 0.262144 megapixels
76
+ - Cropped: False
77
+ - Crop style: None
78
+ - Crop aspect: None
79
+
80
+
81
+ ## Inference
82
+
83
+
84
+ ```python
85
+ import torch
86
+ from diffusers import DiffusionPipeline
87
+
88
+ model_id = 'black-forest-labs/FLUX.1-dev'
89
+ adapter_id = 'rohn132/simpletuner-lora-flux'
90
+ pipeline = DiffusionPipeline.from_pretrained(model_id)
91
+ pipeline.load_lora_weights(adapter_id)
92
+
93
+ prompt = "ethnographic photography of teddy bear at a picnic"
94
+
95
+ pipeline.to('cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu')
96
+ image = pipeline(
97
+ prompt=prompt,
98
+ num_inference_steps=20,
99
+ generator=torch.Generator(device='cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu').manual_seed(1641421826),
100
+ width=1024,
101
+ height=1024,
102
+ guidance_scale=3.0,
103
+ ).images[0]
104
+ image.save("output.png", format="PNG")
105
+ ```
106
+