|
#!/bin/bash |
|
|
|
|
|
multi_gpu=0 |
|
config_file="./toml/default.toml" |
|
sample_prompts="./toml/sample_prompts.txt" |
|
utf8=1 |
|
|
|
|
|
|
|
export HF_HOME="huggingface" |
|
export TF_CPP_MIN_LOG_LEVEL=3 |
|
|
|
extArgs=() |
|
launchArgs=() |
|
|
|
if [[ $multi_gpu == 1 ]]; then launchArgs+=("--multi_gpu"); fi |
|
if [[ $utf8 == 1 ]]; then export PYTHONUTF8=1; fi |
|
|
|
|
|
python -m accelerate.commands.launch ${launchArgs[@]} --num_cpu_threads_per_process=8 "./sd-scripts/train_network.py" \ |
|
--config_file=$config_file \ |
|
--sample_prompts=$sample_prompts \ |
|
${extArgs[@]} |
|
|