mrtuandao commited on
Commit
c30c4ee
1 Parent(s): 7bc03f9

Upload folder using huggingface_hub

Browse files
.ipynb_checkpoints/config-checkpoint.toml ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [general]
2
+ enable_bucket = true # Whether to use Aspect Ratio Bucketing
3
+
4
+ [[datasets]]
5
+ resolution = 512 # Training resolution
6
+ batch_size = 4 # Batch size
7
+
8
+ [[datasets.subsets]]
9
+ image_dir = '/workspace/sd-scripts/sks' # Specify the folder containing the training images
10
+ class_tokens = 'sks person'
11
+ num_repeats = 10 # Number of repetitions for training images
.ipynb_checkpoints/script-checkpoint.sh ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!usr/bin/bash
2
+ accelerate launch --num_cpu_threads_per_process 1 train_db.py \
3
+ --pretrained_model_name_or_path="runwayml/stable-diffusion-v1-5" \
4
+ --dataset_config=config.toml \
5
+ --output_dir=db-kohya-tuandao-folder \
6
+ --output_name=db-kohya-tuandao \
7
+ --save_model_as=safetensors \
8
+ --prior_loss_weight=1.0 \
9
+ --max_train_steps=400 \
10
+ --learning_rate=1e-6 \
11
+ --optimizer_type="AdamW8bit" \
12
+ --xformers \
13
+ --mixed_precision="fp16" \
14
+ --cache_latents \
15
+ --gradient_checkpointing
config.toml ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [general]
2
+ enable_bucket = true # Whether to use Aspect Ratio Bucketing
3
+
4
+ [[datasets]]
5
+ resolution = 512 # Training resolution
6
+ batch_size = 4 # Batch size
7
+
8
+ [[datasets.subsets]]
9
+ image_dir = '/workspace/sd-scripts/sks' # Specify the folder containing the training images
10
+ class_tokens = 'sks person'
11
+ num_repeats = 10 # Number of repetitions for training images
db-kohya-tuandao.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4dcb4dacf857285d2f13fa8c356f13804dbeed7d5fcf3d93f695fe211978cbbe
3
+ size 4097789094
script.sh ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!usr/bin/bash
2
+ accelerate launch --num_cpu_threads_per_process 1 train_db.py \
3
+ --pretrained_model_name_or_path="runwayml/stable-diffusion-v1-5" \
4
+ --dataset_config=config.toml \
5
+ --output_dir=db-kohya-tuandao-folder \
6
+ --output_name=db-kohya-tuandao \
7
+ --save_model_as=safetensors \
8
+ --prior_loss_weight=1.0 \
9
+ --max_train_steps=400 \
10
+ --learning_rate=1e-6 \
11
+ --optimizer_type="AdamW8bit" \
12
+ --xformers \
13
+ --mixed_precision="fp16" \
14
+ --cache_latents \
15
+ --gradient_checkpointing