jsterlingvids
commited on
Upload 5 files
Browse files- README.md +118 -3
- optimizer.bin +3 -0
- random_states_0.pkl +3 -0
- scheduler.bin +3 -0
- training_state-smashburger.json +1 -0
README.md
CHANGED
@@ -1,3 +1,118 @@
|
|
1 |
-
---
|
2 |
-
license:
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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: 'A photo-realistic image of a burger on the moon'
|
20 |
+
parameters:
|
21 |
+
negative_prompt: 'blurry, cropped, ugly'
|
22 |
+
output:
|
23 |
+
url: ./assets/image_1_0.png
|
24 |
+
---
|
25 |
+
|
26 |
+
# simpletuner-josh-test01
|
27 |
+
|
28 |
+
This is a LoRA derived from [black-forest-labs/FLUX.1-dev](https://huggingface.co/black-forest-labs/FLUX.1-dev).
|
29 |
+
|
30 |
+
|
31 |
+
|
32 |
+
The main validation prompt used during training was:
|
33 |
+
|
34 |
+
|
35 |
+
|
36 |
+
```
|
37 |
+
A photo-realistic image of a burger on the moon
|
38 |
+
```
|
39 |
+
|
40 |
+
## Validation settings
|
41 |
+
- CFG: `7.5`
|
42 |
+
- CFG Rescale: `0.0`
|
43 |
+
- Steps: `20`
|
44 |
+
- Sampler: `None`
|
45 |
+
- Seed: `42`
|
46 |
+
- Resolution: `1024x1024`
|
47 |
+
|
48 |
+
Note: The validation settings are not necessarily the same as the [training settings](#training-settings).
|
49 |
+
|
50 |
+
You can find some example images in the following gallery:
|
51 |
+
|
52 |
+
|
53 |
+
<Gallery />
|
54 |
+
|
55 |
+
The text encoder **was not** trained.
|
56 |
+
You may reuse the base model text encoder for inference.
|
57 |
+
|
58 |
+
|
59 |
+
## Training settings
|
60 |
+
|
61 |
+
- Training epochs: 75
|
62 |
+
- Training steps: 1056
|
63 |
+
- Learning rate: 8e-05
|
64 |
+
- Effective batch size: 2
|
65 |
+
- Micro-batch size: 1
|
66 |
+
- Gradient accumulation steps: 2
|
67 |
+
- Number of GPUs: 1
|
68 |
+
- Prediction type: flow-matching
|
69 |
+
- Rescaled betas zero SNR: False
|
70 |
+
- Optimizer: AdamW, stochastic bf16
|
71 |
+
- Precision: Pure BF16
|
72 |
+
- Quantised: No
|
73 |
+
- Xformers: Not used
|
74 |
+
- LoRA Rank: 64
|
75 |
+
- LoRA Alpha: None
|
76 |
+
- LoRA Dropout: 0.1
|
77 |
+
- LoRA initialisation style: default
|
78 |
+
|
79 |
+
|
80 |
+
## Datasets
|
81 |
+
|
82 |
+
### smashburger
|
83 |
+
- Repeats: 0
|
84 |
+
- Total number of images: 28
|
85 |
+
- Total number of aspect buckets: 1
|
86 |
+
- Resolution: 512 px
|
87 |
+
- Cropped: True
|
88 |
+
- Crop style: center
|
89 |
+
- Crop aspect: square
|
90 |
+
|
91 |
+
|
92 |
+
## Inference
|
93 |
+
|
94 |
+
|
95 |
+
```python
|
96 |
+
import torch
|
97 |
+
from diffusers import DiffusionPipeline
|
98 |
+
|
99 |
+
model_id = 'black-forest-labs/FLUX.1-dev'
|
100 |
+
adapter_id = 'jsterlingvids/simpletuner-josh-test01'
|
101 |
+
pipeline = DiffusionPipeline.from_pretrained(model_id)
|
102 |
+
pipeline.load_lora_weights(adapter_id)
|
103 |
+
|
104 |
+
prompt = "A photo-realistic image of a burger on the moon"
|
105 |
+
|
106 |
+
|
107 |
+
pipeline.to('cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu')
|
108 |
+
image = pipeline(
|
109 |
+
prompt=prompt,
|
110 |
+
num_inference_steps=20,
|
111 |
+
generator=torch.Generator(device='cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu').manual_seed(1641421826),
|
112 |
+
width=1024,
|
113 |
+
height=1024,
|
114 |
+
guidance_scale=7.5,
|
115 |
+
).images[0]
|
116 |
+
image.save("output.png", format="PNG")
|
117 |
+
```
|
118 |
+
|
optimizer.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d747b2f8d93d65cae24e5f6dc124f2f3acfc090e4da2a27589884b00283487d9
|
3 |
+
size 583192156
|
random_states_0.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:19b17a4adee67f4781a9237f600710a02acca804d448f969746e4b6cafeda1cd
|
3 |
+
size 14668
|
scheduler.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8d4419738fc98908271b8063c0181b5f72caa6d44724b04a37d7044a136078d5
|
3 |
+
size 1000
|
training_state-smashburger.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"aspect_ratio_bucket_indices": {"1.0": ["/workspace/SimpleTuner/datasets/smashburger/Overhead of burger with bite taken out of it.jpg", "/workspace/SimpleTuner/datasets/smashburger/A beautifully toasted bun encasing a juicy cheeseburger, with melted cheese perfectly draped over a well-seared patty, resting on a stainless steel surface.jpg", "/workspace/SimpleTuner/datasets/smashburger/Overhead view of a delicious cheeseburger, showcasing the soft, glossy bun and gooey cheese, with the edges of the crispy patty peeking out.jpg", "/workspace/SimpleTuner/datasets/smashburger/Medium close up of juicy burger with toasted bun and melted cheese.jpg", "/workspace/SimpleTuner/datasets/smashburger/Overhead of burger with toasted brioche bun.jpg", "/workspace/SimpleTuner/datasets/smashburger/Super closeup of burger with toasted bun and melted cheese.jpg", "/workspace/SimpleTuner/datasets/smashburger/Overhead view of burger with melted cheese.jpg", "/workspace/SimpleTuner/datasets/smashburger/.ipynb_checkpoints/A beautifully toasted bun encasing a juicy cheeseburger, with melted cheese perfectly draped over a well-seared patty, resting on a stainless steel surface-checkpoint.jpg", "/workspace/SimpleTuner/datasets/smashburger/Burger with melted cheese.jpg", "/workspace/SimpleTuner/datasets/smashburger/Burger with melted cheese on stainless steel platter.jpg", "/workspace/SimpleTuner/datasets/smashburger/Extreme closeup of meat cheese and bun.jpg", "/workspace/SimpleTuner/datasets/smashburger/Angled overhead view of burger with melted cheese on stainless platter.jpg", "/workspace/SimpleTuner/datasets/smashburger/Wide shot of burger on platter.jpg", "/workspace/SimpleTuner/datasets/smashburger/Side view of a cheeseburger with a toasted bun and melted cheese.jpg", "/workspace/SimpleTuner/datasets/smashburger/Burger Side shot with toasted bun.jpg", "/workspace/SimpleTuner/datasets/smashburger/Side view closeup of burger with melted cheese and toasted bun.jpg", "/workspace/SimpleTuner/datasets/smashburger/Burger Melted Cheese Unwrapped.jpg", "/workspace/SimpleTuner/datasets/smashburger/Close up of burger with melted cheese on a stainless steel background.jpg", "/workspace/SimpleTuner/datasets/smashburger/.ipynb_checkpoints/Angled overhead view of burger with melted cheese on stainless platter-checkpoint.jpg", "/workspace/SimpleTuner/datasets/smashburger/Side view of burger with melted cheese and single meat patty.jpg", "/workspace/SimpleTuner/datasets/smashburger/Mouth watering burger with multiple slices of cheese and melted cheese.jpg", "/workspace/SimpleTuner/datasets/smashburger/Overhead shot of juicy burger on stainless steel platter.jpg", "/workspace/SimpleTuner/datasets/smashburger/Side close up shot of burger with melted cheese and meat patty.jpg", "/workspace/SimpleTuner/datasets/smashburger/Sideview of burger with melted cheese on stainless steel platter.jpg", "/workspace/SimpleTuner/datasets/smashburger/Close up of burger with Melted Cheese.jpg", "/workspace/SimpleTuner/datasets/smashburger/Burger with melted cheese in packaging unwrapped.jpg", "/workspace/SimpleTuner/datasets/smashburger/Side view of burger with Melted cheese.jpg", "/workspace/SimpleTuner/datasets/smashburger/Burger angled shot with melted cheese and toasted bun.jpg"]}, "buckets": ["1.0"], "exhausted_buckets": [], "batch_size": 1, "current_bucket": 0, "seen_images": {"/workspace/SimpleTuner/datasets/smashburger/Side view of burger with melted cheese and single meat patty.jpg": true, "/workspace/SimpleTuner/datasets/smashburger/Overhead shot of juicy burger on stainless steel platter.jpg": true, "/workspace/SimpleTuner/datasets/smashburger/Overhead of burger with bite taken out of it.jpg": true, "/workspace/SimpleTuner/datasets/smashburger/Burger Melted Cheese Unwrapped.jpg": true, "/workspace/SimpleTuner/datasets/smashburger/Close up of burger with Melted Cheese.jpg": true, "/workspace/SimpleTuner/datasets/smashburger/Mouth watering burger with multiple slices of cheese and melted cheese.jpg": true, "/workspace/SimpleTuner/datasets/smashburger/Extreme closeup of meat cheese and bun.jpg": true, "/workspace/SimpleTuner/datasets/smashburger/Burger angled shot with melted cheese and toasted bun.jpg": true, "/workspace/SimpleTuner/datasets/smashburger/Angled overhead view of burger with melted cheese on stainless platter.jpg": true, "/workspace/SimpleTuner/datasets/smashburger/Side close up shot of burger with melted cheese and meat patty.jpg": true, "/workspace/SimpleTuner/datasets/smashburger/Burger with melted cheese.jpg": true, "/workspace/SimpleTuner/datasets/smashburger/Close up of burger with melted cheese on a stainless steel background.jpg": true}, "current_epoch": 76}
|