royi1 commited on
Commit
dbdd18c
1 Parent(s): 7eda98e

Model card auto-generated by SimpleTuner

Browse files
Files changed (1) hide show
  1. README.md +126 -0
README.md ADDED
@@ -0,0 +1,126 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ widget:
14
+ - text: 'unconditional (blank prompt)'
15
+ parameters:
16
+ negative_prompt: 'blurry, cropped, ugly'
17
+ output:
18
+ url: ./assets/image_0_0.png
19
+ - text: 'unconditional (blank prompt)'
20
+ parameters:
21
+ negative_prompt: 'blurry, cropped, ugly'
22
+ output:
23
+ url: ./assets/image_1_1.png
24
+ - text: 'a photo of ohwx car parking on the moon'
25
+ parameters:
26
+ negative_prompt: 'blurry, cropped, ugly'
27
+ output:
28
+ url: ./assets/image_2_0.png
29
+ - text: 'a photo of ohwx car parking on the moon'
30
+ parameters:
31
+ negative_prompt: 'blurry, cropped, ugly'
32
+ output:
33
+ url: ./assets/image_3_1.png
34
+ ---
35
+
36
+ # ohwx_mo
37
+
38
+ This is a standard PEFT LoRA derived from [black-forest-labs/FLUX.1-dev](https://huggingface.co/black-forest-labs/FLUX.1-dev).
39
+
40
+
41
+ The main validation prompt used during training was:
42
+
43
+
44
+
45
+ ```
46
+ a photo of ohwx car parking on the moon
47
+ ```
48
+
49
+ ## Validation settings
50
+ - CFG: `3.0`
51
+ - CFG Rescale: `0.0`
52
+ - Steps: `25`
53
+ - Sampler: `None`
54
+ - Seed: `42`
55
+ - Resolutions: `1024x1024,832x1216`
56
+
57
+ Note: The validation settings are not necessarily the same as the [training settings](#training-settings).
58
+
59
+ You can find some example images in the following gallery:
60
+
61
+
62
+ <Gallery />
63
+
64
+ The text encoder **was not** trained.
65
+ You may reuse the base model text encoder for inference.
66
+
67
+
68
+ ## Training settings
69
+
70
+ - Training epochs: 120
71
+ - Training steps: 3000
72
+ - Learning rate: 0.0001
73
+ - Effective batch size: 4
74
+ - Micro-batch size: 2
75
+ - Gradient accumulation steps: 2
76
+ - Number of GPUs: 1
77
+ - Prediction type: flow-matching
78
+ - Rescaled betas zero SNR: False
79
+ - Optimizer: adamw_bf16
80
+ - Precision: bf16
81
+ - Quantised: No
82
+ - Xformers: Not used
83
+ - LoRA Rank: 64
84
+ - LoRA Alpha: None
85
+ - LoRA Dropout: 0.1
86
+ - LoRA initialisation style: default
87
+
88
+
89
+ ## Datasets
90
+
91
+ ### ohwx
92
+ - Repeats: 0
93
+ - Total number of images: 51
94
+ - Total number of aspect buckets: 1
95
+ - Resolution: 1.048576 megapixels
96
+ - Cropped: True
97
+ - Crop style: center
98
+ - Crop aspect: square
99
+
100
+
101
+ ## Inference
102
+
103
+
104
+ ```python
105
+ import torch
106
+ from diffusers import DiffusionPipeline
107
+
108
+ model_id = 'black-forest-labs/FLUX.1-dev'
109
+ adapter_id = 'royi1/ohwx_mo'
110
+ pipeline = DiffusionPipeline.from_pretrained(model_id)
111
+ pipeline.load_lora_weights(adapter_id)
112
+
113
+ prompt = "a photo of ohwx car parking on the moon"
114
+
115
+ pipeline.to('cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu')
116
+ image = pipeline(
117
+ prompt=prompt,
118
+ num_inference_steps=25,
119
+ generator=torch.Generator(device='cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu').manual_seed(1641421826),
120
+ width=1024,
121
+ height=1024,
122
+ guidance_scale=3.0,
123
+ ).images[0]
124
+ image.save("output.png", format="PNG")
125
+ ```
126
+