# py-MDNet **Repository Path**: greitzmann/py-MDNet ## Basic Information - **Project Name**: py-MDNet - **Description**: MDNet PyTorch implementation - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-11-15 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # py-MDNet by [Hyeonseob Nam](https://hyeonseobnam.github.io/) and [Bohyung Han](http://cvlab.postech.ac.kr/~bhhan/) at POSTECH **Update (April, 2019)** - Migration to python 3.6 & pyTorch 1.0 - Efficiency improvement (~5fps) - ImagNet-VID pretraining - Code refactoring ## Introduction PyTorch implementation of MDNet, which runs at ~5fps with a single CPU core and a single GPU (GTX 1080 Ti). #### [[Project]](http://cvlab.postech.ac.kr/research/mdnet/) [[Paper]](https://arxiv.org/abs/1510.07945) [[Matlab code]](https://github.com/HyeonseobNam/MDNet) If you're using this code for your research, please cite: @InProceedings{nam2016mdnet, author = {Nam, Hyeonseob and Han, Bohyung}, title = {Learning Multi-Domain Convolutional Neural Networks for Visual Tracking}, booktitle = {The IEEE Conference on Computer Vision and Pattern Recognition (CVPR)}, month = {June}, year = {2016} } ## Results on OTB - Raw results of MDNet pretrained on **VOT-OTB** (VOT13,14,15 excluding OTB): [Google drive link](https://drive.google.com/open?id=1ZSCj1UEn4QhoRypgH28hVxSgWbI8q8Hl) - Raw results of MDNet pretrained on **Imagenet-VID**: [Google drive link](https://drive.google.com/open?id=14lJGcumtBRmtpZhmgY1BsrbEQixfhIpP) ## Prerequisites - python 3.6+ - opencv 3.0+ - [PyTorch 1.0+](http://pytorch.org/) and its dependencies - for GPU support: a GPU with ~3G memory ## Usage ### Tracking ```bash python tracking/run_tracker.py -s DragonBaby [-d (display fig)] [-f (save fig)] ``` - You can provide a sequence configuration in two ways (see tracking/gen_config.py): - ```python tracking/run_tracker.py -s [seq name]``` - ```python tracking/run_tracker.py -j [json path]``` ### Pretraining - Download [VGG-M](http://www.vlfeat.org/matconvnet/models/imagenet-vgg-m.mat) (matconvnet model) and save as "models/imagenet-vgg-m.mat" - Pretraining on VOT-OTB - Download [VOT](http://www.votchallenge.net/) datasets into "datasets/VOT/vot201x" ``` bash python pretrain/prepro_vot.py python pretrain/train_mdnet.py -d vot ``` - Pretraining on ImageNet-VID - Download [ImageNet-VID](http://bvisionweb1.cs.unc.edu/ilsvrc2015/download-videos-3j16.php#vid) dataset into "datasets/ILSVRC" ``` bash python pretrain/prepro_imagenet.py python pretrain/train_mdnet.py -d imagenet ```