Giter VIP home page Giter VIP logo

pycftrackers's Introduction

pyCFTrackers

Python re-implementation of some correlation filter based tracker, and all of these algorithms are implemented based on the official Matlab code. All the code has been tested on Ubuntu 16.04, Python 3.5. I use pysot-toolkit to eval the performance on OTB and VOT.

Install

git clone https://github.com/wwdguu/pyCFTrackers.git && cd pyCFTrackers
export pyCFTrackers=$PWD

pip install -r requirements.txt

cd lib/eco/features/
python setup.py build_ext --inplace
cd ../../..

cd lib/pysot/utils/
python setup.py build_ext --inplace
cd ../../..

export PYTHONPATH=$PWD:$PYTHONPATH

Get Dataset

You can follow the instructions in the following repo to get VOT2016,VOT2018 and OTB100 dataset. trackdat
Then get the json files according to pysot-toolkit Then put the data in the dataset dir.

Demo

cd examples
python cf_demo.py

demo

Eval on OTB and VOT

cd eval
python get_vot2016_result.py
python get_vot2018_result.py
python ope_otb.py
python eval_VOT2016.py
python  eval_VOT2018.py
python eval_OTB.py

OTB result

OTB-100

OTB100 Success Plot OTB100 Precision Plot

OTB-2013

OTB2013 Success Plot OTB2013 Precision Plot

VOT result

VOT2018
---------------------------------------------------------------
| Tracker Name  | Accuracy | Robustness | Lost Number |  EAO  |
---------------------------------------------------------------
|      ECO      |  0.485   |   0.403    |    86.0     | 0.224 |
|    CSRDCF     |  0.492   |   0.501    |    107.0    | 0.210 |
|    ECO-HC     |  0.500   |   0.473    |    101.0    | 0.207 |
|   CSRDCF-LP   |  0.503   |   0.553    |    118.0    | 0.199 |
|    Staple     |  0.524   |   0.665    |    142.0    | 0.179 |
|     LDES      |  0.528   |   0.684    |    146.0    | 0.175 |
| MCCTH-Staple  |  0.535   |   0.684    |    146.0    | 0.172 |
| OPENCV-CSRDCF |  0.486   |   0.651    |    139.0    | 0.170 |
|     BACF      |  0.511   |   0.674    |    144.0    | 0.169 |
|      DAT      |  0.477   |   0.777    |    166.0    | 0.158 |
|     STRCF     |  0.483   |   0.679    |    145.0    | 0.152 |
|      CN       |  0.439   |   1.100    |    235.0    | 0.112 |
|     SAMF      |  0.499   |   1.147    |    245.0    | 0.110 |
|     DSST      |  0.492   |   1.222    |    261.0    | 0.107 |
|    DSST-LP    |  0.512   |   1.260    |    269.0    | 0.103 |
|      DCF      |  0.463   |   1.246    |    266.0    | 0.099 |
|      KCF      |  0.463   |   1.330    |    284.0    | 0.094 |
|      CSK      |  0.418   |   1.386    |    296.0    | 0.090 |
|     MOSSE     |  0.378   |   1.967    |    420.0    | 0.063 |
---------------------------------------------------------------

VOT2016
---------------------------------------------------------------
| Tracker Name  | Accuracy | Robustness | Lost Number |  EAO  |
---------------------------------------------------------------
|      ECO      |  0.564   |   0.256    |    55.0     | 0.336 |
| MCCTH-Staple  |  0.574   |   0.359    |    77.0     | 0.303 |
|    Staple     |  0.560   |   0.387    |    83.0     | 0.299 |
|    ECO-HC     |  0.532   |   0.350    |    75.0     | 0.293 |
|    CSRDCF     |  0.542   |   0.359    |    77.0     | 0.273 |
|     LDES      |  0.577   |   0.419    |    90.0     | 0.272 |
|   CSRDCF-LP   |  0.548   |   0.354    |    76.0     | 0.272 |
|     BACF      |  0.521   |   0.405    |    87.0     | 0.252 |
| OPENCV-CSRDCF |  0.521   |   0.438    |    94.0     | 0.239 |
|     STRCF     |  0.520   |   0.415    |    89.0     | 0.239 |
|      DAT      |  0.474   |   0.503    |    108.0    | 0.232 |
|     SAMF      |  0.544   |   0.639    |    137.0    | 0.193 |
|    DSST-LP    |  0.543   |   0.727    |    156.0    | 0.180 |
|      CN       |  0.468   |   0.653    |    140.0    | 0.178 |
|     DSST      |  0.531   |   0.732    |    157.0    | 0.177 |
|      DCF      |  0.474   |   0.704    |    151.0    | 0.171 |
|      KCF      |  0.469   |   0.718    |    154.0    | 0.171 |
|      CSK      |  0.433   |   0.886    |    190.0    | 0.139 |
|     MOSSE     |  0.388   |   1.244    |    267.0    | 0.096 |
---------------------------------------------------------------

