# PyTracking
A general python library for visual tracking algorithms.
## Table of Contents
* [Running a tracker using Pytracking toolkit](#running-a-tracker-using-pytracking-toolkit)
* [Running a tracker using GOT-10k toolkit](#running-a-tracker-using-got-10k-toolkit)
* [Overview](#overview)
* [Trackers](#trackers)
* [TrDiMP and TrSiam](#trdimp-and-trsiam)
* [ATOM](#ATOM)
* [ECO](#ECO)
* [Analysis](#analysis)
* [Libs](#libs)
* [Integrating a new tracker](#integrating-a-new-tracker)
## Running a tracker using PyTracking Toolkit
The installation script will automatically generate a local configuration file "evaluation/local.py". In case the file was not generated, run ```evaluation.environment.create_default_local_file()``` to generate it. Next, set the paths to the datasets you want
to use for evaluations. You can also change the path to the networks folder, and the path to the results folder, if you do not want to use the default paths. If all the dependencies have been correctly installed, you are set to run the trackers.
The toolkit provides many ways to run a tracker.
**Run the tracker on webcam feed**
This is done using the run_webcam script. The arguments are the name of the tracker, and the name of the parameter file. You can select the object to track by drawing a bounding box. **Note:** It is possible to select multiple targets to track!
```bash
python run_webcam.py tracker_name parameter_name
```
**Run the tracker on some dataset sequence**
This is done using the run_tracker script.
```bash
python run_tracker.py tracker_name parameter_name --dataset_name dataset_name --sequence sequence --debug debug --threads threads
```
Here, the dataset_name is the name of the dataset used for evaluation, e.g. ```otb```. See [evaluation.datasets.py](evaluation/datasets.py) for the list of datasets which are supported. The sequence can either be an integer denoting the index of the sequence in the dataset, or the name of the sequence, e.g. ```'Soccer'```.
The ```debug``` parameter can be used to control the level of debug visualizations. ```threads``` parameter can be used to run on multiple threads.
**Run the tracker on a set of datasets**
This is done using the run_experiment script. To use this, first you need to create an experiment setting file in ```pytracking/experiments```. See [myexperiments.py](experiments/myexperiments.py) for reference.
```bash
python run_experiment.py experiment_module experiment_name --dataset_name dataset_name --sequence sequence --debug debug --threads threads
```
Here, ```experiment_module``` is the name of the experiment setting file, e.g. ```myexperiments``` , and ``` experiment_name``` is the name of the experiment setting, e.g. ``` atom_nfs_uav``` .
Examples: run TrDiMP/TrSiam on the TrackingNet:
```bash
python run_experiment.py myexperiments trdimp_trackingnet
```
```bash
python run_experiment.py myexperiments trsiam_trackingnet
```
**Run the tracker on a video file**
This is done using the run_video script.
```bash
python run_video.py experiment_module experiment_name videofile --optional_box optional_box --debug debug
```
Here, ```videofile``` is the path to the video file. You can either draw the box by hand or provide it directly in the ```optional_box``` argument.
## Running a tracker using GOT-10k Toolkit
To evaluate the tracker on the GOT-10k benchmark, you can download the GOT-10k toolkit using ```pip```:
```bash
pip install --upgrade got10k
```
For more details, please refer to GOT-10K ([Github](https://github.com/got-10k/toolkit.git)).
To run and evaluate the tracker using GOT-10k toolkit, you have to modify the ```/tracker/trdimp/trdimp.py``` to ensure it supports the input and output formats of GOT-10k toolkit. ```/tracker/trdimp/trdimp_for_GOT.py``` is an example.
**Run the tracker on the GOT-10k**
This is done using the provided ```GOT10k_GOT.py``` script. You can also write your own script. More details can be found in [GOT-10k](https://github.com/got-10k/toolkit.git)
```bash
python GOT10k_GOT.py --tracker_name tracker_name --tracker_param tracker_param
```
Here, ```tracker_name``` is the name of tracker, e.g. ```trdimp```. ```tracker_param``` is the parameter setting, e.g. ```trdimp``` and ```trsiam```.
**Run the tracker on other benchmarks using GOT-10k toolkit**
Please refer to ```GOT10k_NFS.py```, ```GOT10k_UAV.py```, ```GOT10k_VOT.py``` for detials. Do not forget to change the dataset path in these scripts.
For example, to run and evaluate the TrDiMP and TrSiam on the NFS dataset:
```bash
python GOT10k_NFS.py --tracker_name trdimp --tracker_param trdimp
```
```bash
python GOT10k_NFS.py --tracker_name trdimp --tracker_param trsiam
```
## Overview
The tookit consists of the following sub-modules.
- [analysis](analysis): Contains scripts to analyse tracking performance, e.g. obtain success plots, compute AUC score. It also contains a [script](analysis/playback_results.py) to playback saved results for debugging.
- [evaluation](evaluation): Contains the necessary scripts for running a tracker on a dataset. It also contains integration of a number of standard tracking and video object segmentation datasets, namely [OTB-100](http://cvlab.hanyang.ac.kr/tracker_benchmark/index.html), [NFS](http://ci2cv.net/nfs/index.html),
[UAV123](https://ivul.kaust.edu.sa/Pages/pub-benchmark-simulator-uav.aspx), [Temple128](http://www.dabi.temple.edu/~hbling/data/TColor-128/TColor-128.html), [TrackingNet](https://tracking-net.org/), [GOT-10k](http://got-10k.aitestunion.com/), [LaSOT](https://cis.temple.edu/lasot/), [VOT](http://www.votchallenge.net), [Temple Color 128](http://www.dabi.temple.edu/~hbling/data/TColor-128/TColor-128.html), [DAVIS](https://davischallenge.org), and [YouTube-VOS](https://youtube-vos.org).
- [experiments](experiments): The experiment setting files must be stored here,
- [features](features): Contains tools for feature extraction, data augmentation and wrapping networks.
- [libs](libs): Includes libraries for optimization, dcf, etc.
- [notebooks](notebooks) Jupyter notebooks to analyze tracker performance.
- [parameter](parameter): Contains the parameter settings for different trackers.
- [tracker](tracker): Contains the implementations of different trackers.
- [util_scripts](util_scripts): Some util scripts for e.g. generating packed results for evaluation on GOT-10k and TrackingNet evaluation servers, downloading pre-computed results.
- [utils](utils): Some util functions.
- [VOT](VOT): VOT Integration.
## Trackers
The toolkit contains the implementation of the following trackers.
### TrDiMP and TrSiam
The official implementation for the TrDiMP tracker and TrSiam tracker.
The tracker implementation file can be found at [tracker.trdimp](tracker/trdimp).
##### Parameter Files
Illustrations of the parameter settings.
* **[trdimp](parameter/trdimp/trdimp.py)**: The default parameter setting with ResNet-50 backbone which was used to produce TrDiMP results in the paper, except on VOT and LaSOT.
* **[trsiam](parameter/trdimp/trsiam.py)**: The default parameter setting with ResNet-50 backbone which was used to produce TrSiam results in the paper, except on VOT and LaSOT.
* **[trdimp_vot](parameter/trdimp/trdimp_vot.py)**: The parameters settings used to generate the TrDiMP VOT2018 results in the paper.
* **[trdimp_lasot](parameter/trdimp/trdimp_lasot.py)**: The parameters settings used to generate the TrDiMP LaSOT results in the paper.
The difference between the VOT and the non-VOT settings stems from the fact that the VOT protocol measures robustness in a very different manner compared to other benchmarks. In most benchmarks, it is highly important to be able to robustly *redetect* the target after e.g. an occlusion or brief target loss. On the other hand, in VOT the tracker is reset if the prediction does not overlap with the target on a *single* frame. This is then counted as a
没有合适的资源?快使用搜索试试~ 我知道了~
基于transformer的视频对象识别跟踪.zip
共345个文件
py:184个
pyc:132个
txt:9个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 186 浏览量
2024-04-16
16:56:36
上传
评论
收藏 1.24MB ZIP 举报
温馨提示
基于transformer的视频对象识别跟踪 本项目是一个基于transformer的视频对象识别跟踪系统,旨在通过先进的机器学习和深度学习技术,为用户提供高效、准确的对象识别和跟踪服务。 项目采用transformer模型作为核心算法,该模型是一种基于自注意力机制的深度学习模型,能够有效地处理序列数据。在视频对象识别跟踪领域,transformer模型可以学习到对象的特征表示,并在视频序列中准确地识别和跟踪对象。 系统首先对输入的视频数据进行预处理,提取帧图像并进行尺寸调整。然后,通过transformer模型对视频帧进行特征提取和编码,以获取对象的特征表示。接着,系统利用这些特征表示进行对象识别,即判断每个对象属于哪个类别。最后,系统通过跟踪算法对识别出的对象进行持续跟踪,以实现视频对象识别跟踪的功能。 根据实际测试和评估结果,本系统在视频对象识别和跟踪方面表现出较高的准确率和鲁棒性。同时,本系统还提供了可视化的界面和交互式的操作方式,方便用户进行视频数据分析和结果展示。 总之,本项目是一个基于transformer的视频对象识别跟踪系统,具有高准确率、鲁棒性强、可视化界面和交互式操作等特点,可以为用户提供高效、准确的对象识别和跟踪服务。
资源推荐
资源详情
资源评论
收起资源包目录
基于transformer的视频对象识别跟踪.zip (345个子文件)
prroi_pooling_gpu.c 4KB
prroi_pooling_gpu_impl.cu 17KB
prroi_pooling_gpu_impl.cu 17KB
prroi_pooling_gpu_impl.cuh 2KB
prroi_pooling_gpu_impl.cuh 2KB
prroi_pooling_gpu.h 865B
trackers.ini 399B
analyze_results.ipynb 7KB
tracker_DiMP.m 1KB
README.md 12KB
INSTALL_win.md 9KB
README.md 5KB
README.md 5KB
README.md 4KB
INSTALL.md 4KB
MODEL_ZOO.md 4KB
README.md 165B
TransformerTracker.png 197KB
prroi_visualization.png 186KB
trdimp_for_GOT.py 43KB
trdimp.py 43KB
atom.py 39KB
processing.py 36KB
uavdataset.py 27KB
tpldataset.py 26KB
tracker.py 26KB
nfsdataset.py 23KB
optimizer.py 23KB
processing_utils.py 23KB
plot_results.py 22KB
otbdataset.py 22KB
optimization.py 21KB
eco.py 17KB
transforms.py 16KB
visdom.py 16KB
vos_base.py 16KB
lasotdataset.py 13KB
mobilenetv3.py 12KB
initializer.py 10KB
sampler.py 9KB
resnet.py 9KB
loader.py 9KB
download_results.py 9KB
tracking.py 9KB
augmentation.py 9KB
filter.py 8KB
youtubevos.py 8KB
optim.py 8KB
dimpnet.py 8KB
deep.py 8KB
base_trainer.py 8KB
transformer.py 8KB
transformer_dimp.py 8KB
extract_results.py 8KB
got10k.py 8KB
evaluate_vos.py 8KB
atom_iou_net.py 7KB
imagenetvid.py 7KB
tensorlist.py 7KB
multi_object_wrapper.py 7KB
data.py 7KB
synthetic_video_blend.py 7KB
dcf.py 7KB
vos_utils.py 7KB
atom_gmm_sampl.py 6KB
atom_prob_ml.py 6KB
lasot.py 6KB
playback_results.py 6KB
default_vot.py 6KB
multiscale_no_iounet.py 6KB
default.py 6KB
coco_seq.py 6KB
linear_filter.py 6KB
complex.py 6KB
tracking_net.py 6KB
coco.py 6KB
mobile3.py 5KB
default.py 5KB
loading.py 5KB
lvis.py 5KB
resnet18_vggm.py 5KB
atom_prob_ml.py 5KB
ltr_trainer.py 5KB
running.py 5KB
atom_gmm_sampl.py 5KB
preprocessing.py 5KB
vot.py 5KB
extractor.py 5KB
plotting.py 5KB
atom.py 5KB
atom_paper.py 5KB
fourier.py 4KB
votdataset.py 4KB
vot2020.py 4KB
featurebase.py 4KB
sbd.py 4KB
davis.py 4KB
residual_modules.py 4KB
datasets.py 4KB
optim.py 4KB
共 345 条
- 1
- 2
- 3
- 4
资源评论
小码蚁.
- 粉丝: 2516
- 资源: 3966
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功