-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathtest_fastMRI.sh
55 lines (53 loc) · 2.31 KB
/
test_fastMRI.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash
# sh test_fastMRI.sh "vp"
export CUDA_VISIBLE_DEVICES=3
if [ "$1" = "vp" ]
then
echo "==================================================================="
echo "================ run configs/vp/ddpm_continuous.py ================"
echo "==================================================================="
python main.py \
--config=configs/vp/ddpm_continuous.py \
--mode='sample' \
--workdir=results
elif [ "$1" = "hfssde" ]
then
echo "==================================================================="
echo "=============== run configs/hfssde/ddpm_continuous.py ============="
echo "==================================================================="
python main.py \
--config=configs/hfssde/ddpm_continuous.py \
--mode='sample' \
--workdir=results
elif [ "$1" = "vp_ncsnpp" ]
then
echo "========================================================================"
echo "================ run configs/vp/ncsnpp_continuous.py ================"
echo "========================================================================"
python main.py \
--config=configs/vp/ncsnpp_continuous.py \
--mode='sample' \
--workdir=results
elif [ "$1" = "ve" ]
then
echo "====================================================================="
echo "================ run configs/ve/ncsnpp_continuous.py ================"
echo "====================================================================="
python main.py \
--config=configs/ve/ncsnpp_continuous.py \
--mode='sample' \
--workdir=results
elif [ "$1" = "ve_ddpm" ]
then
echo "======================================================================"
echo "================= run configs/ve/ddpm_continuous.py ================="
echo "======================================================================"
python main.py \
--config=configs/ve/ddpm_continuous.py \
--mode='sample' \
--workdir=results
else
echo "==========================================================================================="
echo "================ You must input one argument: ve, ve_ddpm, vp , vp_ncsnpp or hfssde========"
echo "==========================================================================================="
fi