KaiyangZhou/pytorch-center-loss
Pytorch implementation of Center Loss
Combines cross-entropy loss with a learnable center loss component that minimizes intra-class feature variance while maximizing inter-class separation, enabling tighter feature clustering for face recognition and person re-identification tasks. The implementation maintains per-class feature centers updated via separate SGD optimization, with configurable weight balancing between classification and center loss terms. Includes a complete MNIST demonstration pipeline with visualization of feature space evolution, showing significant accuracy improvements (10% → 98%+) when center loss supplements softmax training.
995 stars. No commits in the last 6 months.
Stars
995
Forks
220
Language
Python
License
MIT
Category
Last pushed
Feb 19, 2023
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/ml-frameworks/KaiyangZhou/pytorch-center-loss"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Related frameworks
adobe/antialiased-cnns
pip install antialiased-cnns to improve stability and accuracy
HelmchenLabSoftware/Cascade
Calibrated inference of spiking from calcium ΔF/F data using deep networks
lucidrains/RIM-pytorch
Implementation of Recurrent Independent Mechanisms in Pytorch
orchardbirds/bokbokbok
Custom Loss Functions and Evaluation Metrics for XGBoost and LightGBM
kimhc6028/relational-networks
Pytorch implementation of "A simple neural network module for relational reasoning" (Relational Networks)