Browse Source

modify file path

pull/3905/head
Maruyama_Aya 1 year ago
parent
commit
4fc8bc68ac
  1. 8
      examples/images/dreambooth/colossalai.sh
  2. 6
      examples/images/dreambooth/dreambooth.sh
  3. 8
      examples/images/dreambooth/test_ci.sh

8
examples/images/dreambooth/colossalai.sh

@ -3,10 +3,10 @@ TRANSFORMERS_OFFLINE=1
DIFFUSERS_OFFLINE=1
torchrun --nproc_per_node 4 --standalone train_dreambooth_colossalai.py \
--pretrained_model_name_or_path="Path_to_your_model" \
--instance_data_dir="Path_to_your_training_image" \
--output_dir="Path_to_your_save_dir" \
--instance_prompt="your prompt" \
--pretrained_model_name_or_path="/data/dreambooth/diffuser/stable-diffusion-v1-4" \
--instance_data_dir="/data/dreambooth/Teyvat/data" \
--output_dir="./weight_output" \
--instance_prompt="a picture of a dog" \
--resolution=512 \
--plugin="gemini" \
--train_batch_size=1 \

6
examples/images/dreambooth/dreambooth.sh

@ -1,7 +1,7 @@
python train_dreambooth.py \
--pretrained_model_name_or_path= ## Your Model Path \
--instance_data_dir= ## Your Training Input Pics Path \
--output_dir="path-to-save-model" \
--pretrained_model_name_or_path="/data/dreambooth/diffuser/stable-diffusion-v1-4" \
--instance_data_dir="/data/dreambooth/Teyvat/data" \
--output_dir="./weight_output" \
--instance_prompt="a photo of a dog" \
--resolution=512 \
--train_batch_size=1 \

8
examples/images/dreambooth/test_ci.sh

@ -8,10 +8,10 @@ DIFFUSERS_OFFLINE=1
for plugin in "torch_ddp" "torch_ddp_fp16" "gemini" "low_level_zero"; do
torchrun --nproc_per_node 4 --standalone train_dreambooth_colossalai.py \
--pretrained_model_name_or_path="Your Pretrained Model Path" \
--instance_data_dir="Your Input Pics Path" \
--output_dir="path-to-save-model" \
--instance_prompt="your prompt" \
--pretrained_model_name_or_path="/data/dreambooth/diffuser/stable-diffusion-v1-4" \
--instance_data_dir="/data/dreambooth/Teyvat/data" \
--output_dir="./weight_output" \
--instance_prompt="a picture of a dog" \
--resolution=512 \
--plugin=$plugin \
--train_batch_size=1 \

Loading…
Cancel
Save