Upload 4 files
Browse files- p3rs0nlora/README.md +45 -0
- p3rs0nlora/config.yaml +70 -0
- p3rs0nlora/optimizer.pt +3 -0
- p3rs0nlora/p3rs0nlora.safetensors +3 -0
p3rs0nlora/README.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- text-to-image
|
| 4 |
+
- flux
|
| 5 |
+
- lora
|
| 6 |
+
- diffusers
|
| 7 |
+
- template:sd-lora
|
| 8 |
+
- ai-toolkit
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
base_model: black-forest-labs/FLUX.1-dev
|
| 12 |
+
instance_prompt: p3rs0nlora
|
| 13 |
+
license: other
|
| 14 |
+
license_name: flux-1-dev-non-commercial-license
|
| 15 |
+
license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# p3rs0nlora
|
| 19 |
+
Model trained with [AI Toolkit by Ostris](https://github.com/ostris/ai-toolkit)
|
| 20 |
+
<Gallery />
|
| 21 |
+
|
| 22 |
+
## Trigger words
|
| 23 |
+
|
| 24 |
+
You should use `p3rs0nlora` to trigger the image generation.
|
| 25 |
+
|
| 26 |
+
## Download model and use it with ComfyUI, AUTOMATIC1111, SD.Next, Invoke AI, etc.
|
| 27 |
+
|
| 28 |
+
Weights for this model are available in Safetensors format.
|
| 29 |
+
|
| 30 |
+
[Download](/unknownmixorgacc/ai-toolkit/tree/main) them in the Files & versions tab.
|
| 31 |
+
|
| 32 |
+
## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)
|
| 33 |
+
|
| 34 |
+
```py
|
| 35 |
+
from diffusers import AutoPipelineForText2Image
|
| 36 |
+
import torch
|
| 37 |
+
|
| 38 |
+
pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.bfloat16).to('cuda')
|
| 39 |
+
pipeline.load_lora_weights('unknownmixorgacc/ai-toolkit', weight_name='p3rs0nlora.safetensors')
|
| 40 |
+
image = pipeline('p3rs0nlora').images[0]
|
| 41 |
+
image.save("my_image.png")
|
| 42 |
+
```
|
| 43 |
+
|
| 44 |
+
For more details, including weighting, merging and fusing LoRAs, check the [documentation on loading LoRAs in diffusers](https://huggingface.co/docs/diffusers/main/en/using-diffusers/loading_adapters)
|
| 45 |
+
|
p3rs0nlora/config.yaml
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
job: extension
|
| 2 |
+
config:
|
| 3 |
+
name: p3rs0nlora
|
| 4 |
+
process:
|
| 5 |
+
- type: sd_trainer
|
| 6 |
+
training_folder: output
|
| 7 |
+
device: cuda:0
|
| 8 |
+
trigger_word: p3rs0nlora
|
| 9 |
+
network:
|
| 10 |
+
type: lokr
|
| 11 |
+
linear: 16
|
| 12 |
+
linear_alpha: 16
|
| 13 |
+
network_kwargs:
|
| 14 |
+
only_if_contains:
|
| 15 |
+
- transformer.single_transformer_blocks.9.
|
| 16 |
+
- transformer.single_transformer_blocks.25.
|
| 17 |
+
- transformer.transformer_blocks.5.
|
| 18 |
+
- transformer.transformer_blocks.15.
|
| 19 |
+
save:
|
| 20 |
+
dtype: float16
|
| 21 |
+
save_every: 10000
|
| 22 |
+
max_step_saves_to_keep: 4
|
| 23 |
+
push_to_hub: true
|
| 24 |
+
hf_private: true
|
| 25 |
+
hf_repo_id: unknownmixorgacc/ai-toolkit
|
| 26 |
+
datasets:
|
| 27 |
+
- folder_path: datasets
|
| 28 |
+
caption_ext: txt
|
| 29 |
+
caption_dropout_rate: 0.0
|
| 30 |
+
shuffle_tokens: false
|
| 31 |
+
cache_latents_to_disk: false
|
| 32 |
+
resolution:
|
| 33 |
+
- 768
|
| 34 |
+
- 1024
|
| 35 |
+
train:
|
| 36 |
+
batch_size: 2
|
| 37 |
+
steps: 500
|
| 38 |
+
gradient_accumulation_steps: 1
|
| 39 |
+
train_unet: true
|
| 40 |
+
train_text_encoder: false
|
| 41 |
+
gradient_checkpointing: true
|
| 42 |
+
noise_scheduler: flowmatch
|
| 43 |
+
optimizer: adamw8bit
|
| 44 |
+
lr: 0.001
|
| 45 |
+
skip_first_sample: true
|
| 46 |
+
disable_sampling: true
|
| 47 |
+
ema_config:
|
| 48 |
+
use_ema: true
|
| 49 |
+
ema_decay: 0.99
|
| 50 |
+
dtype: bf16
|
| 51 |
+
model:
|
| 52 |
+
name_or_path: black-forest-labs/FLUX.1-dev
|
| 53 |
+
is_flux: true
|
| 54 |
+
quantize: false
|
| 55 |
+
low_vram: false
|
| 56 |
+
sample:
|
| 57 |
+
sampler: flowmatch
|
| 58 |
+
sample_every: 1000
|
| 59 |
+
width: 1024
|
| 60 |
+
height: 1024
|
| 61 |
+
prompts:
|
| 62 |
+
- cowboy wearing a denim jacket, p3rs0nlora
|
| 63 |
+
neg: ''
|
| 64 |
+
seed: 42
|
| 65 |
+
walk_seed: true
|
| 66 |
+
guidance_scale: 3.5
|
| 67 |
+
sample_steps: 28
|
| 68 |
+
meta:
|
| 69 |
+
name: '[cecerose]'
|
| 70 |
+
version: '1.0'
|
p3rs0nlora/optimizer.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:17cfc10e473a2c46ce3767b3e3fa8d146055681257e2ba2b0d44bdcabbd33e1b
|
| 3 |
+
size 14273018
|
p3rs0nlora/p3rs0nlora.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:73782d47b7fe43877e72e466998afdb0a65d2424f3a154d7ed7e0d17377edeb9
|
| 3 |
+
size 13970224
|