KaiyangZhou/pytorch-center-loss

Pytorch implementation of Center Loss

51
/ 100
Established

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.

Stale 6m No Package No Dependents
Maintenance 0 / 25
Adoption 10 / 25
Maturity 16 / 25
Community 25 / 25

How are scores calculated?

Stars

995

Forks

220

Language

Python

License

MIT

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.