jimmycarter commited on
Commit
c38b005
·
verified ·
1 Parent(s): 38fafa8

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
+ # flux-test-training
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 pokemon that looks like a happy pizza is eating a popsicle
28
+ ```
29
+
30
+ ## Validation settings
31
+ - CFG: `3.5`
32
+ - CFG Rescale: `0.0`
33
+ - Steps: `15`
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: 0
52
+ - Training steps: 3
53
+ - Learning rate: 0.0001
54
+ - Effective batch size: 4
55
+ - Micro-batch size: 4
56
+ - Gradient accumulation steps: 1
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: No
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
+ ### default_dataset
73
+ - Repeats: 0
74
+ - Total number of images: 552
75
+ - Total number of aspect buckets: 1
76
+ - Resolution: 1.048576 megapixels
77
+ - Cropped: True
78
+ - Crop style: center
79
+ - Crop aspect: square
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 = 'jimmycarter/flux-test-training'
91
+ pipeline = DiffusionPipeline.from_pretrained(model_id)
92
+ pipeline.load_lora_weights(adapter_id)
93
+
94
+ prompt = "a pokemon that looks like a happy pizza is eating a popsicle"
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=15,
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
+