mrtuandao commited on
Commit
2929803
1 Parent(s): 347204f

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/tuan' # Specify the folder containing the training images
10
+ # caption_extension = '.caption' # Caption file extension; change this if using .txt
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=1600
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/tuan' # Specify the folder containing the training images
10
+ # caption_extension = '.caption' # Caption file extension; change this if using .txt
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:c66c51b0b91305d0f8fb2b2094f1bf68bf2c5c7804a84c33b2580954bb5b0a08
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=1600 \
10
+ --learning_rate=1e-6 \
11
+ --optimizer_type="AdamW8bit" \
12
+ --xformers \
13
+ --mixed_precision="fp16" \
14
+ --cache_latents \
15
+ --gradient_checkpointing