forked from batmanlab/Context_Aware_SSL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
train.sh
40 lines (35 loc) · 824 Bytes
/
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
35
36
37
38
39
40
#!/usr/bin/env bash
set -x
LOG_DIR="./logs"
EXPERIMENT="train"
mkdir -p ${LOG_DIR}
export MKL_THREADING_LAYER=GNU
python train.py \
--workers-patch=8 \
--workers-graph=4 \
--epochs=50 \
--batch-size-patch=128 \
--batch-size-graph=16 \
--lr=0.03 \
--start-epoch=0 \
--print-freq=20 \
--resume="" \
--resume-graph="" \
--world-size=1 \
--num-sub-epoch=10 \
--rank=0 \
--dist-url="tcp://localhost:10001" \
--dist-backend="nccl" \
--seed=0 \
--multiprocessing-distributed \
--num-patch=581 \
--root-dir="/pghbio/dbmi/batmanlab/lisun/copd/gnn_shared/data/patch_data_32_6_reg_mask/" \
--fold=5 \
--moco-dim=128 \
--moco-k-patch=4096 \
--moco-k-graph=4096 \
--moco-m=0.999 \
--moco-t=0.2 \
--mlp \
--cos \
--exp-name="${EXPERIMENT}" >> ${LOG_DIR}/${EXPERIMENT}.log 2>&1