-
Notifications
You must be signed in to change notification settings - Fork 10
/
prepare.sh
executable file
·31 lines (24 loc) · 1.31 KB
/
prepare.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
#!/bin/bash
# download and extract VOC 2007 trainval split
# use one of the following
#wget http://host.robots.ox.ac.uk/pascal/VOC/voc2007/VOCtrainval_06-Nov-2007.tar -P data/
wget http://pjreddie.com/media/files/VOCtrainval_06-Nov-2007.tar -P data/
mkdir data/VOCtrainval_06-Nov-2007
tar xf data/VOCtrainval_06-Nov-2007.tar --directory data/VOCtrainval_06-Nov-2007/
# download and extract VOC 2007 test split
# use one of the following
#wget http://host.robots.ox.ac.uk/pascal/VOC/voc2007/VOCtest_06-Nov-2007.tar -P data/
wget http://pjreddie.com/media/files/VOCtest_06-Nov-2007.tar -P data/
mkdir data/VOCtest_06-Nov-2007
tar xf data/VOCtest_06-Nov-2007.tar --directory data/VOCtest_06-Nov-2007/
# download and extract edgeboxes proposals
wget https://groups.inf.ed.ac.uk/hbilen-data/data/WSDDN/EdgeBoxesVOC2007test.mat -P data/
wget https://groups.inf.ed.ac.uk/hbilen-data/data/WSDDN/EdgeBoxesVOC2007trainval.mat -P data/
# download pretrained alexnet weights
wget https://download.pytorch.org/models/alexnet-owt-4df8aa71.pth -P states/
# download pretrained VGG weights
wget https://download.pytorch.org/models/vgg16-397923af.pth -P states/
# download pretrained alexnet based wsddn weights
wget https://www.dropbox.com/s/lifv1ywa98a2p4y/alexnet_epoch_20.pt -P states/
# build the docker image
docker build . -t wsddn.pytorch