Unmapped2895 commited on
Commit
5c6799d
·
verified ·
1 Parent(s): 0548513

Model card auto-generated by SimpleTuner

Browse files
Files changed (1) hide show
  1. README.md +165 -0
README.md ADDED
@@ -0,0 +1,165 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ - image-to-image
9
+ - diffusers
10
+ - simpletuner
11
+ - safe-for-work
12
+ - lora
13
+ - template:sd-lora
14
+ - standard
15
+ pipeline_tag: text-to-image
16
+ inference: true
17
+ widget:
18
+ - text: 'unconditional (blank prompt)'
19
+ parameters:
20
+ negative_prompt: ''''
21
+ output:
22
+ url: ./assets/image_0_0.png
23
+ - text: 'Photography of a beautiful 20-year-old woman in a yoga studio looking at the camera, wearing a full white body-hugging top with no bra and tight white yoga pants. She has long, dark brown hair with hints of red and large breasts that stretch her top to its limit.'
24
+ parameters:
25
+ negative_prompt: ''''
26
+ output:
27
+ url: ./assets/image_1_0.png
28
+ - text: 'A photorealistic full-body top-down angle Instagram influencer-style photo featuring a captivating 28-year-old woman with dark brown hair with hints of red and deep brown eyes. She wears an imaginatively stylized corset with a garter belt and delicate stockings, exuding a magical, alluring, and sultry charm. Her toned physique is emphasized with a narrow waist, long slim legs, and a thigh gap. She is lying in soft grass against a hyper-detailed and beautifully magical fantasy background. The overall scene is vibrant and dynamic, showcasing her perfect facial features and radiant eyes in an ultra-maximalist style.'
29
+ parameters:
30
+ negative_prompt: ''''
31
+ output:
32
+ url: ./assets/image_2_0.png
33
+ - text: 'A young woman stands on a rain-soaked street in a neon-lit cyberpunk city, her face fierce and determined. The woman is dressed in futuristic armor, glowing with electric lines as she stares down a dark alley. Her eyes reflect the neon glow, adding intensity to her gaze.'
34
+ parameters:
35
+ negative_prompt: ''''
36
+ output:
37
+ url: ./assets/image_3_0.png
38
+ - text: 'A heartbreakingly beautiful tall 44-year-old woman with long dark brown hair with hints of red styled over one eye. She has heavy makeup with dramatic eyeshadow, winged mascara, and glossy blood-red lips. Her piercing brown eyes smolder with confidence. She has a fit, toned, and very tanned body with 36D natural breasts. She is wearing a school uniform with a black pleated skirt and a white shirt tied in a knot to reveal her midriff. She has black stockings with lace tops and black high-heeled school shoes. She gives the viewer a flirty smile over her shoulder, lifting her skirt to show her booty from behind, with one hand on her peachy ass, revealing her tiny navy blue panties. She is in a highly detailed classroom with the backboard, school desks, and chairs visible. The view is from behind and below.'
39
+ parameters:
40
+ negative_prompt: ''''
41
+ output:
42
+ url: ./assets/image_4_0.png
43
+ - text: 'Realistic wide shot photo of woman posing in a luxurious satin lingerie set, featuring a plunging bra, delicate thong and a classic garter belt with black stockings. The satin lingerie shimmers softly in the light, and the cut emphasizes both sophistication and a hint of allure. The lingerie is detailed with fine lace edges, highlighting her alluring figure. She elegantly styled hair as if getting ready for a formal event. The photo has a cinematic quality with rays of light and dramatic play of shadow and light'
44
+ parameters:
45
+ negative_prompt: ''''
46
+ output:
47
+ url: ./assets/image_5_0.png
48
+ ---
49
+
50
+ # reddy-v2
51
+
52
+ This is a standard PEFT LoRA derived from [black-forest-labs/FLUX.1-dev](https://huggingface.co/black-forest-labs/FLUX.1-dev).
53
+
54
+
55
+ The main validation prompt used during training was:
56
+ ```
57
+ Realistic wide shot photo of woman posing in a luxurious satin lingerie set, featuring a plunging bra, delicate thong and a classic garter belt with black stockings. The satin lingerie shimmers softly in the light, and the cut emphasizes both sophistication and a hint of allure. The lingerie is detailed with fine lace edges, highlighting her alluring figure. She elegantly styled hair as if getting ready for a formal event. The photo has a cinematic quality with rays of light and dramatic play of shadow and light
58
+ ```
59
+
60
+
61
+ ## Validation settings
62
+ - CFG: `2.0`
63
+ - CFG Rescale: `0.0`
64
+ - Steps: `20`
65
+ - Sampler: `FlowMatchEulerDiscreteScheduler`
66
+ - Seed: `42`
67
+ - Resolution: `832x1216`
68
+ - Skip-layer guidance:
69
+
70
+ Note: The validation settings are not necessarily the same as the [training settings](#training-settings).
71
+
72
+ You can find some example images in the following gallery:
73
+
74
+
75
+ <Gallery />
76
+
77
+ The text encoder **was not** trained.
78
+ You may reuse the base model text encoder for inference.
79
+
80
+
81
+ ## Training settings
82
+
83
+ - Training epochs: 0
84
+ - Training steps: 100
85
+ - Learning rate: 0.0001
86
+ - Learning rate schedule: constant
87
+ - Warmup steps: 500
88
+ - Max grad value: 2.0
89
+ - Effective batch size: 1
90
+ - Micro-batch size: 1
91
+ - Gradient accumulation steps: 1
92
+ - Number of GPUs: 1
93
+ - Gradient checkpointing: True
94
+ - Prediction type: flow-matching (extra parameters=['shift=3', 'flux_guidance_mode=constant', 'flux_guidance_value=1.0', 'flow_matching_loss=compatible', 'flux_lora_target=all'])
95
+ - Optimizer: adamw_bf16
96
+ - Trainable parameter precision: Pure BF16
97
+ - Base model precision: `int8-quanto`
98
+ - Caption dropout probability: 0.0%
99
+
100
+
101
+ - LoRA Rank: 32
102
+ - LoRA Alpha: None
103
+ - LoRA Dropout: 0.1
104
+ - LoRA initialisation style: default
105
+
106
+
107
+ ## Datasets
108
+
109
+ ### reddy-v2-512
110
+ - Repeats: 10
111
+ - Total number of images: 13
112
+ - Total number of aspect buckets: 1
113
+ - Resolution: 0.262144 megapixels
114
+ - Cropped: False
115
+ - Crop style: None
116
+ - Crop aspect: None
117
+ - Used for regularisation data: No
118
+ ### reddy-v2-1024
119
+ - Repeats: 10
120
+ - Total number of images: 5
121
+ - Total number of aspect buckets: 1
122
+ - Resolution: 1.048576 megapixels
123
+ - Cropped: False
124
+ - Crop style: None
125
+ - Crop aspect: None
126
+ - Used for regularisation data: No
127
+
128
+
129
+ ## Inference
130
+
131
+
132
+ ```python
133
+ import torch
134
+ from diffusers import DiffusionPipeline
135
+
136
+ model_id = 'black-forest-labs/FLUX.1-dev'
137
+ adapter_id = 'Unmapped2895/reddy-v2'
138
+ pipeline = DiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.bfloat16) # loading directly in bf16
139
+ pipeline.load_lora_weights(adapter_id)
140
+
141
+ prompt = "Realistic wide shot photo of woman posing in a luxurious satin lingerie set, featuring a plunging bra, delicate thong and a classic garter belt with black stockings. The satin lingerie shimmers softly in the light, and the cut emphasizes both sophistication and a hint of allure. The lingerie is detailed with fine lace edges, highlighting her alluring figure. She elegantly styled hair as if getting ready for a formal event. The photo has a cinematic quality with rays of light and dramatic play of shadow and light"
142
+
143
+
144
+ ## Optional: quantise the model to save on vram.
145
+ ## Note: The model was quantised during training, and so it is recommended to do the same during inference time.
146
+ from optimum.quanto import quantize, freeze, qint8
147
+ quantize(pipeline.transformer, weights=qint8)
148
+ freeze(pipeline.transformer)
149
+
150
+ pipeline.to('cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu') # the pipeline is already in its target precision level
151
+ model_output = pipeline(
152
+ prompt=prompt,
153
+ num_inference_steps=20,
154
+ generator=torch.Generator(device='cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu').manual_seed(42),
155
+ width=832,
156
+ height=1216,
157
+ guidance_scale=2.0,
158
+ ).images[0]
159
+
160
+ model_output.save("output.png", format="PNG")
161
+
162
+ ```
163
+
164
+
165
+