zaddyzaddy commited on
Commit
5c043cd
·
verified ·
1 Parent(s): a6837d6

Model card auto-generated by SimpleTuner

Browse files
Files changed (1) hide show
  1. README.md +106 -0
README.md ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ - lora
11
+ - template:sd-lora
12
+ inference: true
13
+
14
+ ---
15
+
16
+ # simpletuner-lora
17
+
18
+ This is a standard PEFT LoRA derived from [black-forest-labs/FLUX.1-dev](https://huggingface.co/black-forest-labs/FLUX.1-dev).
19
+
20
+
21
+ The main validation prompt used during training was:
22
+
23
+
24
+
25
+ ```
26
+ Enhance the image to feature the individual in a well-lit interior setting, utilizing soft, diffused lighting that highlights the texture and elegance of the traditional brown agbada. Position the individual with an upright posture, ensuring the red cap is prominently displayed as a focal point. Transform the background to showcase a vivid, picturesque snowy landscape visible through a large, clean window, ensuring the snow is pristine and the scene is well-balanced to convey a sense of serenity and warmth inside. Maintain the overall composition that combines the richness of traditional attire with the tranquil beauty of the winter scenery.
27
+ ```
28
+
29
+ ## Validation settings
30
+ - CFG: `3.0`
31
+ - CFG Rescale: `0.0`
32
+ - Steps: `20`
33
+ - Sampler: `None`
34
+ - Seed: `42`
35
+ - Resolution: `1024x1024`
36
+
37
+ Note: The validation settings are not necessarily the same as the [training settings](#training-settings).
38
+
39
+
40
+
41
+
42
+ <Gallery />
43
+
44
+ The text encoder **was not** trained.
45
+ You may reuse the base model text encoder for inference.
46
+
47
+
48
+ ## Training settings
49
+
50
+ - Training epochs: 1999
51
+ - Training steps: 0
52
+ - Learning rate: 0.0001
53
+ - Effective batch size: 4
54
+ - Micro-batch size: 1
55
+ - Gradient accumulation steps: 1
56
+ - Number of GPUs: 4
57
+ - Prediction type: flow-matching
58
+ - Rescaled betas zero SNR: False
59
+ - Optimizer: adamw_bf16
60
+ - Precision: bf16
61
+ - Quantised: No
62
+ - Xformers: Not used
63
+ - LoRA Rank: 16
64
+ - LoRA Alpha: None
65
+ - LoRA Dropout: 0.1
66
+ - LoRA initialisation style: default
67
+
68
+
69
+ ## Datasets
70
+
71
+ ### namo
72
+ - Repeats: 0
73
+ - Total number of images: ~8
74
+ - Total number of aspect buckets: 1
75
+ - Resolution: 0.262144 megapixels
76
+ - Cropped: True
77
+ - Crop style: center
78
+ - Crop aspect: square
79
+
80
+
81
+ ## Inference
82
+
83
+
84
+ ```python
85
+ import torch
86
+ from diffusers import DiffusionPipeline
87
+
88
+ model_id = 'black-forest-labs/FLUX.1-dev'
89
+ adapter_id = 'zaddyzaddy/simpletuner-lora'
90
+ pipeline = DiffusionPipeline.from_pretrained(model_id)
91
+ pipeline.load_lora_weights(adapter_id)
92
+
93
+ prompt = "Enhance the image to feature the individual in a well-lit interior setting, utilizing soft, diffused lighting that highlights the texture and elegance of the traditional brown agbada. Position the individual with an upright posture, ensuring the red cap is prominently displayed as a focal point. Transform the background to showcase a vivid, picturesque snowy landscape visible through a large, clean window, ensuring the snow is pristine and the scene is well-balanced to convey a sense of serenity and warmth inside. Maintain the overall composition that combines the richness of traditional attire with the tranquil beauty of the winter scenery."
94
+
95
+ pipeline.to('cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu')
96
+ image = pipeline(
97
+ prompt=prompt,
98
+ num_inference_steps=20,
99
+ generator=torch.Generator(device='cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu').manual_seed(1641421826),
100
+ width=1024,
101
+ height=1024,
102
+ guidance_scale=3.0,
103
+ ).images[0]
104
+ image.save("output.png", format="PNG")
105
+ ```
106
+