294-relation-preserving-triplet-mining-for-stabilising-the-triplet-loss-in-re-identification-systems
Science Score: 10.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
○codemeta.json file
-
○.zenodo.json file
-
○DOI references
-
✓Academic publication links
Links to: arxiv.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (10.1%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: SZU-AdvTech-2023
- License: mit
- Language: Python
- Default Branch: main
- Size: 133 MB
Statistics
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
Relation Preserving Triplet Mining for Stabilising the Triplet Loss in Re-identification Sytems
WACV 2023
Adhiraj Ghosh1,2, Kuruparan Shanmugalingam1,3, Wen-Yan Lin1 1Singapore Management University 2University of Tbingen 3University of New South Wales [](https://paperswithcode.com/sota/vehicle-re-identification-on-veri-776?p=relation-preserving-triplet-mining-for) [](https://paperswithcode.com/sota/vehicle-re-identification-on-vehicleid-small?p=relation-preserving-triplet-mining-for)Network Architecture

Preparation
Installation
- Install CUDA compatible torch. Modify based on CUDA version.
conda install pytorch torchvision torchaudio pytorch-cuda=11.6 -c pytorch -c nvidia Install other dependencies.
bash pip install -r requirements.txtInstall apex (optional but recommended)
Follow the installation guidelines from https://github.com/NVIDIA/apex Then set SOLVER.USE_AMP as True in the config files directly or via command line.
Prepare Datasets
bash
mkdir data
Download the vehicle reID datasets VehicleID and VeRi-776, and the person reID datasets DukeMTMC-reID. Follow the structure and naming convention as below.
data
duke
images ..
vehicleid
images ..
veri
images ..
Prepare GMS Feature Matches
bash
mkdir gms
You need to download the GMS feature matches for VeRi, VehicleID and DukeMTMC: GMS.
The folder should follow the structure as shown below:
gms
duke
0001.pkl ..
vehicleid
00001.pkl ..
veri
001.pkl ..
Running RPTM
Training
bash python main.py --config_file configs/veri_r101.ymlThe above command trains a baseline using our RPTM algorithm for VeRi. Note that after training, the model provides evaluation results, both qualitative as well as quantitative.RPTM Thresholding Strategies
In Section 4.2 of our paper, we defined a thresholding strategy for better anchor-positive selections. We define this in config files as MODEL.RPTM_SELECT. While it is set to 'mean', feel free to work with 'min' and 'max'.
Min Thresholding
bash
python main.py --config_file configs/veri_r101.yml MODEL.RPTM_SELECT 'min'
Max Thresholding
bash
python main.py --config_file configs/veri_r101.yml MODEL.RPTM_SELECT 'max'
- Testing
bash mkdir logs python main.py --config_file configs/veri_r101.yml TEST.WEIGHT '<path to trained model>' TEST.EVAL True
Mean Average Precision(mAP) Results
- VeRi776: 88.0%
- VehicleID (query size 800): 84.8%
- VehicleID (query size 1600): 81.2%
- VehicleID (query size 2400): 80.5%
- DukeMTMC: 89.2%
Acknowledgement
GMS Feature Matching Algorithm taken from: https://github.com/JiawangBian/GMS-Feature-Matcher
Citation
If you find this code useful for your research, please cite our paper
@InProceedings{Ghosh_2023_WACV,
author = {Ghosh, Adhiraj and Shanmugalingam, Kuruparan and Lin, Wen-Yan},
title = {Relation Preserving Triplet Mining for Stabilising the Triplet Loss In re-Identification Systems},
booktitle = {Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision (WACV)},
month = {January},
year = {2023},
pages = {4840-4849}
}
Contact
If you have any questions, please feel free to contact us. E-mail: Adhiraj Ghosh , Wen-Yan Lin
Owner
- Name: SZU-AdvTech-2023
- Login: SZU-AdvTech-2023
- Kind: organization
- Repositories: 1
- Profile: https://github.com/SZU-AdvTech-2023