scripts/generate_val.sh
#!/bin/bash
set -ex

source .venv/bin/activate
which python
python -V

nvidia-smi

echo "Started: $(date)"

for step in 1 2
do
    python generate.py \
        --pretrained_model_or_path experiments/dreambooth/00000-0400-dog6-lr2-ckpt400 \
        --exp_dir experiments/ddpo/00116-000${step}-dog6-s1k-an20_70-step${step}of2 \
        --concept "sks dog" \
        --prompt_source eval_set \
        --eval_set live_long \
        --samples_per_prompt 10 \
        --prompts_per_batch 5
    echo "Finished (dog6 ${step} -20_70): $(date)"

    python generate.py \
        --pretrained_model_or_path experiments/dreambooth/00000-0400-dog6-lr2-ckpt400 \
        --exp_dir experiments/ddpo/00125-000${step}-dog6-s1k-an10_80-step${step}of2 \
        --concept "sks dog" \
        --prompt_source eval_set \
        --eval_set live_long \
        --samples_per_prompt 10 \
        --prompts_per_batch 5
    echo "Finished (dog6 ${step} -10_80): $(date)"

    python generate.py \
        --pretrained_model_or_path experiments/dreambooth/00000-0400-dog6-lr2-ckpt400 \
        --exp_dir experiments/ddpo/00128-000${step}-dog6-s1k-a0_90-step${step}of2 \
        --concept "sks dog" \
        --prompt_source eval_set \
        --eval_set live_long \
        --samples_per_prompt 10 \
        --prompts_per_batch 5
    echo "Finished (dog6 ${step} 0_90): $(date)"

    python generate.py \
        --pretrained_model_or_path experiments/dreambooth/00000-0400-dog6-lr2-ckpt400 \
        --exp_dir experiments/ddpo/00115-000${step}-dog6-s1k-a20_70-step${step}of2 \
        --concept "sks dog" \
        --prompt_source eval_set \
        --eval_set live_long \
        --samples_per_prompt 10 \
        --prompts_per_batch 5
    echo "Finished (dog6 ${step} 20_70): $(date)"

    for angle in "-20_70" "-10_80" "0_90" "20_70"
    do
        python generate.py \
            --pretrained_model_or_path experiments/dreambooth/00003-b830-backpack \
            --exp_dir experiments/ddpo/00129-000${step}-backpack-s1k-a${angle}-step${step}of2 \
            --concept "sks backpack" \
            --prompt_source eval_set \
            --eval_set object_long \
            --samples_per_prompt 10 \
            --prompts_per_batch 5
        echo "Finished (backpack $step $angle): $(date)"
        python generate.py \
            --pretrained_model_or_path experiments/dreambooth/00004-73dd-clock \
            --exp_dir experiments/ddpo/00130-000${step}-clock-s1k-a${angle}-step${step}of2 \
            --concept "sks clock" \
            --prompt_source eval_set \
            --eval_set object_long \
            --samples_per_prompt 10 \
            --prompts_per_batch 5
        echo "Finished (clock $step $angle): $(date)"
        python generate.py \
            --pretrained_model_or_path experiments/dreambooth/00005-883a-backpack_dog \
            --exp_dir experiments/ddpo/00131-000${step}-backpack_dog-s1k-a${angle}-step${step}of2 \
            --concept "sks backpack" \
            --prompt_source eval_set \
            --eval_set object_long \
            --samples_per_prompt 10 \
            --prompts_per_batch 5
        echo "Finished (backpack_dog $step $angle): $(date)"
        python generate.py \
            --pretrained_model_or_path experiments/dreambooth/00006-200b-bear_plushie \
            --exp_dir experiments/ddpo/00132-000${step}-bear_plushie-s1k-a${angle}-step${step}of2 \
            --concept "sks stuffed animal" \
            --prompt_source eval_set \
            --eval_set object_long \
            --samples_per_prompt 10 \
            --prompts_per_batch 5
        echo "Finished (bear_plushie $step $angle): $(date)"
        python generate.py \
            --pretrained_model_or_path experiments/dreambooth/00007-e006-berry_bowl \
            --exp_dir experiments/ddpo/00133-000${step}-berry_bowl-s1k-a${angle}-step${step}of2 \
            --concept "sks bowl" \
            --prompt_source eval_set \
            --eval_set object_long \
            --samples_per_prompt 10 \
            --prompts_per_batch 5
        echo "Finished (berry_bowl $step $angle): $(date)"
        python generate.py \
            --pretrained_model_or_path experiments/dreambooth/00008-6b3c-can \
            --exp_dir experiments/ddpo/00134-000${step}-can-s1k-a${angle}-step${step}of2 \
            --concept "sks can" \
            --prompt_source eval_set \
            --eval_set object_long \
            --samples_per_prompt 10 \
            --prompts_per_batch 5
        echo "Finished (can $step $angle): $(date)"
        python generate.py \
            --pretrained_model_or_path experiments/dreambooth/00009-8ffe-candle \
            --exp_dir experiments/ddpo/00135-000${step}-candle-s1k-a${angle}-step${step}of2 \
            --concept "sks candle" \
            --prompt_source eval_set \
            --eval_set object_long \
            --samples_per_prompt 10 \
            --prompts_per_batch 5
        echo "Finished (candle $step $angle): $(date)"
        python generate.py \
            --pretrained_model_or_path experiments/dreambooth/00010-c7dd-cat \
            --exp_dir experiments/ddpo/00136-000${step}-cat-s1k-a${angle}-step${step}of2 \
            --concept "sks cat" \
            --prompt_source eval_set \
            --eval_set live_long \
            --samples_per_prompt 10 \
            --prompts_per_batch 5
        echo "Finished (cat $step $angle): $(date)"
        python generate.py \
            --pretrained_model_or_path experiments/dreambooth/00011-dc52-cat2 \
            --exp_dir experiments/ddpo/00137-000${step}-cat2-s1k-a${angle}-step${step}of2 \
            --concept "sks cat" \
            --prompt_source eval_set \
            --eval_set live_long \
            --samples_per_prompt 10 \
            --prompts_per_batch 5
        echo "Finished (cat2 $step $angle): $(date)"
        python generate.py \
            --pretrained_model_or_path experiments/dreambooth/00012-6713-colorful_sneaker \
            --exp_dir experiments/ddpo/00138-000${step}-colorful_sneaker-s1k-a${angle}-step${step}of2 \
            --concept "sks sneaker" \
            --prompt_source eval_set \
            --eval_set object_long \
            --samples_per_prompt 10 \
            --prompts_per_batch 5
        echo "Finished (colorful_sneaker $step $angle): $(date)"
        python generate.py \
            --pretrained_model_or_path experiments/dreambooth/00013-40a1-dog \
            --exp_dir experiments/ddpo/00139-000${step}-dog-s1k-a${angle}-step${step}of2 \
            --concept "sks dog" \
            --prompt_source eval_set \
            --eval_set live_long \
            --samples_per_prompt 10 \
            --prompts_per_batch 5
        echo "Finished (dog $step $angle): $(date)"
        python generate.py \
            --pretrained_model_or_path experiments/dreambooth/00014-ed64-dog2 \
            --exp_dir experiments/ddpo/00140-000${step}-dog2-s1k-a${angle}-step${step}of2 \
            --concept "sks dog" \
            --prompt_source eval_set \
            --eval_set live_long \
            --samples_per_prompt 10 \
            --prompts_per_batch 5
        echo "Finished (dog2 $step $angle): $(date)"
        python generate.py \
            --pretrained_model_or_path experiments/dreambooth/00015-74cc-dog3 \
            --exp_dir experiments/ddpo/00141-000${step}-dog3-s1k-a${angle}-step${step}of2 \
            --concept "sks dog" \
            --prompt_source eval_set \
            --eval_set live_long \
            --samples_per_prompt 10 \
            --prompts_per_batch 5
        echo "Finished (dog3 $step $angle): $(date)"
        python generate.py \
            --pretrained_model_or_path experiments/dreambooth/00016-4a07-dog5 \
            --exp_dir experiments/ddpo/00142-000${step}-dog5-s1k-a${angle}-step${step}of2 \
            --concept "sks dog" \
            --prompt_source eval_set \
            --eval_set live_long \
            --samples_per_prompt 10 \
            --prompts_per_batch 5
        echo "Finished (dog5 $step $angle): $(date)"
        python generate.py \
            --pretrained_model_or_path experiments/dreambooth/00017-f130-dog7 \
            --exp_dir experiments/ddpo/00143-000${step}-dog7-s1k-a${angle}-step${step}of2 \
            --concept "sks dog" \
            --prompt_source eval_set \
            --eval_set live_long \
            --samples_per_prompt 10 \
            --prompts_per_batch 5
        echo "Finished (dog7 $step $angle): $(date)"
        python generate.py \
            --pretrained_model_or_path experiments/dreambooth/00018-135c-monster_toy \
            --exp_dir experiments/ddpo/00144-000${step}-monster_toy-s1k-a${angle}-step${step}of2 \
            --concept "sks toy" \
            --prompt_source eval_set \
            --eval_set object_long \
            --samples_per_prompt 10 \
            --prompts_per_batch 5
        echo "Finished (monster_toy $step $angle): $(date)"
        python generate.py \
            --pretrained_model_or_path experiments/dreambooth/00019-e75e-pink_sunglasses \
            --exp_dir experiments/ddpo/00145-000${step}-pink_sunglasses-s1k-a${angle}-step${step}of2 \
            --concept "sks glasses" \
            --prompt_source eval_set \
            --eval_set object_long \
            --samples_per_prompt 10 \
            --prompts_per_batch 5
        echo "Finished (pink_sunglasses $step $angle): $(date)"
        python generate.py \
            --pretrained_model_or_path experiments/dreambooth/00020-a604-vase \
            --exp_dir experiments/ddpo/00146-000${step}-vase-s1k-a${angle}-step${step}of2 \
            --concept "sks vase" \
            --prompt_source eval_set \
            --eval_set object_long \
            --samples_per_prompt 10 \
            --prompts_per_batch 5
        echo "Finished (vase $step $angle): $(date)"
        python generate.py \
            --pretrained_model_or_path experiments/dreambooth/00021-dc13-grey_sloth_plushie \
            --exp_dir experiments/ddpo/00147-000${step}-grey_sloth_plushie-s1k-a${angle}-step${step}of2 \
            --concept "sks stuffed animal" \
            --prompt_source eval_set \
            --eval_set object_long \
            --samples_per_prompt 10 \
            --prompts_per_batch 5
        echo "Finished (grey_sloth_plushie $step $angle): $(date)"
        python generate.py \
            --pretrained_model_or_path experiments/dreambooth/00022-4105-poop_emoji \
            --exp_dir experiments/ddpo/00148-000${step}-poop_emoji-s1k-a${angle}-step${step}of2 \
            --concept "sks toy" \
            --prompt_source eval_set \
            --eval_set object_long \
            --samples_per_prompt 10 \
            --prompts_per_batch 5
        echo "Finished (poop_emoji $step $angle): $(date)"
        python generate.py \
            --pretrained_model_or_path experiments/dreambooth/00023-821e-dog8 \
            --exp_dir experiments/ddpo/00149-000${step}-dog8-s1k-a${angle}-step${step}of2 \
            --concept "sks dog" \
            --prompt_source eval_set \
            --eval_set live_long \
            --samples_per_prompt 10 \
            --prompts_per_batch 5
        echo "Finished (dog8 $step $angle): $(date)"
        python generate.py \
            --pretrained_model_or_path experiments/dreambooth/00024-9001-duck_toy \
            --exp_dir experiments/ddpo/00150-000${step}-duck_toy-s1k-a${angle}-step${step}of2 \
            --concept "sks toy" \
            --prompt_source eval_set \
            --eval_set object_long \
            --samples_per_prompt 10 \
            --prompts_per_batch 5
        echo "Finished (duck_toy $step $angle): $(date)"
        python generate.py \
            --pretrained_model_or_path experiments/dreambooth/00025-451b-fancy_boot \
            --exp_dir experiments/ddpo/00151-000${step}-fancy_boot-s1k-a${angle}-step${step}of2 \
            --concept "sks boot" \
            --prompt_source eval_set \
            --eval_set object_long \
            --samples_per_prompt 10 \
            --prompts_per_batch 5
        echo "Finished (fancy_boot $step $angle): $(date)"
        python generate.py \
            --pretrained_model_or_path experiments/dreambooth/00026-ff62-rc_car \
            --exp_dir experiments/ddpo/00152-000${step}-rc_car-s1k-a${angle}-step${step}of2 \
            --concept "sks toy" \
            --prompt_source eval_set \
            --eval_set object_long \
            --samples_per_prompt 10 \
            --prompts_per_batch 5
        echo "Finished (rc_car $step $angle): $(date)"
        python generate.py \
            --pretrained_model_or_path experiments/dreambooth/00027-051a-red_cartoon \
            --exp_dir experiments/ddpo/00153-000${step}-red_cartoon-s1k-a${angle}-step${step}of2 \
            --concept "sks cartoon" \
            --prompt_source eval_set \
            --eval_set object_long \
            --samples_per_prompt 10 \
            --prompts_per_batch 5
        echo "Finished (red_cartoon $step $angle): $(date)"
    done
done

echo "Finished all!"