License.

Licensed under an MIT license.

pycftrackers's People

Contributors

fengyang95 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pycftrackers's Issues

ope_otb程序卡死!

运行ope_otb,加载数据库OTB10时,卡死在14%,您知道可能的原因吗?
loading OTB100: 13%|█████▏ | 13/100
[01:04<18loading OTB100: 13%|█████ | 13/100
[01:05<18:loading OTB100: 14%|█████▍ | 14/100
[01:19<19:loading OTB100: 14%|█████▋ | 14/100 [01:19<19:22, 13.51s/it, Box]
电脑运行到这里卡死!!!!!!!

example files unuseable

there is no data to even run an example. your description in readme is incorrent. python cf_demo.py not working. and in repo no folder dataset, and also no any documentation about format or content of this directory. wtf?

PS C:\Users\username\Desktop\pyCFTrackers\examples> python .\cf_demo.py Traceback (most recent call last): File ".\cf_demo.py", line 7, in <module> data_names=sorted(os.listdir(data_dir)) FileNotFoundError: [WinError 3] Системе не удается найти указанный путь: '../dataset/test' PS C:\Users\username\Desktop\pyCFTrackers\examples>

NO GPU

who is running this code without gpu?How it worked in cpu system

The speed of BACF

Hello,
Thank you for sharing.
I try BACF on my server and only ~10fps (OTB100), w/o loading images. Could u tell me the speed of the BACF when u test ?

Thanks for your help!

GOT-10k eval result

Hello,
I have test the BACF with the toolkit GOT-10k (https://github.com/got-10k/toolkit) on OTB100, but the score is much lower than the pysot. (I can't run the pysot on my server and have no idea.)

GOT10k: | precision 0.622 | sucess 0.462
pysot: | precision 0.796 | sucess 0.598

Do you have any idea about this?
Is there any other toolkit can evaluate the python tracker?

Thank you for any reply.

OTB100 eval error

I’m sorry to disturb u with this question. I have checked the issues in pyCFTrackers and pysot-toolkit, but have no answers.

I use the eval_OTB.py to test OTB100

It raise errors:

File "pysot/utils/statistics.py", line 104:
def success_overlap(gt_bb, result_bb, n_frame):
thresholds_overlap = np.arange(0, 1.05, 0.05)
^

This error may have been caused by the following argument(s):

  • argument 1: Unsupported array dtype: object

This is not usually a problem with Numba itself but instead often caused by
the use of unsupported features or an issue in resolving types.

To see Python/NumPy features supported by the latest release of Numba visit:
http://numba.pydata.org/numba-doc/dev/reference/pysupported.html
and
http://numba.pydata.org/numba-doc/dev/reference/numpysupported.html

For more information about typing errors and how to debug them visit:
http://numba.pydata.org/numba-doc/latest/user/troubleshoot.html#my-code-doesn-t-compile

If you think your code should work with Numba, please report the error message
and traceback, along with a minimal reproducer at:
https://github.com/numba/numba/issues/new

And when i comment the # @jit(nopython=True), it raise errors:

"""
Traceback (most recent call last):
File "/root/anaconda3/envs/cf/lib/python3.5/multiprocessing/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/root/Documents/pysot-toolkit-master/pysot/evaluation/ope_benchmark.py", line 50, in eval_success
success_ret_[video.name] = success_overlap(gt_traj, tracker_traj, n_frame)
File "/root/Documents/pysot-toolkit-master/pysot/utils/statistics.py", line 108, in success_overlap
iou[mask] = overlap_ratio(gt_bb[mask], result_bb[mask])
IndexError: too many indices for array
"""

Thank you for any reply! ! !

for run eval_VOT2016.py/eval_VOT2018.py

File "", line 1, in
runfile('/home/zly/pyCFTrackers/eval/eval_VOT2016.py', wdir='/home/zly/pyCFTrackers/eval')

File "/home/zly/anaconda3/lib/python3.7/site-packages/spyder_kernels/customize/spydercustomize.py", line 786, in runfile
execfile(filename, namespace)

File "/home/zly/anaconda3/lib/python3.7/site-packages/spyder_kernels/customize/spydercustomize.py", line 110, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)

File "/home/zly/pyCFTrackers/eval/eval_VOT2016.py", line 68, in
trackers), desc='eval eao', total=len(trackers), ncols=100):

File "/home/zly/anaconda3/lib/python3.7/site-packages/tqdm/_tqdm.py", line 1022, in iter
for obj in iterable:

File "/home/zly/anaconda3/lib/python3.7/multiprocessing/pool.py", line 748, in next
raise value

ValueError: max() arg is an empty sequence

bug

你好,我在pycharm上运行了您的代码,可是一直报错编译不成功。不知道是不是配置环境的问题。可以的话希望您可以出一个如何运行您文件的说明,这样会容易上手一些。非常感谢。

Segmentation fault: 11;应该如何解决?

DSST ;Staple;CSRDCF;SAMF; DSST-LP;MKCFup;MKCFup-LP;MCCTH-Staple;BACF;运行时,都会报错:

Segmentation fault: 11

Stack trace:
[bt] (0) /home/mo/.conda/envs/tracker-py36/lib/python3.6/site-packages/mxnet/libmxnet.so(+0x40c1900) [0x7f1a0411e900]
[bt] (1) /lib/x86_64-linux-gnu/libc.so.6(+0x3efd0) [0x7f1a5fa94fd0]
[bt] (2) /home/mo/pyCFTrackers/lib/eco/features/_gradient.cpython-36m-x86_64-linux-gnu.so(grad1(float*, float*, float*, int, int, int)+0x96) [0x7f19e00069d6]
[bt] (3) /home/mo/pyCFTrackers/lib/eco/features/_gradient.cpython-36m-x86_64-linux-gnu.so(gradMag(float*, float*, float*, int, int, int, bool)+0x1a1) [0x7f19e00070e1]
[bt] (4) /home/mo/pyCFTrackers/lib/eco/features/_gradient.cpython-36m-x86_64-linux-gnu.so(+0x15e7) [0x7f19e00065e7]
[bt] (5) /home/mo/.conda/envs/tracker-py36/bin/../lib/libpython3.6m.so.1.0(_PyCFunction_FastCallDict+0x229) [0x7f1a60ad5a29]
[bt] (6) /home/mo/.conda/envs/tracker-py36/bin/../lib/libpython3.6m.so.1.0(+0x147f4c) [0x7f1a60b5af4c]
[bt] (7) /home/mo/.conda/envs/tracker-py36/bin/../lib/libpython3.6m.so.1.0(_PyEval_EvalFrameDefault+0x26fd) [0x7f1a60b5dbbd]
[bt] (8) /home/mo/.conda/envs/tracker-py36/bin/../lib/libpython3.6m.so.1.0(+0x1464c0) [0x7f1a60b594c0]

Get Dataset

如何将otb100 数据导入进去 自己创建一个dataset文件夹吗

example files unuseable

there is no data to even run an example. your description in readme is incorrent. python cf_demo.py not working. and in repo no folder dataset, and also no any documentation about format or content of this directory. wtf?

PS C:\Users\username\Desktop\pyCFTrackers\examples> python .\cf_demo.py Traceback (most recent call last): File ".\cf_demo.py", line 7, in <module> data_names=sorted(os.listdir(data_dir)) FileNotFoundError: [WinError 3] Системе не удается найти указанный путь: '../dataset/test' PS C:\Users\username\Desktop\pyCFTrackers\examples>

trackers working very slow

Hi! i tried your trackers on video and they work very slow for me (~10 second on iteration). i'm tried to use moose and kcf trackers.
i'm use:
cupy-cuda100 7.1.1
mxnet-cu100 1.5.1.post0
Cuda compilation tools, release 10.0, V10.0.130
what could be the problem?

关于pysot-toolkit

请问您在使用pysot-toolkit的时候很顺利吗,我遇到很多问题,并不能正常的使用这个工具。主要问题是region不能识别和numba报错,想知道您是如何使用的

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.