-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommands.txt
More file actions
47 lines (24 loc) · 1.09 KB
/
commands.txt
File metadata and controls
47 lines (24 loc) · 1.09 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
# convert dicom to png
python mritopng.py -f <folder with dicom> <output_dir>
# TRAIN AND TEST WITH JUST ONE INPUT
# b is input_dir
# convert dicom to png
python mritopng.py -f <folder with dicom> b
rm -rf b_resized
rm -rf b_blank
rm -rf b_combined
python tools/process.py --input_dir b --operation resize --output_dir b_resized
python tools/process.py --input_dir b_resized --operation blank --output_dir b_blank
python tools/process.py --input_dir b_blank --b_dir b_resized --operation combine --output_dir b_combined
rm -rf c_test
python pix2pix.py --mode test --output_dir c_test --input_dir b_combined --checkpoint c_train
open c_test/index.html
# TRAIN AND TEST WITH BOTH INPUT AND TARGET
# a is target
# b is input
python tools/process.py --input_dir a --b_dir b --operation combine --output_dir c
python tools/split.py --dir c
python pix2pix.py --mode train --output_dir c_train --max_epochs 200 --input_dir c/train --which_direction BtoA
rm -rf c_test
python pix2pix.py --mode test --output_dir c_test --input_dir c/val --checkpoint c_train
open c_test/index.html