adipanda commited on
Commit
ad5e9e0
·
verified ·
1 Parent(s): 2013576

Model card auto-generated by SimpleTuner

Browse files
Files changed (1) hide show
  1. README.md +159 -0
README.md ADDED
@@ -0,0 +1,159 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ - safe-for-work
11
+ - lora
12
+ - template:sd-lora
13
+ - lycoris
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 scene from My Hero Academia. Izuku Midoriya holding a sign that says ''I LOVE PROMPTS!'', he is standing full body on a beach at sunset. He is wearing a green hero costume with protective padding and a metallic collar. The setting sun casts a dynamic shadow on his face.'
22
+ parameters:
23
+ negative_prompt: 'blurry, cropped, ugly'
24
+ output:
25
+ url: ./assets/image_1_0.png
26
+ - text: 'A scene from My Hero Academia. Izuku Midoriya jumping out of a propeller airplane, sky diving. He looks excited and his hair is blowing in the wind. The sky is clear and blue, there are birds pictured in the distance.'
27
+ parameters:
28
+ negative_prompt: 'blurry, cropped, ugly'
29
+ output:
30
+ url: ./assets/image_2_0.png
31
+ - text: 'A scene from My Hero Academia. Izuku Midoriya spinning a basketball on his finger on a basketball court. He is wearing a lakers jersey with the #12 on it. The basketball hoop and crowd are in the background cheering him. He is smiling.'
32
+ parameters:
33
+ negative_prompt: 'blurry, cropped, ugly'
34
+ output:
35
+ url: ./assets/image_3_0.png
36
+ - text: 'A scene from My Hero Academia. Izuku Midoriya is wearing a suit in an office shaking the hand of a business woman. The woman has purple hair and is wearing professional attire. There is a Google logo in the background. It is during daytime, and the overall sentiment is one of accomplishment.'
37
+ parameters:
38
+ negative_prompt: 'blurry, cropped, ugly'
39
+ output:
40
+ url: ./assets/image_4_0.png
41
+ - text: 'A scene from My Hero Academia. Izuku Midoriya is fighting a large brown grizzly bear, deep in a forest. The bear is tall and standing on two legs, roaring. The bear is also wearing a crown because it is the king of all bears. Around them are tall trees and other animals watching.'
42
+ parameters:
43
+ negative_prompt: 'blurry, cropped, ugly'
44
+ output:
45
+ url: ./assets/image_5_0.png
46
+ ---
47
+
48
+ # deku-simpletuner-lora-1
49
+
50
+ This is a LyCORIS adapter derived from [black-forest-labs/FLUX.1-dev](https://huggingface.co/black-forest-labs/FLUX.1-dev).
51
+
52
+
53
+ No validation prompt was used during training.
54
+
55
+
56
+
57
+
58
+ None
59
+
60
+
61
+ ## Validation settings
62
+ - CFG: `3.5`
63
+ - CFG Rescale: `0.0`
64
+ - Steps: `20`
65
+ - Sampler: `None`
66
+ - Seed: `42`
67
+ - Resolution: `1024x1024`
68
+
69
+ Note: The validation settings are not necessarily the same as the [training settings](#training-settings).
70
+
71
+ You can find some example images in the following gallery:
72
+
73
+
74
+ <Gallery />
75
+
76
+ The text encoder **was not** trained.
77
+ You may reuse the base model text encoder for inference.
78
+
79
+
80
+ ## Training settings
81
+
82
+ - Training epochs: 11
83
+ - Training steps: 200
84
+ - Learning rate: 0.0003
85
+ - Effective batch size: 48
86
+ - Micro-batch size: 48
87
+ - Gradient accumulation steps: 1
88
+ - Number of GPUs: 1
89
+ - Prediction type: flow-matching
90
+ - Rescaled betas zero SNR: False
91
+ - Optimizer: adamw_bf16
92
+ - Precision: Pure BF16
93
+ - Quantised: Yes: int8-quanto
94
+ - Xformers: Not used
95
+ - LyCORIS Config:
96
+ ```json
97
+ {
98
+ "algo": "lokr",
99
+ "multiplier": 1.0,
100
+ "linear_dim": 10000,
101
+ "linear_alpha": 1,
102
+ "factor": 12,
103
+ "apply_preset": {
104
+ "target_module": [
105
+ "Attention",
106
+ "FeedForward"
107
+ ],
108
+ "module_algo_map": {
109
+ "Attention": {
110
+ "factor": 12
111
+ },
112
+ "FeedForward": {
113
+ "factor": 6
114
+ }
115
+ }
116
+ }
117
+ }
118
+ ```
119
+
120
+ ## Datasets
121
+
122
+ ### deku-512
123
+ - Repeats: 2
124
+ - Total number of images: 276
125
+ - Total number of aspect buckets: 1
126
+ - Resolution: 0.262144 megapixels
127
+ - Cropped: False
128
+ - Crop style: None
129
+ - Crop aspect: None
130
+
131
+
132
+ ## Inference
133
+
134
+
135
+ ```python
136
+ import torch
137
+ from diffusers import DiffusionPipeline
138
+ from lycoris import create_lycoris_from_weights
139
+
140
+ model_id = 'black-forest-labs/FLUX.1-dev'
141
+ adapter_id = 'pytorch_lora_weights.safetensors' # you will have to download this manually
142
+ lora_scale = 1.0
143
+ wrapper, _ = create_lycoris_from_weights(lora_scale, adapter_id, pipeline.transformer)
144
+ wrapper.merge_to()
145
+
146
+ prompt = "An astronaut is riding a horse through the jungles of Thailand."
147
+
148
+ pipeline.to('cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu')
149
+ image = pipeline(
150
+ prompt=prompt,
151
+ num_inference_steps=20,
152
+ generator=torch.Generator(device='cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu').manual_seed(1641421826),
153
+ width=1024,
154
+ height=1024,
155
+ guidance_scale=3.5,
156
+ ).images[0]
157
+ image.save("output.png", format="PNG")
158
+ ```
159
+