python视觉库_PyTracking - 基于PyTorch的视觉跟踪库

PyTracking是一个Python框架,专注于视觉对象跟踪和视频对象分割,支持多目标跟踪和视频对象分割(VOS)。它提供了PrDiMP、DiMP和ATOM等官方跟踪器的实现,包括训练代码和预训练模型。该库还包含用于评估跟踪器性能的工具和通用构建模块。安装PyTracking后,可以使用提供的脚本从网络摄像头运行示例。
摘要由CSDN通过智能技术生成

PyTracking

A general python framework for visual object tracking and video object segmentation, based on PyTorch.

New version released!

Tools for analyzing results: performance metrics, plots, tables, etc.

Support for multi-object tracking. Any tracker can be run in multi-object mode.

Support for Video Object Segmentation (VOS): training, datasets, evaluation, etc.

Much more...

Note: Many of our changes are breaking. Integrate your extensions into the new version of PyTracking should not be difficult. We advise to check the updated implementation and train scripts of DiMP in order to update your code.

Highlights

PrDiMP, DiMP and ATOM Trackers

Official implementation of the PrDiMP (CVPR 2020), DiMP (ICCV 2019), and ATOM (CVPR 2019) trackers, including complete training code and trained models.

Libraries for implementing and evaluating visual trackers. It includes

All common tracking and video object segmentation datasets.

Scripts to analyse tracker performance and obtain standard performance scores.

General building blocks, including deep networks, optimization, feature extraction and utilities for correlation filter tracking.

LTR (Learning Tracking Representations) is a general framework for training your visual tracking networks. It is equipped with

All common training datasets for visual object tracking and segmentation.

Functions for data sampling, processing etc.

Network modules for visual tracking.

And much more...

Trackers

The toolkit contains the implementation of the following trackers.

PrDiMP

Official implementation of the PrDiMP tracker. This work proposes a general formulation for probabilistic regression, which is then applied to visual tracking in the DiMP framework. The network predicts the conditional probability density of the target state given an input image. The probability density is flexibly parametrized by the neural network itself. The regression network is trained by directly minimizing the Kullback-Leibler divergence.

DiMP

Official implementation of the DiMP tracker. DiMP is an end-to-end tracking architecture, capable of fully exploiting both target and background appearance information for target model prediction. It is based on a target model prediction network, which is derived from a discriminative learning loss by applying an iterative optimization procedure. The model prediction network employs a steepest descent based methodology that computes an optimal step length in each iteration to provide fast convergence. The model predictor also includes an initializer network that efficiently provides an initial estimate of the model weights.

ATOM

Official implementation of the ATOM tracker. ATOM is based on (i) a target estimation module that is trained offline, and (ii) target classification module that is trained online. The target estimation module is trained to predict the intersection-over-union (IoU) overlap between the target and a bounding box estimate. The target classification module is learned online using dedicated optimization techniques to discriminate between the target object and background.

ECO

An unofficial implementation of the ECO tracker. It is implemented based on an extensive and general library for complex operations and Fourier tools. The implementation differs from the version used in the original paper in a few important aspects.

This implementation uses features from vgg-m layer 1 and resnet18 residual block 3.

As in our later UPDT tracker, seperate filters are trained for shallow and deep features, and extensive data augmentation is employed in the first frame.

The GMM memory module is not implemented, instead the raw projected samples are stored.

Please refer to the official implementation of ECO if you are looking to reproduce the results in the ECO paper or download the raw results.

The tracker models trained using PyTracking, along with their results on standard tracking benchmarks are provided in the model zoo.

Installation

Clone the GIT repository.

git clone https://github.com/visionml/pytracking.git

Clone the submodules.

In the repository directory, run the commands:

git submodule update --init

Install dependencies

Run the installation script to install all the dependencies. You need to provide the conda install path (e.g. ~/anaconda3) and the name for the created conda environment (here pytracking).

bash install.sh conda_install_path pytracking

This script will also download the default networks and set-up the environment.

Note: The install script has been tested on an Ubuntu 18.04 system. In case of issues, check the detailed installation instructions.

Windows: (NOT Recommended!) Check these installation instructions.

Let's test it!

Activate the conda environment and run the script pytracking/run_webcam.py to run ATOM using the webcam input.

conda activate pytracking

cd pytracking

python run_webcam.py dimp dimp50

What's next?

pytracking - for implementing your tracker

ltr - for training your tracker

Main Contributors

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值