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/thomas-likeness/config_v1.yaml with huggingface_hub
Browse files
loras/thomas-likeness/config_v1.yaml
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
job: extension
|
| 2 |
+
config:
|
| 3 |
+
name: thomas_likeness_v1
|
| 4 |
+
process:
|
| 5 |
+
- type: sd_trainer
|
| 6 |
+
training_folder: /Users/margaret/models/thomas-likeness-output
|
| 7 |
+
device: mps
|
| 8 |
+
trigger_word: thomas
|
| 9 |
+
network:
|
| 10 |
+
type: lora
|
| 11 |
+
linear: 16
|
| 12 |
+
linear_alpha: 16
|
| 13 |
+
save:
|
| 14 |
+
dtype: float16
|
| 15 |
+
save_every: 250
|
| 16 |
+
max_step_saves_to_keep: 4
|
| 17 |
+
push_to_hub: false
|
| 18 |
+
datasets:
|
| 19 |
+
- folder_path: /Users/margaret/models/thomas-likeness-training/images
|
| 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: 1500
|
| 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.0001
|
| 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 |
+
quantize_kwargs:
|
| 47 |
+
exclude:
|
| 48 |
+
- '*time_text_embed*'
|
| 49 |
+
sample:
|
| 50 |
+
sampler: flowmatch
|
| 51 |
+
sample_every: 250
|
| 52 |
+
width: 1024
|
| 53 |
+
height: 1024
|
| 54 |
+
prompts:
|
| 55 |
+
- thomas, portrait photo, front facing, natural lighting
|
| 56 |
+
- thomas, portrait photo wearing glasses, three-quarter angle
|
| 57 |
+
- thomas, portrait photo wearing a grey fedora hat
|
| 58 |
+
- thomas, close-up portrait photo, calm expression
|
| 59 |
+
neg: ''
|
| 60 |
+
seed: 42
|
| 61 |
+
walk_seed: true
|
| 62 |
+
guidance_scale: 4
|
| 63 |
+
sample_steps: 25
|
| 64 |
+
meta:
|
| 65 |
+
name: thomas_likeness_v1
|
| 66 |
+
version: '1.0'
|