-
Notifications
You must be signed in to change notification settings - Fork 3
/
example_train.sh
34 lines (31 loc) · 1.01 KB
/
example_train.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
export wandb_name="bdm"
export save_dir="./outputs"
export root="absolute-path-to-your-ShapeNetCore.v2.PC15k"
export r2n2_dir="absolute-path-to-your-ShapeNet.R2N2"
export category="chair"
# we maintain the same epoch number for different subset_ratio,
# so subset_ratio:max_steps should be
# 0.1:10000, 0.5:50000 and 1.0:100000.
export subset_ratio=0.1
export max_steps=10000
export save_name="train_chair_pc2_r2n2_0.1"
python main.py \
logging.wandb_project=${wandb_name} \
run.job=train \
run.save_dir=${save_dir} \
run.num_inference_steps=1000 \
run.diffusion_scheduler=ddpm \
run.name=${save_name} \
run.checkpoint_freq=5000 \
run.val_freq=5000 \
run.vis_freq=5000 \
dataset.subset_ratio=${subset_ratio} \
run.max_steps=${max_steps} \
dataset=shapenet_r2n2 \
dataset.root=${root} \
dataset.r2n2_dir=${r2n2_dir} \
dataset.image_size=224 \
dataset.category=${category} \
dataset.max_points=4096 \
dataloader.batch_size=16 \
dataloader.num_workers=8