AA12312424 commited on
Commit
011f194
1 Parent(s): bf9e49c

Model card auto-generated by SimpleTuner

Browse files
Files changed (1) hide show
  1. README.md +108 -0
README.md ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: creativeml-openrail-m
3
+ base_model: "black-forest-labs/FLUX.1-dev"
4
+ tags:
5
+ - stable-diffusion
6
+ - stable-diffusion-diffusers
7
+ - text-to-image
8
+ - diffusers
9
+ - simpletuner
10
+ - lora
11
+ - template:sd-lora
12
+ inference: true
13
+
14
+ ---
15
+
16
+ # ohwx-man
17
+
18
+ This is a LoRA derived from [black-forest-labs/FLUX.1-dev](https://huggingface.co/black-forest-labs/FLUX.1-dev).
19
+
20
+
21
+
22
+ The main validation prompt used during training was:
23
+
24
+
25
+
26
+ ```
27
+ a photograph of ohwx man
28
+ ```
29
+
30
+ ## Validation settings
31
+ - CFG: `3.5`
32
+ - CFG Rescale: `0.0`
33
+ - Steps: `28`
34
+ - Sampler: `None`
35
+ - Seed: `42`
36
+ - Resolution: `1024`
37
+
38
+ Note: The validation settings are not necessarily the same as the [training settings](#training-settings).
39
+
40
+
41
+
42
+
43
+ <Gallery />
44
+
45
+ The text encoder **was not** trained.
46
+ You may reuse the base model text encoder for inference.
47
+
48
+
49
+ ## Training settings
50
+
51
+ - Training epochs: 499
52
+ - Training steps: 500
53
+ - Learning rate: 0.0001
54
+ - Effective batch size: 4
55
+ - Micro-batch size: 1
56
+ - Gradient accumulation steps: 4
57
+ - Number of GPUs: 1
58
+ - Prediction type: flow-matching
59
+ - Rescaled betas zero SNR: False
60
+ - Optimizer: AdamW, stochastic bf16
61
+ - Precision: Pure BF16
62
+ - Quantised: Yes: int8-quanto
63
+ - Xformers: Not used
64
+ - LoRA Rank: 16
65
+ - LoRA Alpha: None
66
+ - LoRA Dropout: 0.1
67
+ - LoRA initialisation style: default
68
+
69
+
70
+ ## Datasets
71
+
72
+ ### ohwx-man-v2
73
+ - Repeats: 0
74
+ - Total number of images: 4
75
+ - Total number of aspect buckets: 1
76
+ - Resolution: 512 px
77
+ - Cropped: False
78
+ - Crop style: None
79
+ - Crop aspect: None
80
+
81
+
82
+ ## Inference
83
+
84
+
85
+ ```python
86
+ import torch
87
+ from diffusers import DiffusionPipeline
88
+
89
+ model_id = 'black-forest-labs/FLUX.1-dev'
90
+ adapter_id = 'AA12312424/ohwx-man'
91
+ pipeline = DiffusionPipeline.from_pretrained(model_id)
92
+ pipeline.load_lora_weights(adapter_id)
93
+
94
+ prompt = "a photograph of ohwx man"
95
+
96
+
97
+ pipeline.to('cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu')
98
+ image = pipeline(
99
+ prompt=prompt,
100
+ num_inference_steps=28,
101
+ generator=torch.Generator(device='cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu').manual_seed(1641421826),
102
+ width=1024,
103
+ height=1024,
104
+ guidance_scale=3.5,
105
+ ).images[0]
106
+ image.save("output.png", format="PNG")
107
+ ```
108
+