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
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: 'gorkem holding a sign that says ''I LOVE FAL!'''
|
| 20 |
+
parameters:
|
| 21 |
+
negative_prompt: 'blurry, cropped, ugly'
|
| 22 |
+
output:
|
| 23 |
+
url: ./assets/image_1_0.png
|
| 24 |
+
- text: 'gorkem with red hair, playing chess at the park, bomb going off in the background'
|
| 25 |
+
parameters:
|
| 26 |
+
negative_prompt: 'blurry, cropped, ugly'
|
| 27 |
+
output:
|
| 28 |
+
url: ./assets/image_2_0.png
|
| 29 |
+
- text: 'a gorkem holding a coffee cup, in a beanie, sitting at a cafe'
|
| 30 |
+
parameters:
|
| 31 |
+
negative_prompt: 'blurry, cropped, ugly'
|
| 32 |
+
output:
|
| 33 |
+
url: ./assets/image_3_0.png
|
| 34 |
+
- text: 'gorkem showing off his cool new t shirt at the beach, a shark is jumping out of the water in the background'
|
| 35 |
+
parameters:
|
| 36 |
+
negative_prompt: 'blurry, cropped, ugly'
|
| 37 |
+
output:
|
| 38 |
+
url: ./assets/image_4_0.png
|
| 39 |
+
- text: 'a bear building a log cabin in the snow covered mountains'
|
| 40 |
+
parameters:
|
| 41 |
+
negative_prompt: 'blurry, cropped, ugly'
|
| 42 |
+
output:
|
| 43 |
+
url: ./assets/image_5_0.png
|
| 44 |
+
- text: 'woman playing the guitar, on stage, singing a song, laser lights, punk rocker'
|
| 45 |
+
parameters:
|
| 46 |
+
negative_prompt: 'blurry, cropped, ugly'
|
| 47 |
+
output:
|
| 48 |
+
url: ./assets/image_6_0.png
|
| 49 |
+
- text: 'hipster man with a beard, building a chair, in a wood shop'
|
| 50 |
+
parameters:
|
| 51 |
+
negative_prompt: 'blurry, cropped, ugly'
|
| 52 |
+
output:
|
| 53 |
+
url: ./assets/image_7_0.png
|
| 54 |
+
- text: 'photo of gorkem, white background, medium shot, modeling clothing, studio lighting, white backdrop'
|
| 55 |
+
parameters:
|
| 56 |
+
negative_prompt: 'blurry, cropped, ugly'
|
| 57 |
+
output:
|
| 58 |
+
url: ./assets/image_8_0.png
|
| 59 |
+
- text: 'gorkem with red hair, playing chess at the park, bomb going off in the background'
|
| 60 |
+
parameters:
|
| 61 |
+
negative_prompt: 'blurry, cropped, ugly'
|
| 62 |
+
output:
|
| 63 |
+
url: ./assets/image_9_0.png
|
| 64 |
+
---
|
| 65 |
+
|
| 66 |
+
# dev-1024
|
| 67 |
+
|
| 68 |
+
This is a LoRA derived from [black-forest-labs/FLUX.1-dev](https://huggingface.co/black-forest-labs/FLUX.1-dev).
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
The main validation prompt used during training was:
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
|
| 76 |
+
```
|
| 77 |
+
gorkem with red hair, playing chess at the park, bomb going off in the background
|
| 78 |
+
```
|
| 79 |
+
|
| 80 |
+
## Validation settings
|
| 81 |
+
- CFG: `3.0`
|
| 82 |
+
- CFG Rescale: `0.0`
|
| 83 |
+
- Steps: `20`
|
| 84 |
+
- Sampler: `None`
|
| 85 |
+
- Seed: `42`
|
| 86 |
+
- Resolution: `1024x1024`
|
| 87 |
+
|
| 88 |
+
Note: The validation settings are not necessarily the same as the [training settings](#training-settings).
|
| 89 |
+
|
| 90 |
+
You can find some example images in the following gallery:
|
| 91 |
+
|
| 92 |
+
|
| 93 |
+
<Gallery />
|
| 94 |
+
|
| 95 |
+
The text encoder **was not** trained.
|
| 96 |
+
You may reuse the base model text encoder for inference.
|
| 97 |
+
|
| 98 |
+
|
| 99 |
+
## Training settings
|
| 100 |
+
|
| 101 |
+
- Training epochs: 35
|
| 102 |
+
- Training steps: 250
|
| 103 |
+
- Learning rate: 0.0004
|
| 104 |
+
- Effective batch size: 1
|
| 105 |
+
- Micro-batch size: 1
|
| 106 |
+
- Gradient accumulation steps: 1
|
| 107 |
+
- Number of GPUs: 1
|
| 108 |
+
- Prediction type: flow-matching
|
| 109 |
+
- Rescaled betas zero SNR: False
|
| 110 |
+
- Optimizer: adamw_bf16
|
| 111 |
+
- Precision: bf16
|
| 112 |
+
- Quantised: No
|
| 113 |
+
- Xformers: Not used
|
| 114 |
+
- LoRA Rank: 16
|
| 115 |
+
- LoRA Alpha: None
|
| 116 |
+
- LoRA Dropout: 0.1
|
| 117 |
+
- LoRA initialisation style: default
|
| 118 |
+
|
| 119 |
+
|
| 120 |
+
## Datasets
|
| 121 |
+
|
| 122 |
+
### gorkem_1024
|
| 123 |
+
- Repeats: 0
|
| 124 |
+
- Total number of images: 7
|
| 125 |
+
- Total number of aspect buckets: 1
|
| 126 |
+
- Resolution: 1.048576 megapixels
|
| 127 |
+
- Cropped: False
|
| 128 |
+
- Crop style: None
|
| 129 |
+
- Crop aspect: None
|
| 130 |
+
|
| 131 |
+
|
| 132 |
+
## Inference
|
| 133 |
+
|
| 134 |
+
|
| 135 |
+
```python
|
| 136 |
+
import torch
|
| 137 |
+
from diffusers import DiffusionPipeline
|
| 138 |
+
|
| 139 |
+
model_id = 'black-forest-labs/FLUX.1-dev'
|
| 140 |
+
adapter_id = 'Warlord-K/dev-1024'
|
| 141 |
+
pipeline = DiffusionPipeline.from_pretrained(model_id)
|
| 142 |
+
pipeline.load_lora_weights(adapter_id)
|
| 143 |
+
|
| 144 |
+
prompt = "gorkem with red hair, playing chess at the park, bomb going off in the background"
|
| 145 |
+
|
| 146 |
+
|
| 147 |
+
pipeline.to('cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu')
|
| 148 |
+
image = pipeline(
|
| 149 |
+
prompt=prompt,
|
| 150 |
+
num_inference_steps=20,
|
| 151 |
+
generator=torch.Generator(device='cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu').manual_seed(1641421826),
|
| 152 |
+
width=1024,
|
| 153 |
+
height=1024,
|
| 154 |
+
guidance_scale=3.0,
|
| 155 |
+
).images[0]
|
| 156 |
+
image.save("output.png", format="PNG")
|
| 157 |
+
```
|
| 158 |
+
|