Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hyunji
/
A-Performance-Evaluation-of-CNN-for-Brain-Age-Prediction-Using-Structural-MRI-Data
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Hyunji
2021-12-20 04:29:06 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ea1d7b76ac53337e1d674e711f3c650e1225c5d6
ea1d7b76
1 parent
07de3a96
Upload new file
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
94 additions
and
0 deletions
2DCNN/src/shell/table3.sh
2DCNN/src/shell/table3.sh
0 → 100644
View file @
ea1d7b7
#!/usr/bin/env sh
# DEFINE
DATA_ROOT_PATH
=
""
DEVICE
=
"cuda"
############################## Table 3 #########################################
#### This commands Assumes that you have computed the best models for the architecture
#### or table 1 commands are already run
#### We show commands for k=2,
#### for other values of k just modify the frame_keep_fraction parameter
#### k=2 -> 0.5
#### k=4 -> 0.25
#### k=5 -> 0.2
#### k=10 -> 0.1
################################################################################
# 3d cnn with 50% frames (k=2), with imputation
python3 -m src.scripts.main -c config/config.py
\
--exp_name
3d_cnn_eval_k
=
2_imputed
\
-r /tmp
\
--mode
test
\
--device
$DEVICE
--wandb.use 0
\
--model.arch.file src/arch/brain_age_3d.py
\
--data.root_path
"
$DATA_ROOT_PATH
"
\
--data.frame_keep_style random --data.frame_keep_fraction 0.5
\
--data.impute fill
\
--statefile result/3d_cnn/run_0001/best_model.pt
# 2d lstm with 50% frames (k=2), without imputation
python3 -m src.scripts.main -c config/config.py
\
--exp_name
2d_slice_lstm_eval_k
=
2
\
-r /tmp
\
--mode
test
\
--device
$DEVICE
--wandb.use 0
\
--model.arch.file src/arch/brain_age_slice_lstm.py
\
--data.root_path
"
$DATA_ROOT_PATH
"
\
--data.frame_keep_style random --data.frame_keep_fraction 0.5
\
--data.impute drop
\
--statefile result/2d_slice_lstm/run_0001/best_model.pt
# 2d lstm with 50% frames (k=2), with imputation
python3 -m src.scripts.main -c config/config.py
\
--exp_name
2d_slice_lstm_eval_k
=
2_imputed
\
-r /tmp
\
--mode
test
\
--device
$DEVICE
--wandb.use 0
\
--model.arch.file src/arch/brain_age_slice_lstm.py
\
--data.root_path
"
$DATA_ROOT_PATH
"
\
--data.frame_keep_style random --data.frame_keep_fraction 0.5
\
--data.impute fill
\
--statefile result/2d_slice_lstm/run_0001/best_model.pt
# 2D-slice-attention with 50% frames (k=2), without imputation
python3 -m src.scripts.main -c config/config.py
\
--exp_name
2d_slice_attention_eval_k
=
2
\
-r /tmp
\
--mode
test
\
--device
$DEVICE
--wandb.use 0
\
--model.arch.file src/arch/brain_age_slice_set.py
\
--model.arch.attn_dim 32 --model.arch.attn_num_heads 1
\
--model.arch.attn_drop 1 --model.arch.agg_fn
"attention"
\
--data.root_path
"
$DATA_ROOT_PATH
"
\
--data.frame_keep_style random --data.frame_keep_fraction 0.5
\
--data.impute drop
\
--statefile result/2d_slice_attention/run_0001/best_model.pt
# 2D-slice-mean with 50% frames (k=2), without imputation
python3 -m src.scripts.main -c config/config.py
\
--exp_name
2d_slice_mean_eval_k
=
2
\
-r /tmp
\
--mode
test
\
--device
$DEVICE
--wandb.use 0
\
--model.arch.file src/arch/brain_age_slice_set.py
\
--model.arch.attn_dim 32 --model.arch.attn_num_heads 1
\
--model.arch.attn_drop 1 --model.arch.agg_fn
"mean"
\
--data.root_path
"
$DATA_ROOT_PATH
"
\
--data.frame_keep_style random --data.frame_keep_fraction 0.5
\
--data.impute drop
\
--statefile result/2d_slice_attention/run_0001/best_model.pt
# 2D-slice-max with 50% frames (k=2), without imputation
python3 -m src.scripts.main -c config/config.py
\
--exp_name
2d_slice_max_eval_k
=
2
\
-r /tmp
\
--mode
test
\
--device
$DEVICE
--wandb.use 0
\
--model.arch.file src/arch/brain_age_slice_set.py
\
--model.arch.attn_dim 32 --model.arch.attn_num_heads 1
\
--model.arch.attn_drop 1 --model.arch.agg_fn
"max"
\
--data.root_path
"
$DATA_ROOT_PATH
"
\
--data.frame_keep_style random --data.frame_keep_fraction 0.5
\
--data.impute drop
\
--statefile result/2d_slice_attention/run_0001/best_model.pt
Please
register
or
login
to post a comment