forked from HKervadec/ai4mi_project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (25 loc) · 870 Bytes
/
Makefile
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
red:=$(shell tput bold ; tput setaf 1)
green:=$(shell tput bold ; tput setaf 2)
yellow:=$(shell tput bold ; tput setaf 3)
blue:=$(shell tput bold ; tput setaf 4)
magenta:=$(shell tput bold ; tput setaf 5)
cyan:=$(shell tput bold ; tput setaf 6)
reset:=$(shell tput sgr0)
data/TOY:
python gen_toy.py --dest $@ -n 10 10 -wh 256 256 -r 50
data/TOY2:
rm -rf $@_tmp $@
python gen_two_circles.py --dest $@_tmp -n 1000 100 -r 25 -wh 256 256
mv $@_tmp $@
# Extraction and slicing for Segthor
data/segthor_train: data/segthor_train.zip
$(info $(yellow)unzip $<$(reset))
sha256sum -c data/segthor_train.sha256
unzip -q $<
rm -f $@/.DS_STORE
data/SEGTHOR: data/segthor_train
$(info $(green)python $(CFLAGS) slice_segthor.py$(reset))
rm -rf $@_tmp $@
python $(CFLAGS) slice_segthor.py --source_dir $^ --dest_dir $@_tmp \
--shape 256 256 --retain 10
mv $@_tmp $@