markury commited on
Commit
6f6494c
1 Parent(s): 3776ede

Model card auto-generated by SimpleTuner

Browse files
Files changed (1) hide show
  1. README.md +152 -0
README.md ADDED
@@ -0,0 +1,152 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ - 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 surreal photo of a black cat with iridescent fur glimmering under the soft moonlight'
22
+ parameters:
23
+ negative_prompt: 'blurry, cropped, ugly'
24
+ output:
25
+ url: ./assets/image_1_0.png
26
+ - text: 'ice cubes and citrus fruit slices aesthetic wallpaper'
27
+ parameters:
28
+ negative_prompt: 'blurry, cropped, ugly'
29
+ output:
30
+ url: ./assets/image_2_0.png
31
+ - text: 'A surreal photo of an astronaut holding a white cat in a vibrant dreamscape filled with hibiscus flowers'
32
+ parameters:
33
+ negative_prompt: 'blurry, cropped, ugly'
34
+ output:
35
+ url: ./assets/image_3_0.png
36
+ ---
37
+
38
+ # surrealidescent
39
+
40
+ This is a standard PEFT LoRA derived from [black-forest-labs/FLUX.1-dev](https://huggingface.co/black-forest-labs/FLUX.1-dev).
41
+
42
+
43
+ The main validation prompt used during training was:
44
+
45
+
46
+
47
+ ```
48
+ A surreal photo of an astronaut holding a white cat in a vibrant dreamscape filled with hibiscus flowers
49
+ ```
50
+
51
+ ## Validation settings
52
+ - CFG: `3.0`
53
+ - CFG Rescale: `0.0`
54
+ - Steps: `20`
55
+ - Sampler: `None`
56
+ - Seed: `42`
57
+ - Resolution: `1024x1024`
58
+
59
+ Note: The validation settings are not necessarily the same as the [training settings](#training-settings).
60
+
61
+ You can find some example images in the following gallery:
62
+
63
+
64
+ <Gallery />
65
+
66
+ The text encoder **was not** trained.
67
+ You may reuse the base model text encoder for inference.
68
+
69
+
70
+ ## Training settings
71
+
72
+ - Training epochs: 0
73
+ - Training steps: 100
74
+ - Learning rate: 2e-05
75
+ - Effective batch size: 2
76
+ - Micro-batch size: 2
77
+ - Gradient accumulation steps: 1
78
+ - Number of GPUs: 1
79
+ - Prediction type: flow-matching
80
+ - Rescaled betas zero SNR: False
81
+ - Optimizer: optimi-lion
82
+ - Precision: Pure BF16
83
+ - Quantised: Yes: int8-quanto
84
+ - Xformers: Not used
85
+ - LoRA Rank: 16
86
+ - LoRA Alpha: None
87
+ - LoRA Dropout: 0.1
88
+ - LoRA initialisation style: default
89
+
90
+
91
+ ## Datasets
92
+
93
+ ### surreal-512
94
+ - Repeats: 10
95
+ - Total number of images: 36
96
+ - Total number of aspect buckets: 2
97
+ - Resolution: 0.262144 megapixels
98
+ - Cropped: False
99
+ - Crop style: None
100
+ - Crop aspect: None
101
+ ### surreal-768
102
+ - Repeats: 10
103
+ - Total number of images: 36
104
+ - Total number of aspect buckets: 5
105
+ - Resolution: 0.589824 megapixels
106
+ - Cropped: False
107
+ - Crop style: None
108
+ - Crop aspect: None
109
+ ### surreal-512-crop
110
+ - Repeats: 10
111
+ - Total number of images: 36
112
+ - Total number of aspect buckets: 1
113
+ - Resolution: 0.262144 megapixels
114
+ - Cropped: True
115
+ - Crop style: random
116
+ - Crop aspect: square
117
+ ### surreal-768-crop
118
+ - Repeats: 10
119
+ - Total number of images: 36
120
+ - Total number of aspect buckets: 1
121
+ - Resolution: 0.589824 megapixels
122
+ - Cropped: True
123
+ - Crop style: random
124
+ - Crop aspect: square
125
+
126
+
127
+ ## Inference
128
+
129
+
130
+ ```python
131
+ import torch
132
+ from diffusers import DiffusionPipeline
133
+
134
+ model_id = 'black-forest-labs/FLUX.1-dev'
135
+ adapter_id = 'markury/surrealidescent'
136
+ pipeline = DiffusionPipeline.from_pretrained(model_id)
137
+ pipeline.load_lora_weights(adapter_id)
138
+
139
+ prompt = "A surreal photo of an astronaut holding a white cat in a vibrant dreamscape filled with hibiscus flowers"
140
+
141
+ pipeline.to('cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu')
142
+ image = pipeline(
143
+ prompt=prompt,
144
+ num_inference_steps=20,
145
+ generator=torch.Generator(device='cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu').manual_seed(1641421826),
146
+ width=1024,
147
+ height=1024,
148
+ guidance_scale=3.0,
149
+ ).images[0]
150
+ image.save("output.png", format="PNG")
151
+ ```
152
+