datnt114 commited on
Commit
1a48804
1 Parent(s): a695dbf

Model card auto-generated by SimpleTuner

Browse files
Files changed (1) hide show
  1. README.md +162 -0
README.md ADDED
@@ -0,0 +1,162 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: 'This idyllic alpine scene captures a serene lake nestled between lush green hills and towering mountains capped with snow. A wooden chalet, located on a gently sloping hill, overlooks the vibrant turquoise waters of the lake, its spacious balcony offering sweeping views of the breathtaking landscape. The surrounding meadows are dotted with colorful wildflowers, and tall trees line the hillsides, blending harmoniously with the forested mountains in the distance. Beyond the lake, a small village can be seen, framed by majestic peaks that rise sharply against a bright blue sky adorned with fluffy white clouds. The crystal-clear water reflects the sky and the surrounding greenery, enhancing the tranquility of the scene. Every detail, from the texture of the grass to the snow on the distant mountains, is rendered with vibrant clarity, evoking a sense of peace and natural beauty in this picturesque mountain retreat.'
22
+ parameters:
23
+ negative_prompt: 'blurry, cropped, ugly'
24
+ output:
25
+ url: ./assets/image_1_0.png
26
+ - text: 'This picturesque landscape captures a breathtaking view of an alpine valley where a tranquil lake nestles among lush green hills. Snow-capped mountain peaks tower in the background, creating a dramatic contrast with the vivid greenery and deep blue waters. A winding path, flanked by wildflowers and fresh grass, leads the eye through the scene, inviting exploration into this pristine environment. The foreground is dotted with yellow and purple wildflowers, adding splashes of color that enhance the natural beauty of the area. Patches of trees scattered across the hillsides and along the lake''s edge provide depth and texture to the landscape. Above, fluffy white clouds float in a clear blue sky, casting soft shadows on the mountains and reflecting the serene atmosphere of this peaceful retreat. The entire scene is bathed in bright, natural light, highlighting the rich details and vibrant colors of this idyllic mountain setting.'
27
+ parameters:
28
+ negative_prompt: 'blurry, cropped, ugly'
29
+ output:
30
+ url: ./assets/image_2_0.png
31
+ - text: 'A tranquil night scene unfolds over a still lake, where a large, golden full moon hangs low in the sky, its soft light mirrored perfectly in the water below. Towering evergreen trees line both sides of the lake, their dark silhouettes blending into the night, while dense bushes and tall grasses along the shoreline create a lush and natural frame. The sky is dotted with a scattering of stars and wispy clouds, gently illuminated by the moonlight, casting soft reflections on the lake''s glassy surface. The atmosphere is serene and mystical, with the moon''s warm glow contrasting against the deep greens of the forest and the cool blues of the night sky. Every element, from the texture of the trees to the gentle ripples in the water, is rendered in vivid detail, enhancing the peaceful, otherworldly mood of this enchanted forest scene.'
32
+ parameters:
33
+ negative_prompt: 'blurry, cropped, ugly'
34
+ output:
35
+ url: ./assets/image_3_0.png
36
+ - text: 'This idyllic mountain landscape captures a breathtaking alpine scene bathed in the golden glow of the setting sun. A cozy wooden cabin sits nestled on a verdant hillside, with a winding path leading from the foreground to the house. The path is flanked by vibrant pink flowers in full bloom, adding color and warmth to the lush green fields. In the background, towering snow-capped mountains rise majestically, their rugged peaks partially veiled by wisps of clouds. A serene pond near the cabin reflects the sunlight and clouds, further enhancing the tranquil atmosphere. The sunlight beams through the valley, casting long shadows and illuminating the landscape with a peaceful, harmonious glow. The entire scene feels like a perfect retreat into nature''s beauty, filled with vivid colors and natural serenity.'
37
+ parameters:
38
+ negative_prompt: 'blurry, cropped, ugly'
39
+ output:
40
+ url: ./assets/image_4_0.png
41
+ - text: 'This idyllic alpine scene captures a serene lake nestled between lush green hills and towering mountains capped with snow. A wooden chalet, located on a gently sloping hill, overlooks the vibrant turquoise waters of the lake, its spacious balcony offering sweeping views of the breathtaking landscape. The surrounding meadows are dotted with colorful wildflowers, and tall trees line the hillsides, blending harmoniously with the forested mountains in the distance. Beyond the lake, a small village can be seen, framed by majestic peaks that rise sharply against a bright blue sky adorned with fluffy white clouds. The crystal-clear water reflects the sky and the surrounding greenery, enhancing the tranquility of the scene. Every detail, from the texture of the grass to the snow on the distant mountains, is rendered with vibrant clarity, evoking a sense of peace and natural beauty in this picturesque mountain retreat.'
42
+ parameters:
43
+ negative_prompt: 'blurry, cropped, ugly'
44
+ output:
45
+ url: ./assets/image_5_0.png
46
+ ---
47
+
48
+ # train-realistic-16-09
49
+
50
+ This is a standard PEFT LoRA derived from [black-forest-labs/FLUX.1-dev](https://huggingface.co/black-forest-labs/FLUX.1-dev).
51
+
52
+
53
+ The main validation prompt used during training was:
54
+
55
+
56
+
57
+ ```
58
+ This idyllic alpine scene captures a serene lake nestled between lush green hills and towering mountains capped with snow. A wooden chalet, located on a gently sloping hill, overlooks the vibrant turquoise waters of the lake, its spacious balcony offering sweeping views of the breathtaking landscape. The surrounding meadows are dotted with colorful wildflowers, and tall trees line the hillsides, blending harmoniously with the forested mountains in the distance. Beyond the lake, a small village can be seen, framed by majestic peaks that rise sharply against a bright blue sky adorned with fluffy white clouds. The crystal-clear water reflects the sky and the surrounding greenery, enhancing the tranquility of the scene. Every detail, from the texture of the grass to the snow on the distant mountains, is rendered with vibrant clarity, evoking a sense of peace and natural beauty in this picturesque mountain retreat.
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: `1344x768`
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: 0
83
+ - Training steps: 1000
84
+ - Learning rate: 8e-05
85
+ - Effective batch size: 1
86
+ - Micro-batch size: 1
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
+ - LoRA Rank: 64
96
+ - LoRA Alpha: None
97
+ - LoRA Dropout: 0.1
98
+ - LoRA initialisation style: default
99
+
100
+
101
+ ## Datasets
102
+
103
+ ### realistic-16-09-512
104
+ - Repeats: 10
105
+ - Total number of images: 23
106
+ - Total number of aspect buckets: 1
107
+ - Resolution: 0.262144 megapixels
108
+ - Cropped: False
109
+ - Crop style: None
110
+ - Crop aspect: None
111
+ ### realistic-16-09-1024
112
+ - Repeats: 10
113
+ - Total number of images: 23
114
+ - Total number of aspect buckets: 1
115
+ - Resolution: 1.048576 megapixels
116
+ - Cropped: False
117
+ - Crop style: None
118
+ - Crop aspect: None
119
+ ### realistic-16-09-512-crop
120
+ - Repeats: 10
121
+ - Total number of images: 23
122
+ - Total number of aspect buckets: 1
123
+ - Resolution: 0.262144 megapixels
124
+ - Cropped: True
125
+ - Crop style: random
126
+ - Crop aspect: square
127
+ ### realistic-16-09-1024-crop
128
+ - Repeats: 10
129
+ - Total number of images: 23
130
+ - Total number of aspect buckets: 1
131
+ - Resolution: 1.048576 megapixels
132
+ - Cropped: True
133
+ - Crop style: random
134
+ - Crop aspect: square
135
+
136
+
137
+ ## Inference
138
+
139
+
140
+ ```python
141
+ import torch
142
+ from diffusers import DiffusionPipeline
143
+
144
+ model_id = 'black-forest-labs/FLUX.1-dev'
145
+ adapter_id = 'datnt114/train-realistic-16-09'
146
+ pipeline = DiffusionPipeline.from_pretrained(model_id)
147
+ pipeline.load_lora_weights(adapter_id)
148
+
149
+ prompt = "This idyllic alpine scene captures a serene lake nestled between lush green hills and towering mountains capped with snow. A wooden chalet, located on a gently sloping hill, overlooks the vibrant turquoise waters of the lake, its spacious balcony offering sweeping views of the breathtaking landscape. The surrounding meadows are dotted with colorful wildflowers, and tall trees line the hillsides, blending harmoniously with the forested mountains in the distance. Beyond the lake, a small village can be seen, framed by majestic peaks that rise sharply against a bright blue sky adorned with fluffy white clouds. The crystal-clear water reflects the sky and the surrounding greenery, enhancing the tranquility of the scene. Every detail, from the texture of the grass to the snow on the distant mountains, is rendered with vibrant clarity, evoking a sense of peace and natural beauty in this picturesque mountain retreat."
150
+
151
+ pipeline.to('cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu')
152
+ image = pipeline(
153
+ prompt=prompt,
154
+ num_inference_steps=20,
155
+ generator=torch.Generator(device='cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu').manual_seed(1641421826),
156
+ width=1344,
157
+ height=768,
158
+ guidance_scale=3.5,
159
+ ).images[0]
160
+ image.save("output.png", format="PNG")
161
+ ```
162
+