Instructions to use LiberationLabs/image-toolbench with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use LiberationLabs/image-toolbench with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("fill-in-base-model", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("LiberationLabs/image-toolbench") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Upload loras/kintsugi-texture/config_v2.yaml with huggingface_hub
Browse files
loras/kintsugi-texture/config_v2.yaml
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
job: extension
|
| 2 |
+
config:
|
| 3 |
+
name: kintsugi_texture_v2
|
| 4 |
+
process:
|
| 5 |
+
- type: sd_trainer
|
| 6 |
+
training_folder: /Users/margaret/models/kintsugi-texture-v2-output
|
| 7 |
+
device: mps
|
| 8 |
+
trigger_word: kintsugi gold repair
|
| 9 |
+
network:
|
| 10 |
+
type: lora
|
| 11 |
+
linear: 8
|
| 12 |
+
linear_alpha: 8
|
| 13 |
+
save:
|
| 14 |
+
dtype: float16
|
| 15 |
+
save_every: 100
|
| 16 |
+
max_step_saves_to_keep: 3
|
| 17 |
+
push_to_hub: false
|
| 18 |
+
datasets:
|
| 19 |
+
- folder_path: /Users/margaret/models/kintsugi-texture-v2
|
| 20 |
+
caption_ext: txt
|
| 21 |
+
caption_dropout_rate: 0.05
|
| 22 |
+
shuffle_tokens: false
|
| 23 |
+
cache_latents_to_disk: true
|
| 24 |
+
resolution:
|
| 25 |
+
- 512
|
| 26 |
+
- 768
|
| 27 |
+
- 1024
|
| 28 |
+
train:
|
| 29 |
+
batch_size: 1
|
| 30 |
+
steps: 400
|
| 31 |
+
gradient_accumulation: 1
|
| 32 |
+
train_unet: true
|
| 33 |
+
train_text_encoder: false
|
| 34 |
+
gradient_checkpointing: true
|
| 35 |
+
noise_scheduler: flowmatch
|
| 36 |
+
optimizer: adamw
|
| 37 |
+
lr: 0.0004
|
| 38 |
+
ema_config:
|
| 39 |
+
use_ema: true
|
| 40 |
+
ema_decay: 0.99
|
| 41 |
+
dtype: bf16
|
| 42 |
+
model:
|
| 43 |
+
name_or_path: black-forest-labs/FLUX.1-dev
|
| 44 |
+
is_flux: true
|
| 45 |
+
quantize: false
|
| 46 |
+
sample:
|
| 47 |
+
sampler: flowmatch
|
| 48 |
+
sample_every: 100
|
| 49 |
+
width: 1024
|
| 50 |
+
height: 1024
|
| 51 |
+
prompts:
|
| 52 |
+
- kintsugi gold repair, dark navy ceramic figure with hundreds of fine gold-filled
|
| 53 |
+
cracks covering the entire body, thick golden lacquer filling deep fractures,
|
| 54 |
+
the gold glows from within
|
| 55 |
+
- kintsugi gold repair, extreme close-up of dense golden repair lines webbing
|
| 56 |
+
across dark ceramic cheekbones and jaw, gold filling every crack, structural
|
| 57 |
+
repair not decoration
|
| 58 |
+
neg: ''
|
| 59 |
+
seed: 42
|
| 60 |
+
walk_seed: true
|
| 61 |
+
guidance_scale: 3.5
|
| 62 |
+
sample_steps: 20
|