All Projects → cap-ntu → FedReID

cap-ntu / FedReID

Licence: MIT license
Implementation of Federated Learning to Person Re-identification (Code for ACMMM 2020 paper)

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to FedReID

FedNLP
FedNLP: An Industry and Research Integrated Platform for Federated Learning in Natural Language Processing, Backed by FedML, Inc. The Previous Research Version is Accepted to NAACL 2022
Stars: ✭ 215 (+216.18%)
Mutual labels:  federated-learning
MetaBIN
[CVPR2021] Meta Batch-Instance Normalization for Generalizable Person Re-Identification
Stars: ✭ 58 (-14.71%)
Mutual labels:  person-reidentification
GrouProx
FedGroup, A Clustered Federated Learning framework based on Tensorflow
Stars: ✭ 20 (-70.59%)
Mutual labels:  federated-learning
PyAriesFL
Federated Learning on HyperLedger Aries
Stars: ✭ 19 (-72.06%)
Mutual labels:  federated-learning
PyVertical
Privacy Preserving Vertical Federated Learning
Stars: ✭ 133 (+95.59%)
Mutual labels:  federated-learning
federated-learning-poc
Proof of Concept of a Federated Learning framework that maintains the privacy of the participants involved.
Stars: ✭ 13 (-80.88%)
Mutual labels:  federated-learning
federated-learning
tf implementation of federated learning
Stars: ✭ 36 (-47.06%)
Mutual labels:  federated-learning
substra
Substra is a framework for traceable ML orchestration on decentralized sensitive data.
Stars: ✭ 143 (+110.29%)
Mutual labels:  federated-learning
srijan-gsoc-2020
Healthcare-Researcher-Connector Package: Federated Learning tool for bridging the gap between Healthcare providers and researchers
Stars: ✭ 17 (-75%)
Mutual labels:  federated-learning
decentralized-ml
Full stack service enabling decentralized machine learning on private data
Stars: ✭ 50 (-26.47%)
Mutual labels:  federated-learning
Hetero-center-loss-for-cross-modality-person-re-id
Code for paper "Hetero-center loss for cross-modality person re-identification"
Stars: ✭ 47 (-30.88%)
Mutual labels:  person-reidentification
flPapers
Paper collection of federated learning. Conferences and Journals Collection for Federated Learning from 2019 to 2021, Accepted Papers, Hot topics and good research groups. Paper summary
Stars: ✭ 76 (+11.76%)
Mutual labels:  federated-learning
AdversarialBinaryCoding4ReID
Codes of the paper "Adversarial Binary Coding for Efficient Person Re-identification"
Stars: ✭ 12 (-82.35%)
Mutual labels:  person-reidentification
ambianic-edge
The core runtime engine for Ambianic Edge devices.
Stars: ✭ 98 (+44.12%)
Mutual labels:  federated-learning
AOS4ReID
Adversarially Occluded Samples for Person Re-identification, CVPR 2018
Stars: ✭ 32 (-52.94%)
Mutual labels:  person-reidentification
Awesome-Cross-Domain-Person-Re-identification
Awesome-Cross-Domain-Person-Re-identification
Stars: ✭ 17 (-75%)
Mutual labels:  person-reidentification
Federated-Learning-and-Split-Learning-with-raspberry-pi
SRDS 2020: End-to-End Evaluation of Federated Learning and Split Learning for Internet of Things
Stars: ✭ 54 (-20.59%)
Mutual labels:  federated-learning
fedpa
Federated posterior averaging implemented in JAX
Stars: ✭ 38 (-44.12%)
Mutual labels:  federated-learning
pFedMe
Personalized Federated Learning with Moreau Envelopes (pFedMe) using Pytorch (NeurIPS 2020)
Stars: ✭ 196 (+188.24%)
Mutual labels:  federated-learning
communication-in-cross-silo-fl
Official code for "Throughput-Optimal Topology Design for Cross-Silo Federated Learning" (NeurIPS'20)
Stars: ✭ 19 (-72.06%)
Mutual labels:  federated-learning

FedReID

Code for ACMMM 2020 oral paper - Performance Optimization for Federated Person Re-identification via Benchmark Analysis

Personal re-identification is an important computer vision task, but its development is constrained by the increasing privacy concerns. Federated learning is a privacy-preserving machine learning technique that learns a shared model across decentralized clients. In this work, we implement federated learning to person re-identification (FedReID) and optimize its performance affected by statistical heterogeneity in the real-world scenario.

Algorithm: Federated Partial Averaging (FedPav)

Prerequisite

  • Install the libraries listed in requirements.txt
    pip install -r requirements.txt
    

Datasets preparation

🎉 We are now releasing the processed datasets. (April, 2022)

Please email us to request for the datasets with:

  1. A short self-introduction.
  2. The purposes of using these datasets.

⚠️ Further distribution of the datasets are prohibited.

We use 9 popular ReID datasets for the benchmark.

Dataset Preprocess From Scratch

You can obtain the datasets from awesome-reid-dataset

Dataset folder structure after preprocessing is provided here

You can follow the following steps to preprocess datasets:

  1. Download all datasets to data_preprocess/data folder.
  2. We provide the Json files for spliting the small datasets. (We haven't officially release the split.json files. Please send an email with short introduction to request for them.)
  3. Run the following script to prepare all datasets:
    python prepare_all_datasets.py
    
  4. Move the data folder to the root directory.
    move data_preprocess/data ./
    
  5. For federated-by-identity scenario:
    python split_id_data.py
    
  6. For federated-by-camera scenario:
    python split_camera_data.py
    
  7. For merging all datasets to do merge training, you can use rename_dataset.py and mix_datasets.py.

Run the experiments

Remember to save the log file for later use!

  • Run Federated Partial Averaging (FedPav):
    python main.py
    
  • Run FedPav with knowledge distillation (KD):
    python main.py --kd --regularization
    
  • Run FedPav with cosine distance weight (CDW):
    python main.py --cdw
    
  • Run FedPav with knowledge distillation and cosine distance weight:
    python main.py --cdw --kd --regularization
    

Citation

@inproceedings{zhuang2020performance,
  title={Performance Optimization of Federated Person Re-identification via Benchmark Analysis},
  author={Zhuang, Weiming and Wen, Yonggang and Zhang, Xuesen and Gan, Xin and Yin, Daiying and Zhou, Dongzhan and Zhang, Shuai and Yi, Shuai},
  booktitle={Proceedings of the 28th ACM International Conference on Multimedia},
  pages={955--963},
  year={2020}
}

Maintainers

  • Weiming Zhuang, Nanyang Technological University. :octocat:
  • Xin Gan, Nanyang Technological University. :octocat:
  • Daiying Yin, Nanyang Technological University. (Contributor)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].