PseudoTerminal X commited on
Commit
110f78a
1 Parent(s): cf16b32

Model card auto-generated by SimpleTuner

Browse files
Files changed (1) hide show
  1. README.md +145 -0
README.md ADDED
@@ -0,0 +1,145 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ 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: 'anime julia portrait'
20
+ parameters:
21
+ negative_prompt: 'blurry, cropped, ugly'
22
+ output:
23
+ url: ./assets/image_1_0.png
24
+ - text: 'a high quality photo of sous-chef Julia'
25
+ parameters:
26
+ negative_prompt: 'blurry, cropped, ugly'
27
+ output:
28
+ url: ./assets/image_2_0.png
29
+ - text: 'julia'
30
+ parameters:
31
+ negative_prompt: 'blurry, cropped, ugly'
32
+ output:
33
+ url: ./assets/image_3_0.png
34
+ - text: 'a cinematic photo of julia'
35
+ parameters:
36
+ negative_prompt: 'blurry, cropped, ugly'
37
+ output:
38
+ url: ./assets/image_4_0.png
39
+ - text: 'a woman'
40
+ parameters:
41
+ negative_prompt: 'blurry, cropped, ugly'
42
+ output:
43
+ url: ./assets/image_5_0.png
44
+ - text: 'a man'
45
+ parameters:
46
+ negative_prompt: 'blurry, cropped, ugly'
47
+ output:
48
+ url: ./assets/image_6_0.png
49
+ - text: 'julie, in photograph style'
50
+ parameters:
51
+ negative_prompt: 'blurry, cropped, ugly'
52
+ output:
53
+ url: ./assets/image_7_0.png
54
+ ---
55
+
56
+ # flux-dreambooth-lora
57
+
58
+ This is a LoRA derived from [black-forest-labs/FLUX.1-dev](https://huggingface.co/black-forest-labs/FLUX.1-dev).
59
+
60
+
61
+
62
+ The main validation prompt used during training was:
63
+
64
+ ```
65
+ julie, in photograph style
66
+ ```
67
+
68
+ ## Validation settings
69
+ - CFG: `3.0`
70
+ - CFG Rescale: `0.0`
71
+ - Steps: `28`
72
+ - Sampler: `None`
73
+ - Seed: `420420420`
74
+ - Resolution: `1024x1024`
75
+
76
+ Note: The validation settings are not necessarily the same as the [training settings](#training-settings).
77
+
78
+ You can find some example images in the following gallery:
79
+
80
+
81
+ <Gallery />
82
+
83
+ The text encoder **was not** trained.
84
+ You may reuse the base model text encoder for inference.
85
+
86
+
87
+ ## Training settings
88
+
89
+ - Training epochs: 9
90
+ - Training steps: 100
91
+ - Learning rate: 1.0
92
+ - Effective batch size: 1
93
+ - Micro-batch size: 1
94
+ - Gradient accumulation steps: 1
95
+ - Number of GPUs: 1
96
+ - Prediction type: epsilon
97
+ - Rescaled betas zero SNR: False
98
+ - Optimizer: Prodigy
99
+ - Precision: no
100
+ - Xformers: Not used
101
+ - LoRA Rank: 16
102
+ - LoRA Alpha: 16.0
103
+ - LoRA Dropout: 0.1
104
+ - LoRA initialisation style: loftq
105
+
106
+
107
+ ## Datasets
108
+
109
+ ### julia
110
+ - Repeats: 0
111
+ - Total number of images: 11
112
+ - Total number of aspect buckets: 1
113
+ - Resolution: 1.0 megapixels
114
+ - Cropped: True
115
+ - Crop style: random
116
+ - Crop aspect: square
117
+
118
+
119
+ ## Inference
120
+
121
+
122
+ ```python
123
+ import torch
124
+ from diffusers import DiffusionPipeline
125
+
126
+ model_id = 'black-forest-labs/FLUX.1-dev'
127
+ adapter_id = 'flux-dreambooth-lora'
128
+ pipeline = DiffusionPipeline.from_pretrained(model_id)
129
+ pipeline.load_lora_weights(adapter_id)
130
+
131
+ prompt = "julie, in photograph style"
132
+
133
+
134
+ pipeline.to('cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu')
135
+ image = pipeline(
136
+ prompt=prompt,
137
+ num_inference_steps=28,
138
+ generator=torch.Generator(device='cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu').manual_seed(1641421826),
139
+ width=1024,
140
+ height=1024,
141
+ guidance_scale=3.0,
142
+ ).images[0]
143
+ image.save("output.png", format="PNG")
144
+ ```
145
+