-
Notifications
You must be signed in to change notification settings - Fork 0
/
metrics_breast_mri_only_test_GAN_baseline.sh
62 lines (41 loc) · 3.03 KB
/
metrics_breast_mri_only_test_GAN_baseline.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
56
57
58
59
60
61
62
#! /bin/bash
#sleep 2h
#### Preliminaries
#echo "1. Activating virtual environment called generative_breast_controlnet_env."
##python3 -m venv MMG_env
#source ../generative_breast_controlnet_env/bin/activate
#echo "2. Pip install dependencies"
#pip3 install --upgrade pip --quiet
#pip3 install keras
#pip3 install wget --quiet
#pip3 install numpy --quiet
#pip3 install opencv-contrib-python --quiet
#pip3 install opencv-python==4.5.5.64
#pip3 install torchmetrics
#pip install numpy==1.21
#pip install torchmetrics[image]
#git clone https://github.com/Project-MONAI/GenerativeModels.git
#cd GenerativeModels/
#python setup.py install
#cd ..
echo "3. METRIC computation on TEST data."
echo "==========================================================================="
echo "======================== FULL IMAGE ========================"
echo "==========================================================================="
#echo "======================== REAL-SYNTHETIC Comparisons ========================"
# 30
#echo "postcontrast phase 1 real - postcontrast phase 1 synthetic normalized Pix2PixHD"
#python3 metrics.py /home/richard/Desktop/software/data/ldm_data_all_phases_concat/test/phase1/ /home/richard/Desktop/software/pre_post_synthesis-main/synthesis/pix2pixHD/results/pre2concat_512p_train/test_30/phase1/ --phase 0001 --secondphase 0000 --normalize_images
#echo "postcontrast phase 2 real - postcontrast phase 2 synthetic normalized Pix2PixHD"
#python3 metrics.py /home/richard/Desktop/software/data/ldm_data_all_phases_concat/test/phase2 /home/richard/Desktop/software/pre_post_synthesis-main/synthesis/pix2pixHD/results/pre2concat_512p_train/test_30/phase2 --phase 0002 --secondphase 0000 --normalize_images
#echo "postcontrast phase 3 real - postcontrast phase 3 synthetic normalized Pix2PixHD"
#python3 metrics.py /home/richard/Desktop/software/data/ldm_data_all_phases_concat/test/phase3 /home/richard/Desktop/software/pre_post_synthesis-main/synthesis/pix2pixHD/results/pre2concat_512p_train/test_30/phase3 --phase 0003 --secondphase 0000 --normalize_images
echo "======================== REAL-REAL Comparisons ========================"
# 30
#echo "precontrast real - postcontrast phase 1 real normalized Pix2PixHD"
#python3 metrics.py /home/richard/Desktop/software/data/ldm_data_all_phases_concat/test/phase1/ /home/richard/Desktop/software/data/ldm_data_all_phases_concat/test/test_A --phase 0001 --secondphase 0000 --normalize_images
#echo "precontrast real - postcontrast phase 2 real normalized Pix2PixHD"
#python3 metrics.py /home/richard/Desktop/software/data/ldm_data_all_phases_concat/test/phase2 /home/richard/Desktop/software/data/ldm_data_all_phases_concat/test/test_A --phase 0002 --secondphase 0000 --normalize_images
#echo "precontrast real - postcontrast phase 3 real normalized Pix2PixHD"
#python3 metrics.py /home/richard/Desktop/software/data/ldm_data_all_phases_concat/test/phase3 /home/richard/Desktop/software/data/ldm_data_all_phases_concat/test/test_A --phase 0003 --secondphase 0000 --normalize_images
echo "FINISHED CALCULATING METRICS"