- Create
data
folder - Create
pretrained_model
folder and put Pretrain model in it - Create
VOCdevkit2007
folder and putVOC2007
in it
data
|----- pretrained_model
|----- vgg16_caffe.pth
|----- resnet101_caffe.pth
|----- VOCdevkit2007
|----- VOC2007
pip install -r requirements.txt
cd lib
sh make.sh (linux / mac) | python setup.py build develop (windows)
CUDA_VISIBLE_DEVICES=0 python trainval_net.py \
--dataset pascal_voc --net res101 \
--epochs 1 --bs 4 --nw 0 \
--lr 1e-3 --lr_decay_step 5 \
--cuda
CUDA_VISIBLE_DEVICES=0 python trainval_net.py \
--epochs 6 --cuda \
--r True --checksession 1 --checkepoch 4 --checkpoint 79855
python test_net.py --dataset pascal_voc --net res101 \
--checksession 1 --checkepoch 4 --checkpoint 79855 \
--cuda
python demo.py --net res101 \
--checksession 1 --checkepoch 4 --checkpoint 79855 \
--cuda --load_dir models