-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun_hist2cell.sh
More file actions
30 lines (20 loc) · 1.83 KB
/
run_hist2cell.sh
File metadata and controls
30 lines (20 loc) · 1.83 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
architecture=hist2cell
backbone=resnet18
loss_main=MSE
lambda_main=0.6
lambda_rec=0.3
lr_rate=0.0001
max_epochs=10
batch_size=16
scheduler_fn=CosineAnnealingLR
exp_code=${architecture}_${backbone}_${loss_main}_a${lambda_main}b${lambda_rec}_ep${max_epochs}_bs${batch_size}_lr${lr_rate}_${scheduler_fn}
CUDA_VISIBLE_DEVICES=0 python main.py -c cfgs/cfgs_lung.yaml \
--opts CKPTS exp_code ${exp_code} HyperParams scheduler_fn ${scheduler_fn} HyperParams max_epochs ${max_epochs} HyperParams batch_size ${batch_size} HyperParams loss_main ${loss_main} HyperParams lambda_main ${lambda_main} HyperParams lambda_rec ${lambda_rec} HyperParams architecture ${architecture} HyperParams backbone ${backbone} HyperParams lr_rate ${lr_rate}
CUDA_VISIBLE_DEVICES=0 python main.py -c cfgs/cfgs_her2st.yaml \
--opts CKPTS exp_code ${exp_code} HyperParams scheduler_fn ${scheduler_fn} HyperParams max_epochs ${max_epochs} HyperParams batch_size ${batch_size} HyperParams loss_main ${loss_main} HyperParams lambda_main ${lambda_main} HyperParams lambda_rec ${lambda_rec} HyperParams architecture ${architecture} HyperParams backbone ${backbone} HyperParams lr_rate ${lr_rate}
CUDA_VISIBLE_DEVICES=0 python main.py -c cfgs/cfgs_stnet.yaml \
--opts CKPTS exp_code ${exp_code} HyperParams scheduler_fn ${scheduler_fn} HyperParams max_epochs ${max_epochs} HyperParams batch_size ${batch_size} HyperParams loss_main ${loss_main} HyperParams lambda_main ${lambda_main} HyperParams lambda_rec ${lambda_rec} HyperParams architecture ${architecture} HyperParams backbone ${backbone} HyperParams lr_rate ${lr_rate}
# independent test
CUDA_VISIBLE_DEVICES=0 python test_evaluation.py -ep results/humanlung_cell2location/${exp_code}
CUDA_VISIBLE_DEVICES=0 python test_evaluation.py -ep results/her2st/${exp_code}
CUDA_VISIBLE_DEVICES=0 python test_evaluation.py -ep results/stnet/${exp_code}