train.sh 1.12 KB
Newer Older
mashun1's avatar
mashun1 committed
1
2
3
4
5
6
7
8
#!/bin/bash

# 初始/恢复点模型路径
model_root="/home/vtryon/catvton_v0/pretrained_models/stable-diffusion-inpainting"
train_data_record_path="/home/vtryon/catvton_v0/datasets/train_data.jsonl"
eval_data_record_path="/home/vtryon/catvton_v0/datasets/eval_data.jsonl"
height=512
width=384
mashun1's avatar
mashun1 committed
9
vae_subfolder="vae"
mashun1's avatar
mashun1 committed
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
weight_dtype="bf16"
max_steps=32000
logging_steps=1000
global_steps=0
batch_size=8
gradient_accumulation_steps=4
extra_condition_key="openpose"
eval_output_dir=${max_steps}_${extra_condition_key}
checkpoint_dir=${max_steps}_${extra_condition_key}


accelerate launch train.py \
--model_root=${model_root} \
--train_data_record_path=${train_data_record_path} \
--eval_data_record_path=${eval_data_record_path} \
--height=${height} \
--width=${width} \
--eval_output_dir=${eval_output_dir} \
--checkpoint_dir=${checkpoint_dir} \
--vae_subfolder=${vae_subfolder} \
--weight_dtype=${weight_dtype} \
--max_steps=${max_steps} \
--logging_steps=${logging_steps} \
--global_steps=${global_steps} \
--batch_size=${batch_size} \
--gradient_accumulation_steps=${gradient_accumulation_steps} \
--extra_condition_key=${extra_condition_key}