-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
43 lines (30 loc) · 1.25 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
CUR_DIR = $(shell pwd)
all: dirs data/manual_seg data/mrimages data/input
data/input: parse.py
python parse.py data
data/mrimages: data/mrimages/mrimages.tar.gz
cd data/mrimages; tar -xvzf mrimages.tar.gz
data/mrimages/mrimages.tar.gz:
wget http://www.cse.yorku.ca/~mridataset/mrimages.tar.gz
touch mrimages.tar.gz
mv mrimages.tar.gz data/mrimages/mrimages.tar.gz
data/manual_seg: data/manual_seg/manual_seg.tar.gz
cd data/manual_seg; tar -xvzf manual_seg.tar.gz
data/manual_seg/manual_seg.tar.gz:
wget http://www.cse.yorku.ca/~mridataset/manual_seg.tar.gz
touch manual_seg.tar.gz
mv manual_seg.tar.gz data/manual_seg/manual_seg.tar.gz
dirs:
mkdir -p data
mkdir -p data/manual_seg
mkdir -p data/mrimages
build:
docker build -t grihabor/caffe .
run-cpu:
docker run -i -t -v $(CUR_DIR):/root/project bvlc/caffe:cpu /bin/bash -c "cd /root/project/app/vocfcn; python solve.py"
run-gpu:
nvidia-docker run -i -t -v $(CUR_DIR):/root/project bvlc/caffe:gpu /bin/bash -c "cd /root/project/app/vocfcn; python solve.py -gpu"
bash-cpu:
docker run -i -t -v $(CUR_DIR):/root/project bvlc/caffe:cpu /bin/bash -c "cd /root/project; bash"
bash-gpu:
nvidia-docker run -i -t -v $(CUR_DIR):/root/project bvlc/caffe:gpu /bin/bash -c "cd /root/project; bash"