-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
65 lines (52 loc) · 1.56 KB
/
Copy pathrun.sh
File metadata and controls
65 lines (52 loc) · 1.56 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
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
56
57
58
59
60
61
62
63
64
65
#!/usr/bin/env bash
set -ex
# This is the master script for the capsule. When you click "Reproducible Run", the code in this file will execute.
python3.10 --version
pip3.10 --version
cd src
pip3.10 install .
cd ..
cd nnUNet
pip3.10 install .
cd ..
unzip -o /data/ALADIN-weights.zip -d "/data/models"
unzip -o /data/STANFORD.zip -d "/data"
unzip -o /data/RDB.zip -d "/data"
mkdir /data/VALIDATION
unzip -o /data/VALIDATION.zip -d "/data/VALIDATION"
#Set environment variables
export aladin_models=/data/models
export benchmark_results=/results
export benchmark_data=/data
#Run demo
python3.10 demo.py --case STANFORD1
python3.10 demo.py --case STANFORD2
python3.10 demo.py --case A01986
python3.10 demo.py --case A08391
#Install SoTA models for delineation
git clone https://github.com/guillermo-jimenez/DelineatorSwitchAndCompose.git
cd DelineatorSwitchAndCompose
git clone https://github.com/guillermo-jimenez/sak.git
cd sak
pip3.10 install . --no-deps
cd ..
cd ..
pip3.10 install -r requirements.txt
mkdir DelineatorSwitchAndCompose/TrainedModels
unzip -o /data/TrainedModels.zip -d "/code/DelineatorSwitchAndCompose/TrainedModels"
#Benchmark delineation
chmod 777 benchmark_delineation.sh
./benchmark_delineation.sh
#Benchmark diagnosis on iRhythm dataset
chmod 777 benchmark_diagnosis_STANFORD.sh
./benchmark_diagnosis_STANFORD.sh
python3.10 paper/boxplot-stanford.py
#Benchmark diagnosis on AliveCor
cd /data/CINC
chmod 777 download.sh
./download.sh
cd ..
cd ..
chmod 777 benchmark_diagnosis_CINC.sh
./benchmark_diagnosis_CINC.sh
python3.10 paper/boxplot-cinc.py