Python 2.7.12
Python-opencv 3.2.0
PyTorch 0.3.1
Numpy 1.14.2
Other packages listed in requirements.txt
The results using packages of other version than above not guaranteed.
Download ILSVRC15, and unzip it (let's assume that $ILSVRC2015_Root
is the path to your ILSVRC2015)
Move $ILSVRC2015_Root/Data/VID/val
into $ILSVRC2015_Root/Data/VID/train/
, so we have five sub-folders in $ILSVRC2015_Root/Data/VID/train/
Move $ILSVRC2015_Root/Annotations/VID/val
into $ILSVRC2015_Root/Annotations/VID/train/
, so we have five sub-folders in $ILSVRC2015_Root/Annotations/VID/train/
Generate image crops
$SiamFC-PyTorch/ILSVRC15-curation/
(Assume you've downloaded the rep and its path is $SiamFC-PyTorch
)vid_curated_path
in gen_image_crops_VID.py
to save your crops$python gen_image_crops_VID.py
, then you can check the cropped images in your saving path (i.e., vid_curated_path
). It takes a day or two for image crops generation.Generate imdb for training and validation
$SiamFC-PyTorch/ILSVRC15-curation/
vid_root_path
and vid_curated_path
to your custom path in gen_imdb_VID.py
$python gen_imdb_VID.py
, then you will get two json files imdb_video_train.json
(~ 430MB) and imdb_video_val.json
(~ 28MB) in current folder, which are used for training and validation.$SiamFC-PyTorch/Train/
data_dir
, train_imdb
and val_imdb
to your custom cropping path, training and validation json files.$python run_Train_SiamFC.py
Config.py
$SiamFC-PyTorch/Tracking/
Config.py
first, which contains all parameters for trackingself.net_base_path
to the path saving your trained modelsself.net
to indicate whcih model you want for evaluation, and I've uploaded a trained model SiamFC_45_model.pth
in this rep (located in $SiamFC-PyTorch/Train/model/)Config.py
.$SiamFC-PyTorch/Train/matlab
to $VOT-Workspace
. And modify paths in all those files. (Don't panic, just few lines in each file.)Compare EAO:
dataset | result of this repo | result in vot paper |
---|---|---|
VOT 16 | 0.24 | 0.24 |
VOT 17 | 0.20 | 0.19 |
[1] L. Bertinetto, J. Valmadre, J. F. Henriques, A. Vedaldi, and P. H. Torr. Fully-convolutional siamese networks for object tracking. In ECCV Workshop, 2016.
[2] A. Vedaldi and K. Lenc. Matconvnet – convolutional neural networks for matlab. In ACM MM, 2015.