#349 · Primary category: Computer Vision
pytorch-center-loss
Pytorch implementation of Center Loss
Project last updated:02/19/23
GitHub Stars
993
Forks
216
Contributors
4
License
MIT
Why we included this project
Center loss is a simple but effective idea for recognition problems: you add a term that pulls every example toward its class center, so features from the same identity cluster together while staying separable from other classes. That is the objective behind this repo, a compact PyTorch implementation of Wen et al.'s 2016 paper, and the same loss powers the deep-person-reid project. The useful code sits in a single small file you can copy straight into an existing pipeline without adopting a bigger library. The repo also ships a runnable MNIST demo that logs softmax and center loss separately, so you can watch the two terms trade off as training progresses. It reads more like a clean template than standalone software, which is exactly what you want when implementing discriminative feature learning in your own model.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
opencv
Open Source Computer Vision Library
RuView
π RuView turns commodity WiFi signals into real-time spatial intelligence, vital sign monitoring, and presence detection — all without a single pixel of video.
PaddleOCR
Turn any PDF or image document into structured data for your AI. A powerful, lightweight OCR toolkit that bridges the gap between images/PDFs and LLMs. Supports 100+ languages.
MinerU
Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.
tesseract
Tesseract Open Source OCR Engine (main repository)