clayygodd commited on
Commit
2a543c2
1 Parent(s): 25edf86

Model card auto-generated by SimpleTuner

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