SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2111.12084 · 2021

Self-Supervised Pre-Training for Transformer-Based Person Re-Identification

arXiv · PDF · Open in the Atlas

Code that ran

7 of 8 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 5 failures of our instrument; 1 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2111.12084.json · badge: /api/ran/2111.12084.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
damo-cv/TransReID-SSL community (classifier label)
classifier basis not recorded on the link
7 ran · 1 no recorded run
FunctionStatusWhere it lives
cosine_dist Ran
ran; our contract draft was wrong, not the code
damo-cv/TransReID-SSL/transreid_pytorch/loss/triplet_loss.py
pointer only (licence: MIT); the stored copy get_code serves, from stone96123/MDReID, is pointer only (licence: NONE) · get_code("71b4e1d375d8fd78")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, damo-cv/TransReID-SSL, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

euclidean_dist Ran
ran; our contract draft was wrong, not the code
damo-cv/TransReID-SSL/transreid_pytorch/loss/triplet_loss.py
pointer only (licence: MIT); the stored copy get_code serves, from stone96123/MDReID, is pointer only (licence: NONE) · get_code("5315f75bf5367f0a")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, damo-cv/TransReID-SSL, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

normalize Ran
ran; our contract draft was wrong, not the code
damo-cv/TransReID-SSL/transreid_pytorch/loss/triplet_loss.py
pointer only (licence: MIT) · get_code("e3b2a83f52101f2d")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, damo-cv/TransReID-SSL, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

read_image Ran
ran, honoured the contract we drafted
damo-cv/TransReID-SSL/transreid_pytorch/datasets/bases.py
pointer only (licence: MIT) · get_code("5f1101145f896208")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, damo-cv/TransReID-SSL, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

shuffle_unit Ran
ran on a synthesized input
damo-cv/TransReID-SSL/transreid_pytorch/model/make_model.py
pointer only (licence: MIT) · get_code("fa0d6dd791ce2927")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, damo-cv/TransReID-SSL, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

train_collate_fn Ran
ran; our contract draft was wrong, not the code
damo-cv/TransReID-SSL/transreid_pytorch/datasets/make_dataloader.py
pointer only (licence: MIT) · get_code("a9297ce0fe9cac98")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, damo-cv/TransReID-SSL, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

val_collate_fn Ran
ran; our contract draft was wrong, not the code
damo-cv/TransReID-SSL/transreid_pytorch/datasets/make_dataloader.py
pointer only (licence: MIT) · get_code("c4ae4a3fc4c4703e")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, damo-cv/TransReID-SSL, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

make_loss Not yet run
unverified (harvested, no recorded run)
damo-cv/TransReID-SSL/transreid_pytorch/loss/make_loss.py
pointer only (licence: MIT) · get_code("b26b436199409345")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, damo-cv/TransReID-SSL, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 7 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 2 the same month, 7 later) and 1 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
normalize 29 other papers
14 dated earlier, 15 later
1609.01775 (2016-09)
Performance Measures and a Data Set for Multi-Target, Multi-Camera Tracking
1804.01438 (2018-04)
Learning Discriminative Features with Multiple Granularities for Person Re-Identification
1811.07130 (2018-11)
Batch DropBlock Network for Person Re-identification and Beyond
and 26 more not named here
cosine_dist 15 other papers
4 dated earlier, 11 later
1609.01775 (2016-09)
Performance Measures and a Data Set for Multi-Target, Multi-Camera Tracking
1804.01438 (2018-04)
Learning Discriminative Features with Multiple Granularities for Person Re-Identification
2105.09701 (2021-05)
An Empirical Study of Vehicle Re-Identification on the AI City Challenge
and 12 more not named here
euclidean_dist 15 other papers
4 dated earlier, 11 later
1609.01775 (2016-09)
Performance Measures and a Data Set for Multi-Target, Multi-Camera Tracking
1804.01438 (2018-04)
Learning Discriminative Features with Multiple Granularities for Person Re-Identification
2105.09701 (2021-05)
An Empirical Study of Vehicle Re-Identification on the AI City Challenge
and 12 more not named here
read_image 10 other papers
5 dated earlier, 5 later
1903.07071 (2019-03)
Bag of Tricks and A Strong Baseline for Deep Person Re-identification
1904.07223 (2019-04)
Joint Discriminative and Generative Learning for Person Re-identification
1905.13143 (2019-05)
Semantics-Aligned Representation Learning for Person Re-identification
and 7 more not named here
shuffle_unit 3 other papers
1 dated earlier, 2 later
1609.01775 (2016-09)
Performance Measures and a Data Set for Multi-Target, Multi-Camera Tracking
2302.14335 (2023-02)
DC-Former: Diverse and Compact Transformer for Person Re-identification
aaai_28398 (2024 (year only))
Heterogeneous Test-Time Training for Multi-Modal Person Re-identification
train_collate_fn 2 other papers
1 the same month, 1 later
2111.00880 (2021-11)
Benchmarks for Corruption Invariant Person Re-identification
2306.13856 (2023-06)
Learning-to-Rank Meets Language: Boosting Language-Driven Ordering Alignment for Ordinal Classification
val_collate_fn 2 other papers
1 the same month, 1 later
2111.00880 (2021-11)
Benchmarks for Corruption Invariant Person Re-identification
2306.13856 (2023-06)
Learning-to-Rank Meets Language: Boosting Language-Driven Ordering Alignment for Ordinal Classification

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Transformer-based supervised pre-training achieves great performance in person re-identification (ReID). However, due to the domain gap between ImageNet and ReID datasets, it usually needs a larger pre-training dataset (e.g. ImageNet-21K) to boost the performance because of the strong data fitting ability of the transformer. To address this challenge, this work targets to mitigate the gap between the pre-training and ReID datasets from the perspective of data and model structure, respectively. We first investigate self-supervised learning (SSL) methods with Vision Transformer (ViT) pretrained on unlabelled person images (the LUPerson dataset), and empirically find it significantly surpasses ImageNet supervised pre-training models on ReID tasks. To further reduce the domain gap and accelerate the pre-training, the Catastrophic Forgetting Score (CFS) is proposed to evaluate the gap between pre-training and fine-tuning data. Based on CFS, a subset is selected via sampling relevant data close to the down-stream ReID data and filtering irrelevant data from the pre-training dataset. For the model structure, a ReID-specific module named IBN-based convolution stem (ICS) is proposed to bridge the domain gap by learning more invariant features. Extensive experiments have been conducted to fine-tune the pre-training models under supervised learning, unsupervised domain adaptation (UDA), and unsupervised learning (USL) settings. We successfully downscale the LUPerson dataset to 50% with no performance degradation. Finally, we achieve state-of-the-art performance on Market-1501 and MSMT17. For example, our ViT-S/16 achieves 91.3%/89.9%/89.6% mAP accuracy on Market1501 for supervised/UDA/USL ReID. Codes and models will be released to https://github.com/michuanhaohao/TransReID-SSL.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2111.12084")
get_code_for_paper("2111.12084")
have("2111.12084")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2111.12084.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2111.12084.svg)](https://syntology.ai/paper/2111.12084)

Connect an agent — have() is free.