Overview of FastFace in FastReID
masterinsightface_pytorch baseline.repository·master·Indexed 26 days ago
https://github.com/jdai-cv/fast-reidA PyTorch-based research platform and toolbox for state-of-the-art re-identification (re-ID) algorithms, including person, vehicle, and face recognition. The repository includes implementations for Cross-domain Person Re-ID, semi-supervised domain generalizable Re-ID (SSKD), and specialized projects such as FastAttr, FastClas, FastDistill, FastFace, and FastRetri. It provides guides for dataset configuration (Market1501, DukeMTMC-reID, MSMT17), Docker deployment, and TensorRT integration.
insightface_pytorch baseline.This project provides implementations for Cross-domain Person Re-Identification, focusing on Unsupervised Learning (USL) and Unsupervised Domain Adaptation (UDA). It includes baselines for transferring models between datasets like DukeMTMC, Market-1501, and MSMT17.
Key concepts include:
MMT, SpCL, etc.) that are trained end-to-end starting from ImageNet without source-domain pre-training.FastReID serves as a library for various computer vision tasks. The following research projects demonstrate how to use FastReID as a foundation for specialized applications. Note that these are research projects and may have different stability or support levels compared to the core FastReID library.
FastReID baselines use several common methodologies. When reviewing model tables, look for these method names:
The fastreid.data package contains the core components for data pipeline management:
fastreid.data.build: Used for building data loaders and datasets.fastreid.data.data_utils: Contains utility functions for data processing.fastreid.data.samplers: Provides custom sampling strategies (e.g., for batch construction).fastreid.data.transforms: Contains image augmentation and preprocessing transformations.The 1st place solution for the NAIC20 ReID competition utilizes several specific techniques:
resnest101 and resnest200 at different resolutions (192x256 and 192x384).fastreid.config module is the central component for managing configuration settings within FastReID. It provides the infrastructure for loading, accessing, and potentially extending configuration parameters used during training, evaluation, and deployment. For detailed usage, refer to the tutorials on configuration management and extending the configuration system.To improve evaluation performance, compile the Cython modules located in the evaluation directory.
cd fastreid/evaluation/rank_cylib; make allTrain a model by executing projects/PartialReID/train_net.py with a specific configuration YAML file.
To train a re-id network using the IBN-ResNet-50 Backbone with the partial_market.yml configuration, use the following command:
CUDA_VISIBLE_DEVICES='0,1,2,3' python3 projects/PartialReID/train_net.py --config-file 'projects/PartialReID/configs/partial_market.yml'Run loss distillation by setting the MODEL.META_ARCHITECTURE to Distiller. You must provide the teacher model's configuration and weights using the KD.MODEL_CONFIG and KD.MODEL_WEIGHTS arguments. Note that these arguments expect a tuple-formatted string.
# loss distillation
python3 projects/FastDistill/train_net.py \
--config-file projects/FastDistill/configs/kd-sbs_r101ibn-sbs_r34.yaml \
--num-gpus 4 \
MODEL.META_ARCHITECTURE Distiller \
KD.MODEL_CONFIG '("projects/FastDistill/logs/dukemtmc/r101_ibn/config.yaml",)' \
KD.MODEL_WEIGHTS '("projects/FastDistill/logs/dukemtmc/r101_ibn/model_best.pth",)'PA100k dataset for evaluation. To prepare the dataset, download it from the HydraPlus-Net repository.