Upload . with huggingface_hub
Browse files- README.md +21 -0
- checkpoint-100/custom_checkpoint_0.pkl +3 -0
- checkpoint-100/optimizer.bin +3 -0
- checkpoint-100/pytorch_model.bin +3 -0
- checkpoint-100/random_states_0.pkl +3 -0
- checkpoint-100/scaler.pt +3 -0
- checkpoint-100/scheduler.bin +3 -0
- checkpoint-200/custom_checkpoint_0.pkl +3 -0
- checkpoint-200/optimizer.bin +3 -0
- checkpoint-200/pytorch_model.bin +3 -0
- checkpoint-200/random_states_0.pkl +3 -0
- checkpoint-200/scaler.pt +3 -0
- checkpoint-200/scheduler.bin +3 -0
- checkpoint-300/custom_checkpoint_0.pkl +3 -0
- checkpoint-300/optimizer.bin +3 -0
- checkpoint-300/pytorch_model.bin +3 -0
- checkpoint-300/random_states_0.pkl +3 -0
- checkpoint-300/scaler.pt +3 -0
- checkpoint-300/scheduler.bin +3 -0
- checkpoint-400/custom_checkpoint_0.pkl +3 -0
- checkpoint-400/optimizer.bin +3 -0
- checkpoint-400/pytorch_model.bin +3 -0
- checkpoint-400/random_states_0.pkl +3 -0
- checkpoint-400/scaler.pt +3 -0
- checkpoint-400/scheduler.bin +3 -0
- checkpoint-500/custom_checkpoint_0.pkl +3 -0
- checkpoint-500/optimizer.bin +3 -0
- checkpoint-500/pytorch_model.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/1674632924.1520667/events.out.tfevents.1674632924.s-hysts-test-lora-dreambooth-123ca-7997d784df-nrvq8.109.1 +3 -0
- logs/dreambooth-lora/1674632924.153745/hparams.yml +48 -0
- logs/dreambooth-lora/events.out.tfevents.1674632924.s-hysts-test-lora-dreambooth-123ca-7997d784df-nrvq8.109.0 +3 -0
- pytorch_lora_weights.bin +3 -0
- test_images/image_0.png +0 -0
- test_images/image_1.png +0 -0
- test_images/image_2.png +0 -0
- test_images/image_3.png +0 -0
- train.sh +1 -0
README.md
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: creativeml-openrail-m
|
3 |
+
base_model: stabilityai/stable-diffusion-2-1-base
|
4 |
+
instance_prompt: sksdog
|
5 |
+
tags:
|
6 |
+
- stable-diffusion
|
7 |
+
- stable-diffusion-diffusers
|
8 |
+
- text-to-image
|
9 |
+
- diffusers
|
10 |
+
inference: true
|
11 |
+
---
|
12 |
+
# LoRA DreamBooth - lora-dreambooth-sample-dog
|
13 |
+
|
14 |
+
These are LoRA adaption weights for [stabilityai/stable-diffusion-2-1-base](https://huggingface.co/stabilityai/stable-diffusion-2-1-base). The weights were trained on the instance prompt "sksdog" using [DreamBooth](https://dreambooth.github.io/). You can find some example images in the following.
|
15 |
+
|
16 |
+
Test prompt: a photo of a sksdog in a bucket
|
17 |
+
![image_0](test_images/image_0.png)
|
18 |
+
![image_1](test_images/image_1.png)
|
19 |
+
![image_2](test_images/image_2.png)
|
20 |
+
![image_3](test_images/image_3.png)
|
21 |
+
|
checkpoint-100/custom_checkpoint_0.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dc388c7e35089f59a671de5c4930d90aed89db48c36db511316e5837462527e0
|
3 |
+
size 3418585
|
checkpoint-100/optimizer.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c5fe89aa078f5b27b71fd466165623d7758c072bf17779ba493aa26a7e104fa9
|
3 |
+
size 3492869
|
checkpoint-100/pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:084e5d6cf3a7ba9100b3a63d1db8722d4b21fb210d26c2175a272937346e96d4
|
3 |
+
size 3417037
|
checkpoint-100/random_states_0.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4b10dadb0447d4c5cdc68a742d832c56ac523a09fbd2c8b7e4e0cb11d6c17be4
|
3 |
+
size 14599
|
checkpoint-100/scaler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cfa44e8523f62833816d29aa6c576eaa7783e3bbdb3e132e248b1d8aaee6132b
|
3 |
+
size 557
|
checkpoint-100/scheduler.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:906bdd391189fd16d3160fd1e198eb53687dae580f930cf3f64365609fd5f606
|
3 |
+
size 563
|
checkpoint-200/custom_checkpoint_0.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6bf5d065c20c2ae4a67d75701f2316543d77abb3fda9d4004ae6143c44016449
|
3 |
+
size 3418585
|
checkpoint-200/optimizer.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ee7563cbd43df9eae89c208140bd8316b0a131db9e54f886a05dcb52d475b2c8
|
3 |
+
size 3492869
|
checkpoint-200/pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:10d527387632348021c24b91b8924a0cb8fefbcb149f7d54f9c7367827bdafde
|
3 |
+
size 3417037
|
checkpoint-200/random_states_0.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6856a424a1eb66f0939a6b721ea1cdc5bc5cae6362ea9adb876a821faccd7755
|
3 |
+
size 14599
|
checkpoint-200/scaler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4fccf0f9be1bb8f24861e4393745b3e09cc2687125a69e3757955fb0f0925ea5
|
3 |
+
size 557
|
checkpoint-200/scheduler.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d2565f1f317aadcb95557955732a7a05efb023cacf90620d89fcb0c7ac0f8e04
|
3 |
+
size 563
|
checkpoint-300/custom_checkpoint_0.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fef0a08f9ecd8cf167a9fa8cf40180f923ce34adf0d95f16fd24bf0c49cdd6ec
|
3 |
+
size 3418585
|
checkpoint-300/optimizer.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:345fb1750b281b321bb92138ae14f20478c712fc1ba7a44f35ba8fc3c39b1961
|
3 |
+
size 3493125
|
checkpoint-300/pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6d693477b368d1317bbb3cf27043778df9750580c90799cfc878dac5e51d8b47
|
3 |
+
size 3417037
|
checkpoint-300/random_states_0.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ab32037640c080afc751a6d78daf639204c44d8327d47cc77f8e97b9a1724de6
|
3 |
+
size 14599
|
checkpoint-300/scaler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:efafd90182e3d39d1b7c4a686f86e5913f5abc094dc3e2f827a6d479c6cef247
|
3 |
+
size 557
|
checkpoint-300/scheduler.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a84fb1fc02dc9adb8c44beeab2c46fbc41e10a07e99dad3fcd85350ca2bda9d5
|
3 |
+
size 563
|
checkpoint-400/custom_checkpoint_0.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:73f32d9039e28458ff119c53fd10959922a1b269917eff725abd10b1ff541a82
|
3 |
+
size 3418585
|
checkpoint-400/optimizer.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6bac91f26662acb7c0869af68c02b7d8045f8ab48ce621f533b50b264d59eda5
|
3 |
+
size 3493125
|
checkpoint-400/pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:76560b54f3a10aaefb8fc5e217c1407d078715272decac2c9aaa4556ec156b9a
|
3 |
+
size 3417037
|
checkpoint-400/random_states_0.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3356684ffefc1769dd6a165128c2d1a1c8b4cedb7c1e4c5a928ab8c6ba8fa681
|
3 |
+
size 14599
|
checkpoint-400/scaler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cc40a4be6a52cee4d7658df4041e660ffa02b0d8b5bd143bb8bb397f7b71b1a5
|
3 |
+
size 557
|
checkpoint-400/scheduler.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5e33b45756ec30d1126f6571b94c7435f6d9cb7b6d5e5e650c81523775e7216f
|
3 |
+
size 563
|
checkpoint-500/custom_checkpoint_0.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4d6f31d6901fd6ef206f8c7bf3475bb26014edc59056970f6f9d75566f1d166d
|
3 |
+
size 3418585
|
checkpoint-500/optimizer.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d92fe464af94d41d626f34c0b1ece6893ce36c0ee8d1f70ec0a166f0aa599904
|
3 |
+
size 3493125
|
checkpoint-500/pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7df6d6f7e797524282c8b175fc00684e836ffa678184c75bbcc42eca46808b95
|
3 |
+
size 3417037
|
checkpoint-500/random_states_0.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4dfe7e98e2e23c5a12f7b4f6eb04675df17b62297408ac8304549af2ad669b28
|
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/1674632924.1520667/events.out.tfevents.1674632924.s-hysts-test-lora-dreambooth-123ca-7997d784df-nrvq8.109.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:733aed2ea35f0a94cf4f56ba39c2389f46b565439a66541e2b22890e14c4acdb
|
3 |
+
size 2484
|
logs/dreambooth-lora/1674632924.153745/hparams.yml
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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: 100
|
8 |
+
class_data_dir: null
|
9 |
+
class_prompt: null
|
10 |
+
dataloader_num_workers: 0
|
11 |
+
enable_xformers_memory_efficient_attention: false
|
12 |
+
gradient_accumulation_steps: 1
|
13 |
+
gradient_checkpointing: false
|
14 |
+
hub_model_id: null
|
15 |
+
hub_token: null
|
16 |
+
instance_data_dir: /home/user/app/training_data/lora-dreambooth-sample-dog
|
17 |
+
instance_prompt: sksdog
|
18 |
+
learning_rate: 0.0001
|
19 |
+
local_rank: -1
|
20 |
+
logging_dir: logs
|
21 |
+
lr_num_cycles: 1
|
22 |
+
lr_power: 1.0
|
23 |
+
lr_scheduler: constant
|
24 |
+
lr_warmup_steps: 0
|
25 |
+
max_grad_norm: 1.0
|
26 |
+
max_train_steps: 500
|
27 |
+
mixed_precision: fp16
|
28 |
+
num_class_images: 100
|
29 |
+
num_train_epochs: 100
|
30 |
+
num_validation_images: 4
|
31 |
+
output_dir: /home/user/app/experiments/lora-dreambooth-sample-dog
|
32 |
+
pretrained_model_name_or_path: stabilityai/stable-diffusion-2-1-base
|
33 |
+
prior_generation_precision: null
|
34 |
+
prior_loss_weight: 1.0
|
35 |
+
push_to_hub: false
|
36 |
+
report_to: tensorboard
|
37 |
+
resolution: 512
|
38 |
+
resume_from_checkpoint: null
|
39 |
+
revision: null
|
40 |
+
sample_batch_size: 4
|
41 |
+
scale_lr: false
|
42 |
+
seed: 0
|
43 |
+
tokenizer_name: null
|
44 |
+
train_batch_size: 1
|
45 |
+
use_8bit_adam: true
|
46 |
+
validation_epochs: 100
|
47 |
+
validation_prompt: a photo of a sksdog in a bucket
|
48 |
+
with_prior_preservation: false
|
logs/dreambooth-lora/events.out.tfevents.1674632924.s-hysts-test-lora-dreambooth-123ca-7997d784df-nrvq8.109.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5dd5c133d3e505c3397e64f7f57207eae3920ccfadec69a157ba77ed49b8e06b
|
3 |
+
size 3392477
|
pytorch_lora_weights.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0e2aa481ceb1b1f560482e409195e4c177cacb1925df74cd3de4fbac6a556c3e
|
3 |
+
size 3418843
|
test_images/image_0.png
ADDED
test_images/image_1.png
ADDED
test_images/image_2.png
ADDED
test_images/image_3.png
ADDED
train.sh
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
accelerate launch train_dreambooth_lora.py --pretrained_model_name_or_path=stabilityai/stable-diffusion-2-1-base --instance_data_dir=/home/user/app/training_data/lora-dreambooth-sample-dog --output_dir=/home/user/app/experiments/lora-dreambooth-sample-dog --instance_prompt="sksdog" --resolution=512 --train_batch_size=1 --gradient_accumulation_steps=1 --learning_rate=0.0001 --lr_scheduler=constant --lr_warmup_steps=0 --max_train_steps=500 --checkpointing_steps=100 --validation_prompt="a photo of a sksdog in a bucket" --validation_epochs=100 --seed=0 --mixed_precision fp16 --use_8bit_adam
|