forked from JoePenna/Dreambooth-Stable-Diffusion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtrain.sh
33 lines (26 loc) · 895 Bytes
/
train.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
# Training
# This isn't used for training, just to help you remember what your trained into the model.
project_name="project_name"
# MAX STEPS
# How many steps do you want to train for?
max_training_steps=2000
# Match class_word to the category of the regularization images you chose above.
class_word="person" # typical uses are "man", "person", "woman"
# This is the unique token you are incorporating into the stable diffusion model.
token="freya556"
reg_data_root="regularization_images/person_ddim"
echo $token
rm -rf training_images/.ipynb_checkpoints
python "main.py" \
--base configs/stable-diffusion/v1-finetune_unfrozen.yaml \
-t \
--actual_resume "model.ckpt" \
--reg_data_root $reg_data_root \
-n $project_name \
--gpus 0, \
--data_root "training_images" \
--max_training_steps $max_training_steps \
--class_word $class_word \
--token $token \
--no-test