Showing
1 changed file
with
56 additions
and
0 deletions
2DCNN/src/shell/table1.sh
0 → 100644
1 | +#!/usr/bin/env sh | ||
2 | + | ||
3 | +# DEFINE | ||
4 | +DATA_ROOT_PATH="" | ||
5 | +DEVICE="cuda" | ||
6 | + | ||
7 | +################ Table 1 ####################################################### | ||
8 | +#### commands to train the model with full training data | ||
9 | +################################################################################ | ||
10 | + | ||
11 | +# 3D-CNN | ||
12 | +python3 -m src.scripts.main -c config/config.py \ | ||
13 | + --exp_name 3d_cnn \ | ||
14 | + -r result/3d_cnn/ \ | ||
15 | + --device $DEVICE --wandb.use 0 \ | ||
16 | + --model.arch.file src/arch/brain_age_3d.py \ | ||
17 | + --data.root_path "$DATA_ROOT_PATH" | ||
18 | + | ||
19 | +# 2D-slice-lstm | ||
20 | +python3 -m src.scripts.main -c config/config.py \ | ||
21 | + --exp_name 2d_slice_lstm \ | ||
22 | + -r result/2d_slice_lstm/ \ | ||
23 | + --device $DEVICE --wandb.use 0 \ | ||
24 | + --model.arch.file src/arch/brain_age_slice_lstm.py \ | ||
25 | + --data.root_path "$DATA_ROOT_PATH" \ | ||
26 | + --train.gradient_norm_clip 1 | ||
27 | + | ||
28 | +# 2D-slice-attention | ||
29 | +python3 -m src.scripts.main -c config/config.py \ | ||
30 | + --exp_name 2d_slice_attention \ | ||
31 | + -r result/2d_slice_attention \ | ||
32 | + --device $DEVICE --wandb.use 0 \ | ||
33 | + --model.arch.file src/arch/brain_age_slice_set.py \ | ||
34 | + --model.arch.attn_dim 32 --model.arch.attn_num_heads 1 \ | ||
35 | + --model.arch.attn_drop 1 --model.arch.agg_fn "attention" \ | ||
36 | + --data.root_path "$DATA_ROOT_PATH" | ||
37 | + | ||
38 | +# 2D-slice-mean | ||
39 | +python3 -m src.scripts.main -c config/config.py \ | ||
40 | + --exp_name 2d_slice_mean \ | ||
41 | + -r result/2d_slice_mean \ | ||
42 | + --device $DEVICE --wandb.use 0 \ | ||
43 | + --model.arch.file src/arch/brain_age_slice_set.py \ | ||
44 | + --model.arch.attn_dim 32 --model.arch.attn_num_heads 1 \ | ||
45 | + --model.arch.attn_drop 1 --model.arch.agg_fn "mean" \ | ||
46 | + --data.root_path "$DATA_ROOT_PATH" | ||
47 | + | ||
48 | +# 2D-slice-max | ||
49 | +python3 -m src.scripts.main -c config/config.py \ | ||
50 | + --exp_name 2d_slice_max \ | ||
51 | + -r result/2d_slice_max \ | ||
52 | + --device $DEVICE --wandb.use 0 \ | ||
53 | + --model.arch.file src/arch/brain_age_slice_set.py \ | ||
54 | + --model.arch.attn_dim 32 --model.arch.attn_num_heads 1 \ | ||
55 | + --model.arch.attn_drop 1 --model.arch.agg_fn "max" \ | ||
56 | + --data.root_path "$DATA_ROOT_PATH" |
-
Please register or login to post a comment