-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathsketch_finetune_base.sh
38 lines (32 loc) · 2.43 KB
/
sketch_finetune_base.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
export CUDA_LAUNCH_BLOCKING=1
export LOGDIR=/mnt/blob/exp/PITI/coco-edge/coco-64-stage1/
export PYTHONPATH=$PYTHONPATH:$(pwd)
NUM_GPUS=8
MODEL_FLAGS="--learn_sigma True --uncond_p 0. --image_size 64 --finetune_decoder False"
TRAIN_FLAGS="--lr 3.5e-5 --batch_size 16 --schedule_sampler loss-second-moment --model_path ./ckpt/base.pt --lr_anneal_steps 200000"
DIFFUSION_FLAGS=""
SAMPLE_FLAGS="--num_samples 2 --sample_c 1"
DATASET_FLAGS="--data_dir ./dataset/COCOSTUFF_train.txt --val_data_dir ./dataset/COCOSTUFF_val.txt --mode coco-edge"
mpiexec -n $NUM_GPUS --allow-run-as-root python ./image_train.py $MODEL_FLAGS $TRAIN_FLAGS $SAMPLE_FLAGS $DIFFUSION_FLAGS $DATASET_FLAGS
# python ./image_train.py $MODEL_FLAGS $TRAIN_FLAGS $SAMPLE_FLAGS $DIFFUSION_FLAGS $DATASET_FLAGS
export CUDA_LAUNCH_BLOCKING=1
export LOGDIR=/mnt/blob/exp/PITI/coco-edge/coco-64-stage1-cont/
export PYTHONPATH=$PYTHONPATH:$(pwd)
NUM_GPUS=8
MODEL_FLAGS="--learn_sigma True --uncond_p 0.2 --image_size 64 --finetune_decoder False --encoder_path /mnt/blob/exp/PITI/coco-edge/coco-64-stage1/checkpoints/ema_0.9999_200000.pt"
TRAIN_FLAGS="--lr 2e-5 --batch_size 16 --schedule_sampler loss-second-moment --model_path ./ckpt/base.pt --lr_anneal_steps 60000"
DIFFUSION_FLAGS=""
SAMPLE_FLAGS="--num_samples 2 --sample_c 1"
DATASET_FLAGS="--data_dir ./dataset/COCOSTUFF_train.txt --val_data_dir ./dataset/COCOSTUFF_val.txt --mode coco-edge"
mpiexec -n $NUM_GPUS --allow-run-as-root python ./image_train.py $MODEL_FLAGS $TRAIN_FLAGS $SAMPLE_FLAGS $DIFFUSION_FLAGS $DATASET_FLAGS
# python ./image_train.py $MODEL_FLAGS $TRAIN_FLAGS $SAMPLE_FLAGS $DIFFUSION_FLAGS $DATASET_FLAGS
export LOGDIR=/mnt/blob/exp/PITI/coco-edge/coco-64-stage2-decoder/
export PYTHONPATH=$PYTHONPATH:$(pwd)
NUM_GPUS=8
MODEL_FLAGS="--learn_sigma True --uncond_p 0.2 --image_size 64 --finetune_decoder True"
TRAIN_FLAGS="--lr 3.5e-5 --batch_size 16 --schedule_sampler loss-second-moment --model_path ./ckpt/base.pt --encoder_path /mnt/blob/exp/PITI/coco-edge/coco-64-stage1-cont/checkpoints/ema_0.9999_060000.pt"
DIFFUSION_FLAGS=""
SAMPLE_FLAGS="--num_samples 2 --sample_c 2.5"
DATASET_FLAGS="--data_dir ./dataset/COCOSTUFF_train.txt --val_data_dir ./dataset/COCOSTUFF_val.txt --mode coco-edge"
mpiexec -n $NUM_GPUS --allow-run-as-root python ./image_train.py $MODEL_FLAGS $TRAIN_FLAGS $SAMPLE_FLAGS $DIFFUSION_FLAGS $DATASET_FLAGS
# python ./image_train.py $MODEL_FLAGS $TRAIN_FLAGS $SAMPLE_FLAGS $DIFFUSION_FLAGS $DATASET_FLAGS