Instructions to use stephanebhiri/lora-trained-xl-colab-stp25 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use stephanebhiri/lora-trained-xl-colab-stp25 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("stephanebhiri/lora-trained-xl-colab-stp25") prompt = "ohwx man" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Commit ·
4364235
1
Parent(s): fd4562a
End of training
Browse files- README.md +23 -0
- checkpoint-500/optimizer.bin +3 -0
- checkpoint-500/pytorch_lora_weights.bin +3 -0
- checkpoint-500/random_states_0.pkl +3 -0
- checkpoint-500/scaler.pt +3 -0
- checkpoint-500/scheduler.bin +3 -0
- logs/dreambooth-lora-sd-xl/1692063090.3834803/events.out.tfevents.1692063090.f1d4aefcec38.20862.1 +3 -0
- logs/dreambooth-lora-sd-xl/1692063090.3852599/hparams.yml +53 -0
- logs/dreambooth-lora-sd-xl/events.out.tfevents.1692063090.f1d4aefcec38.20862.0 +3 -0
- pytorch_lora_weights.bin +3 -0
README.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
---
|
| 3 |
+
license: openrail++
|
| 4 |
+
base_model: stabilityai/stable-diffusion-xl-base-1.0
|
| 5 |
+
instance_prompt: sks
|
| 6 |
+
tags:
|
| 7 |
+
- stable-diffusion-xl
|
| 8 |
+
- stable-diffusion-xl-diffusers
|
| 9 |
+
- text-to-image
|
| 10 |
+
- diffusers
|
| 11 |
+
- lora
|
| 12 |
+
inference: true
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# LoRA DreamBooth - stephanebhiri/lora-trained-xl-colab-stp25
|
| 16 |
+
|
| 17 |
+
These are LoRA adaption weights for stabilityai/stable-diffusion-xl-base-1.0. The weights were trained on sks using [DreamBooth](https://dreambooth.github.io/). You can find some example images in the following.
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
LoRA for the text encoder was enabled: False.
|
| 22 |
+
|
| 23 |
+
Special VAE used for training: madebyollin/sdxl-vae-fp16-fix.
|
checkpoint-500/optimizer.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a57b8ec8feb7c0f8b5c2eb66dde8d94caa3d94fbba97c9f141eabdea159b129f
|
| 3 |
+
size 47392445
|
checkpoint-500/pytorch_lora_weights.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c50fb5511a45810228f1786f7eb2d9a77119f30a035b2baa6ff31f848dc0d526
|
| 3 |
+
size 23664755
|
checkpoint-500/random_states_0.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0702d911780870987a3831a592b860a73e0ffb3d59f9f13b0dcab5cdfc43bf40
|
| 3 |
+
size 14599
|
checkpoint-500/scaler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a3f196a54202bb4ba1220e8c59f42f9cda0702d68ea83147d814c2fb2f36b8f2
|
| 3 |
+
size 557
|
checkpoint-500/scheduler.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:62783ff6f0ae2c2ccc177b097e430c03940c5e70c38a191df273c5cf7ab1227c
|
| 3 |
+
size 563
|
logs/dreambooth-lora-sd-xl/1692063090.3834803/events.out.tfevents.1692063090.f1d4aefcec38.20862.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4876863dfa1fc8797727e85edec5e1807abb9939e1f5af3684aefe84e2064ae3
|
| 3 |
+
size 2718
|
logs/dreambooth-lora-sd-xl/1692063090.3852599/hparams.yml
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
adam_beta1: 0.9
|
| 2 |
+
adam_beta2: 0.999
|
| 3 |
+
adam_epsilon: 1.0e-08
|
| 4 |
+
adam_weight_decay: 0.01
|
| 5 |
+
allow_tf32: false
|
| 6 |
+
center_crop: false
|
| 7 |
+
checkpointing_steps: 500
|
| 8 |
+
checkpoints_total_limit: null
|
| 9 |
+
class_data_dir: null
|
| 10 |
+
class_prompt: null
|
| 11 |
+
crops_coords_top_left_h: 0
|
| 12 |
+
crops_coords_top_left_w: 0
|
| 13 |
+
dataloader_num_workers: 0
|
| 14 |
+
enable_xformers_memory_efficient_attention: false
|
| 15 |
+
gradient_accumulation_steps: 2
|
| 16 |
+
gradient_checkpointing: false
|
| 17 |
+
hub_model_id: null
|
| 18 |
+
hub_token: null
|
| 19 |
+
instance_data_dir: drive/MyDrive/stp
|
| 20 |
+
instance_prompt: sks
|
| 21 |
+
learning_rate: 0.0001
|
| 22 |
+
local_rank: -1
|
| 23 |
+
logging_dir: logs
|
| 24 |
+
lr_num_cycles: 1
|
| 25 |
+
lr_power: 1.0
|
| 26 |
+
lr_scheduler: constant
|
| 27 |
+
lr_warmup_steps: 0
|
| 28 |
+
max_grad_norm: 1.0
|
| 29 |
+
max_train_steps: 600
|
| 30 |
+
mixed_precision: fp16
|
| 31 |
+
num_class_images: 100
|
| 32 |
+
num_train_epochs: 300
|
| 33 |
+
num_validation_images: 4
|
| 34 |
+
output_dir: lora-trained-xl-colab-stp25
|
| 35 |
+
pretrained_model_name_or_path: stabilityai/stable-diffusion-xl-base-1.0
|
| 36 |
+
pretrained_vae_model_name_or_path: madebyollin/sdxl-vae-fp16-fix
|
| 37 |
+
prior_generation_precision: null
|
| 38 |
+
prior_loss_weight: 1.0
|
| 39 |
+
push_to_hub: true
|
| 40 |
+
rank: 4
|
| 41 |
+
report_to: tensorboard
|
| 42 |
+
resolution: 1024
|
| 43 |
+
resume_from_checkpoint: null
|
| 44 |
+
revision: null
|
| 45 |
+
sample_batch_size: 4
|
| 46 |
+
scale_lr: false
|
| 47 |
+
seed: 0
|
| 48 |
+
train_batch_size: 2
|
| 49 |
+
train_text_encoder: false
|
| 50 |
+
use_8bit_adam: false
|
| 51 |
+
validation_epochs: 50
|
| 52 |
+
validation_prompt: null
|
| 53 |
+
with_prior_preservation: false
|
logs/dreambooth-lora-sd-xl/events.out.tfevents.1692063090.f1d4aefcec38.20862.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a3065e95c296efc9a74732e38eb7116a5d86a2e3e8ccd9bcd1bbdbd46e577cda
|
| 3 |
+
size 100374
|
pytorch_lora_weights.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:91ccc773f2bd647e7d0388a6464cf8e6bfd62bfbec5380357067a9a224254b00
|
| 3 |
+
size 23664755
|