-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_st3d_study_layout_train_sample.sh
More file actions
34 lines (30 loc) · 1.66 KB
/
run_st3d_study_layout_train_sample.sh
File metadata and controls
34 lines (30 loc) · 1.66 KB
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
MODEL_FLAGS="--layout_channels 28 --layout_size 34 --num_channels 128 --num_res_blocks 3 --b_learn_sigma True --b_class_cond False --b_text_cond True --use_input_encoding True"
DIFFUSION_FLAGS="--diffusion_steps 4000 --noise_schedule cosine"
TRAIN_FLAGS="--lr 1e-4 --batch_size 64 --schedule_sampler loss-second-moment --use_3d_iou False "
NUM_GPUS=2
MAX_STEPS=400000
USE_GPT_TEXT_DESCRIPTION=False
train_stats_file="/mnt/nas_3dv/hdd1/datasets/Structured3d/preprocessed/20240219_text2pano/train/study/train_dataset_stats.json"
mpiexec -n $NUM_GPUS python scripts/st3d_room_layout_train.py \
--data_dir /mnt/nas_3dv/hdd1/datasets/Structured3d/preprocessed/20240219_text2pano/train/study/ \
$MODEL_FLAGS \
$DIFFUSION_FLAGS \
$TRAIN_FLAGS \
--lr_anneal_steps $MAX_STEPS \
--log_dir log/ST3D_study/20240229_normalized/ \
--dataset_stats_file $train_stats_file \
--use_gpt_text_desc $USE_GPT_TEXT_DESCRIPTION
MODEL_FLAGS="--layout_channels 28 --layout_size 34 --num_channels 128 --num_res_blocks 3 --b_learn_sigma True --b_class_cond False --b_text_cond True --use_input_encoding True"
DIFFUSION_FLAGS="--diffusion_steps 4000 --noise_schedule cosine --timestep_respacing ddim200 --use_ddim True"
NUM_SAMPLES=10
ROOM_TYPE="study"
python scripts/st3d_room_layout_sample.py \
--data_dir /mnt/nas_3dv/hdd1/datasets/Structured3d/preprocessed/20240219_text2pano/test/study/ \
--model_path log/ST3D_study/20240229_normalized/ema_0.9999_400000.pt \
$MODEL_FLAGS \
$DIFFUSION_FLAGS \
--room_type $ROOM_TYPE \
--num_samples $NUM_SAMPLES \
--log_dir "log/ST3D_study/20240229_normalized/sample_results" \
--dataset_stats_file $train_stats_file \
--use_gpt_text_desc $USE_GPT_TEXT_DESCRIPTION