← Open Source
chenxin-dlut

TransT

Transformer Tracking (CVPR2021).

ModelsVision modelsPython
Open on GitHub
Momentum
+0stars in 24 hours0.0%
636
Stars
108
Forks
+0
This week
1
Contributors
Created 2021-03-17 · Updated 2026-10-09 · #15742 today
Top developers

chenxin-dlut/TransT is ranked 15,742 with 636 stars.

Same-category comparison

chenxin-dlut/TransT is ranked 15,742 among these 8 peers; google-deepmind/alphamissense is ranked 15,744.

Same-category comparison
NameRankMetrics
SandAI-org/MAGI-2-preview15,705
Language:
Python
Stars:
638
Forks:
19
Description:
MAGI-2-preview: Scaling Video Generation Models Efficiently.
UMass-Embodied-AGI/3D-VLA15,707
Language:
Python
Stars:
638
Forks:
25
Description:
[ICML 2024] 3D-VLA: A 3D Vision-Language-Action Generative World Model.
ivcylc/OpenMusic15,710
Language:
Python
Stars:
638
Forks:
73
Description:
OpenMusic: SOTA Text-to-music (TTM) Generation.
xuxw98/ESAM15,732
Language:
Python
Stars:
637
Forks:
34
Description:
[ICLR 2025, Oral] EmbodiedSAM: Online Segment Any 3D Thing in Real Time.
google-deepmind/alphamissense15,744
Language:
Python
Stars:
636
Forks:
85
RUC-GSAI/YuLan-Chat15,791
Language:
Python
Stars:
632
Forks:
57
Description:
YuLan: An Open-Source Large Language Model.
kepengxu/PGTFormer15,803
Language:
Python
Stars:
631
Forks:
27
Description:
[IJCAI'24] Beyond Alignment: Blind Video Face Restoration via Parsing-Guided Temporal-Coherent Transformer.
kakaobrain/mindall-e15,835
Language:
Python
Stars:
629
Forks:
64
Description:
PyTorch implementation of a 1.3B text-to-image generation model trained on 14 million image-text pairs.
Key parameters and specifications
Key parameters and specifications
ParameterValue
LanguagePython
CategoryModels
SubcategoryVision models
KeywordsBenchmarks, Datasets, Model architecture
Stars636
Forks108
Contributors1
Created date2021-03-17
Updated date2026-10-09
Stars in 1 day0
Stars in 7 days0
Rank15,742
Previous rank15,541
Rank change-201
7-day stars rank15,154
Previous 7-day stars rank11,158
7-day stars rank change-3,996
Total stars rank16,063
Previous total stars rank16,036
Total stars rank change-27
CountryChina
README summary

TransT - Transformer Tracking [CVPR2021] Official implementation of the TransT (CVPR2021) , including training code and trained models. News :trophy: **TransT-M wins VOT2021 Real-Time Challenge with EAOMultistart 0. The code will be released soon** Tracker TransT #### [**[Paper]**]( [**[Models(google)]**]( [**[Models(baidu:iiau)]**]( [**[Raw Results]**]( This work presents a attention-based feature fusion network, which effectively combines the template and search region features using attention. Specifically, the proposed method includes an ego-context augment module based on self-attention and a

cross-feature augment module based on cross-attention. We present a Transformer tracking (named TransT) method based on the Siamese-like feature extraction backbone, the designed attention-based fusion mechanism, and the classification and regression head. TransT is a very simple and efficient tracker, without online update module, using the same model and hyparameter for all test sets. Results For VOT2020, we add a mask branch to generate mask, without any hyparameter-tuning. The code of the mask branch will

be released soon. Installation This document contains detailed instructions for installing the necessary dependencied for **TransT**. The instructions have been tested on Ubuntu 18. Install dependencies Create and activate a conda environment Install PyTorch Install other packages Setup the environment Create the default environment setting files. You can modify these files to set the paths to datasets, results paths etc. Add the project path to environment variables Open ~/. bashrc, and add the following line to the end. Download the pre

-trained networks Download the network for TransT and put it in the directory set by "network_path" in "pytracking/evaluation/local. By default, it is set to pytracking/networks. py to set the paths to datasets, results paths etc. Runing the following commands to train the TransT. You can customize some parameters by modifying transt. py Evaluation We integrated PySOT for evaluation. You can download json files in PySOT or here. You can also use pytracking to test and evaluate

tracker. The results might be slightly different with PySOT due to the slight difference in implementation (pytracking saves results as integers, pysot toolkit saves the results as decimals). Getting Help If you meet problem, please try searching our Github issues, if you can't find solutions, feel free to open a new issue. Citation Acknowledgement This is a modified version of the python framework PyTracking based on **Pytorch**, also borrowing from PySOT and detr. We would like to thank their authors

for providing great frameworks and toolkits. Contact Xin Chen (email:chenxin3131@mail.

Frequently asked questions

How many stars and forks are recorded?

chenxin-dlut/TransT has 636 stars and 108 forks.

What is the repository rank?

chenxin-dlut/TransT is ranked 15,742.

What language and category are recorded?

chenxin-dlut/TransT has 636 stars, uses Python and belongs to Models.

Which repository is closest in rank?

chenxin-dlut/TransT is compared with google-deepmind/alphamissense, ranked 15,744 with 636 stars.

README

TransT - Transformer Tracking [CVPR2021]

Official implementation of the TransT (CVPR2021) , including training code and trained models.

News

  • :trophy: TransT-M wins VOT2021 Real-Time Challenge with EAOMultistart 0.550! The code will be released soon

Tracker

TransT

[Paper] [Models(google)] [Models(baidu:iiau)] [Raw Results]

This work presents a attention-based feature fusion network, which effectively combines the template and search region features using attention. Specifically, the proposed method includes an ego-context augment module based on self-attention and a cross-feature augment module based on cross-attention. We present a Transformer tracking (named TransT) method based on the Siamese-like feature extraction backbone, the designed attention-based fusion mechanism, and the classification and regression head.

TransT is a very simple and efficient tracker, without online update module, using the same model and hyparameter for all test sets.

Results

For VOT2020, we add a mask branch to generate mask, without any hyparameter-tuning. The code of the mask branch will be released soon.

Model

LaSOT
AUC (%)

TrackingNet
AUC (%)

GOT-10k
AO (%)

VOT2020
EAO (%)

TNL2K
AUC (%)

OTB100
AUC (%)

NFS
AUC (%)

UAV123
AUC (%)

Speed

Params

TransT-N2

64.2

80.9

69.9

68.1

65.7

67.0

70fps

16.7M

TransT-N4

64.9

81.4

72.3

49.5

51.0

69.4

65.7

69.1

50fps

23.0M

Installation

This document contains detailed instructions for installing the necessary dependencied for TransT. The instructions have been tested on Ubuntu 18.04 system.

Install dependencies

  • Create and activate a conda environment

    conda create -n transt python=3.7
    conda activate transt
    
  • Install PyTorch

    conda install -c pytorch pytorch=1.5 torchvision=0.6.1 cudatoolkit=10.2
    
  • Install other packages

    conda install matplotlib pandas tqdm
    pip install opencv-python tb-nightly visdom scikit-image tikzplotlib gdown
    conda install cython scipy
    sudo apt-get install libturbojpeg
    pip install pycocotools jpeg4py
    pip install wget yacs
    pip install shapely==1.6.4.post2
    
  • Setup the environment
    Create the default environment setting files.

    # Change directory to 
    cd TransT
    
    # Environment settings for pytracking. Saved at pytracking/evaluation/local.py
    python -c "from pytracking.evaluation.environment import create_default_local_file; create_default_local_file()"
    
    # Environment settings for ltr. Saved at ltr/admin/local.py
    python -c "from ltr.admin.environment import create_default_local_file; create_default_local_file()"
    

You can modify these files to set the paths to datasets, results paths etc.

  • Add the project path to environment variables
    Open ~/.bashrc, and add the following line to the end. Note to change to your real path.
    export PYTHONPATH=:$PYTHONPATH
    
  • Download the pre-trained networks
    Download the network for TransT and put it in the directory set by "network_path" in "pytracking/evaluation/local.py". By default, it is set to pytracking/networks.

Quick Start

Traning

  • Modify local.py to set the paths to datasets, results paths etc.
  • Runing the following commands to train the TransT. You can customize some parameters by modifying transt.py
    conda activate transt
    cd TransT/ltr
    python run_training.py transt transt
    

Evaluation

  • We integrated PySOT for evaluation. You can download json files in PySOT or here.

    You need to specify the path of the model and dataset in the test.py.

    net_path = '/path_to_model' #Absolute path of the model
    dataset_root= '/path_to_datasets' #Absolute path of the datasets
    

    Then run the following commands.

    conda activate TransT
    cd TransT
    python -u pysot_toolkit/test.py --dataset  --name 'transt' #test tracker #test tracker
    python pysot_toolkit/eval.py --tracker_path results/ --dataset  --num 1 --tracker_prefix 'transt' #eval tracker
    

    The testing results will in the current directory(results/dataset/transt/)

  • You can also use pytracking to test and evaluate tracker. The results might be slightly different with PySOT due to the slight difference in implementation (pytracking saves results as integers, pysot toolkit saves the results as decimals).

Getting Help

If you meet problem, please try searching our Github issues, if you can't find solutions, feel free to open a new issue.

  • ImportError: cannot import name region

Solution: You can just delete from pysot_toolkit.toolkit.utils.region import vot_overlap, vot_float2str in test.py if you don't test VOT2019/18/16. You can also build region by python setup.py build_ext --inplace in pysot_toolkit.

Citation

@inproceedings{TransT,
title={Transformer Tracking},
author={Chen, Xin and Yan, Bin and Zhu, Jiawen and Wang, Dong and Yang, Xiaoyun and Lu, Huchuan},
booktitle={CVPR},
year={2021}
}

Acknowledgement

This is a modified version of the python framework PyTracking based on Pytorch, also borrowing from PySOT and detr. We would like to thank their authors for providing great frameworks and toolkits.

Contact

Nearby in the ranking
Similar items