Update doc
This commit is contained in:
parent
977ceec90e
commit
b0825446c9
26
README.md
26
README.md
@ -1,6 +1,6 @@
|
|||||||
# HOWTO
|
# HOWTO
|
||||||
|
|
||||||
https://note.com/kohya_ss/n/nee3ed1649fb6
|
This repo provide all the required config to run the Dreambooth version found in this note: https://note.com/kohya_ss/n/nee3ed1649fb6
|
||||||
|
|
||||||
|
|
||||||
## Required Dependencies
|
## Required Dependencies
|
||||||
@ -42,13 +42,35 @@ accelerate config:
|
|||||||
- fp16
|
- fp16
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Folders configuration
|
||||||
|
|
||||||
|
Refer to the note to understand how to create the folde structure. In short it should look like:
|
||||||
|
|
||||||
|
```
|
||||||
|
<wathever top folder name>
|
||||||
|
|- reg_<class>
|
||||||
|
|- <repeat count>_<prompt>
|
||||||
|
|- train_<class>
|
||||||
|
|- <repeat count>_<prompt>
|
||||||
|
```
|
||||||
|
|
||||||
|
Example for `sks dog`
|
||||||
|
|
||||||
|
```
|
||||||
|
my_sks_dog_dreambooth
|
||||||
|
|- reg_dog
|
||||||
|
|- 1_sks dog
|
||||||
|
|- train_dog
|
||||||
|
|- 20_sks dog
|
||||||
|
```
|
||||||
|
|
||||||
## Execution
|
## Execution
|
||||||
|
|
||||||
```
|
```
|
||||||
accelerate launch --num_cpu_threads_per_process 6 train_db_fixed_v6.py `
|
accelerate launch --num_cpu_threads_per_process 6 train_db_fixed_v6.py `
|
||||||
--pretrained_model_name_or_path="d:\models\v1-5-pruned.ckpt" `
|
--pretrained_model_name_or_path="d:\models\v1-5-pruned.ckpt" `
|
||||||
--train_data_dir="D:\dreambooth\train_bernard\train_man" `
|
--train_data_dir="D:\dreambooth\train_bernard\train_man" `
|
||||||
--reg_data_dir="D:\dreambooth\train_bernard\reg_man" `
|
--train_data_dir="D:\dreambooth\train_bernard\reg_man" `
|
||||||
--output_dir="D:\dreambooth\train_bernard" `
|
--output_dir="D:\dreambooth\train_bernard" `
|
||||||
--prior_loss_weight=1.0 `
|
--prior_loss_weight=1.0 `
|
||||||
--resolution=512 `
|
--resolution=512 `
|
||||||
|
Loading…
Reference in New Issue
Block a user