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

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

nvidia-smi

echo "Started: $(date)"

for angle in "-20_70" "-10_80" "0_90"
do
    for step in 1 2
    do
        # python generate_svd_full.py \
        #     --pretrained_model_or_path stabilityai/stable-diffusion-2-base \
        #     --base_svd_ckpt experiments/svddiff/00008-ad9b-dog6_SVDDiff/checkpoint-1600 \
        #     --exp_dir experiments/svddiff_ddpo_full/00001-000${step}-dog6-s1k-a${angle}-step${step}of2 \
        #     --concept "sks dog" \
        #     --prompt_source eval_set \
        #     --eval_set live_all \
        #     --samples_per_prompt 10 \
        #     --prompts_per_batch 8
        # echo "Finished (dog6): $(date)"

        # python generate_svd_full.py \
        #     --pretrained_model_or_path stabilityai/stable-diffusion-2-base \
        #     --base_svd_ckpt experiments/svddiff/00014-96c5-wolf_plushie_SVDDiff/checkpoint-1600 \
        #     --exp_dir experiments/svddiff_ddpo_full/00002-000${step}-wolf_plushie-s1k-a${angle}-step${step}of2 \
        #     --concept "sks stuffed animal" \
        #     --prompt_source eval_set \
        #     --eval_set object_all \
        #     --samples_per_prompt 10 \
        #     --prompts_per_batch 8
        # echo "Finished (wolf_plushie): $(date)"

        # python generate_svd_full.py \
        #     --pretrained_model_or_path stabilityai/stable-diffusion-2-base \
        #     --base_svd_ckpt experiments/svddiff/00008-379a-dog5_SVDDiff/checkpoint-1600 \
        #     --exp_dir experiments/svddiff_ddpo_full/00003-000${step}-dog5-s1k-a${angle}-step${step}of2 \
        #     --concept "sks dog" \
        #     --prompt_source eval_set \
        #     --eval_set live_all \
        #     --samples_per_prompt 10 \
        #     --prompts_per_batch 8
        # echo "Finished (dog5): $(date)"

        # python generate_svd_full.py \
        #     --pretrained_model_or_path stabilityai/stable-diffusion-2-base \
        #     --base_svd_ckpt experiments/svddiff/00001-598d-backpack_dog_SVDDiff/checkpoint-1600 \
        #     --exp_dir experiments/svddiff_ddpo_full/00004-000${step}-backpack_dog-s1k-a${angle}-step${step}of2 \
        #     --concept "sks backpack" \
        #     --prompt_source eval_set \
        #     --eval_set object_all \
        #     --samples_per_prompt 10 \
        #     --prompts_per_batch 8
        # echo "Finished (backpack_dog): $(date)"

        # python generate_svd_full.py \
        #     --pretrained_model_or_path stabilityai/stable-diffusion-2-base \
        #     --base_svd_ckpt experiments/svddiff/00001-700f-backpack_SVDDiff/checkpoint-1600 \
        #     --exp_dir experiments/svddiff_ddpo_full/00005-000${step}-backpack-s1k-a${angle}-step${step}of2 \
        #     --concept "sks backpack" \
        #     --prompt_source eval_set \
        #     --eval_set object_all \
        #     --samples_per_prompt 10 \
        #     --prompts_per_batch 8
        # echo "Finished (backpack): $(date)"

        # python generate_svd_full.py \
        #     --pretrained_model_or_path stabilityai/stable-diffusion-2-base \
        #     --base_svd_ckpt experiments/svddiff/00001-4242-bear_plushie_SVDDiff/checkpoint-1600 \
        #     --exp_dir experiments/svddiff_ddpo_full/00006-000${step}-bear_plushie-s1k-a${angle}-step${step}of2 \
        #     --concept "sks stuffed animal" \
        #     --prompt_source eval_set \
        #     --eval_set object_all \
        #     --samples_per_prompt 10 \
        #     --prompts_per_batch 8
        # echo "Finished (bear_plushie): $(date)"

        # python generate_svd_full.py \
        #     --pretrained_model_or_path stabilityai/stable-diffusion-2-base \
        #     --base_svd_ckpt experiments/svddiff/00001-b4c6-berry_bowl_SVDDiff/checkpoint-1600 \
        #     --exp_dir experiments/svddiff_ddpo_full/00007-000${step}-berry_bowl-s1k-a${angle}-step${step}of2 \
        #     --concept "sks bowl" \
        #     --prompt_source eval_set \
        #     --eval_set object_all \
        #     --samples_per_prompt 10 \
        #     --prompts_per_batch 8
        # echo "Finished (berry_bowl): $(date)"

        # python generate_svd_full.py \
        #     --pretrained_model_or_path stabilityai/stable-diffusion-2-base \
        #     --base_svd_ckpt experiments/svddiff/00002-3ba5-can_SVDDiff/checkpoint-1600 \
        #     --exp_dir experiments/svddiff_ddpo_full/00008-000${step}-can-s1k-a${angle}-step${step}of2 \
        #     --concept "sks can" \
        #     --prompt_source eval_set \
        #     --eval_set object_all \
        #     --samples_per_prompt 10 \
        #     --prompts_per_batch 8
        # echo "Finished (can): $(date)"

        # python generate_svd_full.py \
        #     --pretrained_model_or_path stabilityai/stable-diffusion-2-base \
        #     --base_svd_ckpt experiments/svddiff/00003-886c-cat_SVDDiff/checkpoint-1600 \
        #     --exp_dir experiments/svddiff_ddpo_full/00009-000${step}-cat-s1k-a${angle}-step${step}of2 \
        #     --concept "sks cat" \
        #     --prompt_source eval_set \
        #     --eval_set live_all \
        #     --samples_per_prompt 10 \
        #     --prompts_per_batch 8
        # echo "Finished (cat): $(date)"

        # python generate_svd_full.py \
        #     --pretrained_model_or_path stabilityai/stable-diffusion-2-base \
        #     --base_svd_ckpt experiments/svddiff/00003-2397-candle_SVDDiff/checkpoint-1600 \
        #     --exp_dir experiments/svddiff_ddpo_full/00010-000${step}-candle-s1k-a${angle}-step${step}of2 \
        #     --concept "sks candle" \
        #     --prompt_source eval_set \
        #     --eval_set object_all \
        #     --samples_per_prompt 10 \
        #     --prompts_per_batch 8
        # echo "Finished (candle): $(date)"

        # python generate_svd_full.py \
        #     --pretrained_model_or_path stabilityai/stable-diffusion-2-base \
        #     --base_svd_ckpt experiments/svddiff/00004-1d82-cat2_SVDDiff/checkpoint-1600 \
        #     --exp_dir experiments/svddiff_ddpo_full/00011-000${step}-cat2-s1k-a${angle}-step${step}of2 \
        #     --concept "sks cat" \
        #     --prompt_source eval_set \
        #     --eval_set live_all \
        #     --samples_per_prompt 10 \
        #     --prompts_per_batch 8
        # echo "Finished (cat2): $(date)"

        # python generate_svd_full.py \
        #     --pretrained_model_or_path stabilityai/stable-diffusion-2-base \
        #     --base_svd_ckpt experiments/svddiff/00005-c1a8-clock_SVDDiff/checkpoint-1600 \
        #     --exp_dir experiments/svddiff_ddpo_full/00012-000${step}-clock-s1k-a${angle}-step${step}of2 \
        #     --concept "sks clock" \
        #     --prompt_source eval_set \
        #     --eval_set object_all \
        #     --samples_per_prompt 10 \
        #     --prompts_per_batch 8
        # echo "Finished (clock): $(date)"

        # python generate_svd_full.py \
        #     --pretrained_model_or_path stabilityai/stable-diffusion-2-base \
        #     --base_svd_ckpt experiments/svddiff/00005-e73a-colorful_sneaker_SVDDiff/checkpoint-1600 \
        #     --exp_dir experiments/svddiff_ddpo_full/00013-000${step}-colorful_sneaker-s1k-a${angle}-step${step}of2 \
        #     --concept "sks sneaker" \
        #     --prompt_source eval_set \
        #     --eval_set object_all \
        #     --samples_per_prompt 10 \
        #     --prompts_per_batch 8
        # echo "Finished (colorful_sneaker): $(date)"

        # python generate_svd_full.py \
        #     --pretrained_model_or_path stabilityai/stable-diffusion-2-base \
        #     --base_svd_ckpt experiments/svddiff/00006-0f0b-dog3_SVDDiff/checkpoint-1600 \
        #     --exp_dir experiments/svddiff_ddpo_full/00014-000${step}-dog3-s1k-a${angle}-step${step}of2 \
        #     --concept "sks dog" \
        #     --prompt_source eval_set \
        #     --eval_set live_all \
        #     --samples_per_prompt 10 \
        #     --prompts_per_batch 8
        # echo "Finished (dog3): $(date)"

        # python generate_svd_full.py \
        #     --pretrained_model_or_path stabilityai/stable-diffusion-2-base \
        #     --base_svd_ckpt experiments/svddiff/00006-8bd8-dog_SVDDiff/checkpoint-1600 \
        #     --exp_dir experiments/svddiff_ddpo_full/00015-000${step}-dog-s1k-a${angle}-step${step}of2 \
        #     --concept "sks dog" \
        #     --prompt_source eval_set \
        #     --eval_set live_all \
        #     --samples_per_prompt 10 \
        #     --prompts_per_batch 8
        # echo "Finished (dog): $(date)"

        # python generate_svd_full.py \
        #     --pretrained_model_or_path stabilityai/stable-diffusion-2-base \
        #     --base_svd_ckpt experiments/svddiff/00006-a92d-dog2_SVDDiff/checkpoint-1600 \
        #     --exp_dir experiments/svddiff_ddpo_full/00016-000${step}-dog2-s1k-a${angle}-step${step}of2 \
        #     --concept "sks dog" \
        #     --prompt_source eval_set \
        #     --eval_set live_all \
        #     --samples_per_prompt 10 \
        #     --prompts_per_batch 8
        # echo "Finished (dog2): $(date)"

        # python generate_svd_full.py \
        #     --pretrained_model_or_path stabilityai/stable-diffusion-2-base \
        #     --base_svd_ckpt experiments/svddiff/00007-3f2e-fancy_boot_SVDDiff/checkpoint-1600 \
        #     --exp_dir experiments/svddiff_ddpo_full/00017-000${step}-fancy_boot-s1k-a${angle}-step${step}of2 \
        #     --concept "sks boot" \
        #     --prompt_source eval_set \
        #     --eval_set object_all \
        #     --samples_per_prompt 10 \
        #     --prompts_per_batch 8
        # echo "Finished (fancy_boot): $(date)"

        # python generate_svd_full.py \
        #     --pretrained_model_or_path stabilityai/stable-diffusion-2-base \
        #     --base_svd_ckpt experiments/svddiff/00007-4d17-duck_toy_SVDDiff/checkpoint-1600 \
        #     --exp_dir experiments/svddiff_ddpo_full/00018-000${step}-duck_toy-s1k-a${angle}-step${step}of2 \
        #     --concept "sks toy" \
        #     --prompt_source eval_set \
        #     --eval_set object_all \
        #     --samples_per_prompt 10 \
        #     --prompts_per_batch 8
        # echo "Finished (duck_toy): $(date)"

        # python generate_svd_full.py \
        #     --pretrained_model_or_path stabilityai/stable-diffusion-2-base \
        #     --base_svd_ckpt experiments/svddiff/00007-85f6-grey_sloth_plushie_SVDDiff/checkpoint-1600 \
        #     --exp_dir experiments/svddiff_ddpo_full/00019-000${step}-grey_sloth_plushie-s1k-a${angle}-step${step}of2 \
        #     --concept "sks stuffed animal" \
        #     --prompt_source eval_set \
        #     --eval_set object_all \
        #     --samples_per_prompt 10 \
        #     --prompts_per_batch 8
        # echo "Finished (grey_sloth_plushie): $(date)"

        # python generate_svd_full.py \
        #     --pretrained_model_or_path stabilityai/stable-diffusion-2-base \
        #     --base_svd_ckpt experiments/svddiff/00007-6832-dog8_SVDDiff/checkpoint-1600 \
        #     --exp_dir experiments/svddiff_ddpo_full/00020-000${step}-dog8-s1k-a${angle}-step${step}of2 \
        #     --concept "sks dog" \
        #     --prompt_source eval_set \
        #     --eval_set live_all \
        #     --samples_per_prompt 10 \
        #     --prompts_per_batch 8
        # echo "Finished (dog8): $(date)"

        # python generate_svd_full.py \
        #     --pretrained_model_or_path stabilityai/stable-diffusion-2-base \
        #     --base_svd_ckpt experiments/svddiff/00007-8685-dog7_SVDDiff/checkpoint-1600 \
        #     --exp_dir experiments/svddiff_ddpo_full/00021-000${step}-dog7-s1k-a${angle}-step${step}of2 \
        #     --concept "sks dog" \
        #     --prompt_source eval_set \
        #     --eval_set live_all \
        #     --samples_per_prompt 10 \
        #     --prompts_per_batch 8
        # echo "Finished (dog7): $(date)"

        # python generate_svd_full.py \
        #     --pretrained_model_or_path stabilityai/stable-diffusion-2-base \
        #     --base_svd_ckpt experiments/svddiff/00009-89a2-monster_toy_SVDDiff/checkpoint-1600 \
        #     --exp_dir experiments/svddiff_ddpo_full/00022-000${step}-monster_toy-s1k-a${angle}-step${step}of2 \
        #     --concept "sks toy" \
        #     --prompt_source eval_set \
        #     --eval_set object_all \
        #     --samples_per_prompt 10 \
        #     --prompts_per_batch 8
        # echo "Finished (monster_toy): $(date)"

        # python generate_svd_full.py \
        #     --pretrained_model_or_path stabilityai/stable-diffusion-2-base \
        #     --base_svd_ckpt experiments/svddiff/00010-6be8-poop_emoji_SVDDiff/checkpoint-1600 \
        #     --exp_dir experiments/svddiff_ddpo_full/00023-000${step}-poop_emoji-s1k-a${angle}-step${step}of2 \
        #     --concept "sks toy" \
        #     --prompt_source eval_set \
        #     --eval_set object_all \
        #     --samples_per_prompt 10 \
        #     --prompts_per_batch 8
        # echo "Finished (poop_emoji): $(date)"

        # python generate_svd_full.py \
        #     --pretrained_model_or_path stabilityai/stable-diffusion-2-base \
        #     --base_svd_ckpt experiments/svddiff/00010-6c09-rc_car_SVDDiff/checkpoint-1600 \
        #     --exp_dir experiments/svddiff_ddpo_full/00024-000${step}-rc_car-s1k-a${angle}-step${step}of2 \
        #     --concept "sks toy" \
        #     --prompt_source eval_set \
        #     --eval_set object_all \
        #     --samples_per_prompt 10 \
        #     --prompts_per_batch 8
        # echo "Finished (rc_car): $(date)"

        # python generate_svd_full.py \
        #     --pretrained_model_or_path stabilityai/stable-diffusion-2-base \
        #     --base_svd_ckpt experiments/svddiff/00010-c096-red_cartoon_SVDDiff/checkpoint-1600 \
        #     --exp_dir experiments/svddiff_ddpo_full/00025-000${step}-red_cartoon-s1k-a${angle}-step${step}of2 \
        #     --concept "sks cartoon" \
        #     --prompt_source eval_set \
        #     --eval_set object_all \
        #     --samples_per_prompt 10 \
        #     --prompts_per_batch 8
        # echo "Finished (red_cartoon): $(date)"

        # python generate_svd_full.py \
        #     --pretrained_model_or_path stabilityai/stable-diffusion-2-base \
        #     --base_svd_ckpt experiments/svddiff/00010-de57-pink_sunglasses_SVDDiff/checkpoint-1600 \
        #     --exp_dir experiments/svddiff_ddpo_full/00026-000${step}-pink_sunglasses-s1k-a${angle}-step${step}of2 \
        #     --concept "sks glasses" \
        #     --prompt_source eval_set \
        #     --eval_set object_all \
        #     --samples_per_prompt 10 \
        #     --prompts_per_batch 8
        # echo "Finished (pink_sunglasses): $(date)"

        # python generate_svd_full.py \
        #     --pretrained_model_or_path stabilityai/stable-diffusion-2-base \
        #     --base_svd_ckpt experiments/svddiff/00011-49d5-shiny_sneaker_SVDDiff/checkpoint-1600 \
        #     --exp_dir experiments/svddiff_ddpo_full/00027-000${step}-shiny_sneaker-s1k-a${angle}-step${step}of2 \
        #     --concept "sks sneaker" \
        #     --prompt_source eval_set \
        #     --eval_set object_all \
        #     --samples_per_prompt 10 \
        #     --prompts_per_batch 8
        # echo "Finished (shiny_sneaker): $(date)"

        # python generate_svd_full.py \
        #     --pretrained_model_or_path stabilityai/stable-diffusion-2-base \
        #     --base_svd_ckpt experiments/svddiff/00011-56ae-robot_toy_SVDDiff/checkpoint-1600 \
        #     --exp_dir experiments/svddiff_ddpo_full/00028-000${step}-robot_toy-s1k-a${angle}-step${step}of2 \
        #     --concept "sks toy" \
        #     --prompt_source eval_set \
        #     --eval_set object_all \
        #     --samples_per_prompt 10 \
        #     --prompts_per_batch 8
        # echo "Finished (robot_toy): $(date)"

        # python generate_svd_full.py \
        #     --pretrained_model_or_path stabilityai/stable-diffusion-2-base \
        #     --base_svd_ckpt experiments/svddiff/00012-7f41-teapot_SVDDiff/checkpoint-1600 \
        #     --exp_dir experiments/svddiff_ddpo_full/00029-000${step}-teapot-s1k-a${angle}-step${step}of2 \
        #     --concept "sks teapot" \
        #     --prompt_source eval_set \
        #     --eval_set object_all \
        #     --samples_per_prompt 10 \
        #     --prompts_per_batch 8
        # echo "Finished (teapot): $(date)"

        python generate_svd_full.py \
            --pretrained_model_or_path stabilityai/stable-diffusion-2-base \
            --base_svd_ckpt experiments/svddiff/00013-d48d-vase_SVDDiff/checkpoint-1600 \
            --exp_dir experiments/svddiff_ddpo_full/00030-000${step}-vase-s1k-a${angle}-step${step}of2 \
            --concept "sks vase" \
            --prompt_source eval_set \
            --eval_set object_all \
            --samples_per_prompt 10 \
            --prompts_per_batch 8
        echo "Finished (vase): $(date)"
    done
done