AntixK/PyTorch-Model-Compare

Compare neural networks by their feature similarity

42
/ 100
Emerging

Implements Centered Kernel Alignment (CKA), a representation similarity metric based on the Hilbert-Schmidt Independence Criterion, with a minibatch-scalable version for comparing deep architectures. Works with any PyTorch `nn.Module` across diverse model families—CNNs, Vision Transformers, and models from torchHub/timm/HuggingFace—enabling ablation studies, architecture analysis, and dataset drift detection through per-layer feature similarity heatmaps.

379 stars. No commits in the last 6 months.

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

How are scores calculated?

Stars

379

Forks

41

Language

Python

License

MIT

Last pushed

May 17, 2023

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/transformers/AntixK/PyTorch-Model-Compare"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.