{"adoption": {"forks": 553, "observed_at": "2026-08-28T04:08:05.246346+00:00", "stars": 3449}, "canonical_url": "https://ross.abutalabs.com/products/supcontrast", "card": {"archived": false, "artifact_type": "library", "description": "PyTorch implementation of \"Supervised Contrastive Learning\"  (and SimCLR incidentally)", "domain": ["machine-learning", "deep-learning", "computer-vision"], "enriched": true, "function": ["machine-learning", "deep-learning"], "health_score": 20, "homepage": null, "language": "Python", "license": "BSD-2-Clause", "license_family": "permissive", "maturity": "maintenance", "member_repos": ["HobbitLong/SupContrast"], "name": "HobbitLong/SupContrast", "platform": ["python"], "pushed_at": "2023-12-26T21:20:36+00:00", "repo": "HobbitLong/SupContrast", "stars": 3449, "tags": ["pytorch", "contrastive-learning", "simclr", "supervised-contrastive-loss", "self-supervised-learning", "representation-learning", "cifar", "research-code", "gpu"], "topics": [], "urls": [], "use_cases": ["implement supervised contrastive learning in pytorch", "train a simclr model on cifar", "compute supcon loss for representation learning", "reproduce supervised contrastive learning paper results", "learn contrastive loss implementation details", "pretrain image encoders with contrastive objectives"], "what_it_is": "A PyTorch reference implementation of the Supervised Contrastive Learning paper (SupCon loss) that also supports SimCLR when labels are omitted. It includes training scripts for CIFAR-10/100 and ImageNet experiments with ResNet architectures.", "when_to_avoid": ["you need a maintained production training framework", "you want a general-purpose self-supervised library with many methods", "you need support for frameworks other than PyTorch"], "when_to_choose": ["you need a reference implementation of the SupCon loss in PyTorch", "you want to reproduce the paper's CIFAR or ImageNet results", "you want a simple loss module that falls back to SimCLR without labels"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/supcontrast", "repo": "HobbitLong/SupContrast", "role": "main", "score": 32}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:08:05.246346+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-29T18:37:35.431199+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e52765e4baf1dd5119fde85c2ec31e51bd9d913b14ff2afd3c63687ce2137c41", "fetched_at": "2026-08-28T04:08:05.246346+00:00", "kind": "readme", "missing": false, "url": "https://github.com/HobbitLong/SupContrast"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:08:05.246346+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-29T18:37:35.431199+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e52765e4baf1dd5119fde85c2ec31e51bd9d913b14ff2afd3c63687ce2137c41", "fetched_at": "2026-08-28T04:08:05.246346+00:00", "kind": "readme", "missing": false, "url": "https://github.com/HobbitLong/SupContrast"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-29T18:37:35.431199+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e52765e4baf1dd5119fde85c2ec31e51bd9d913b14ff2afd3c63687ce2137c41", "fetched_at": "2026-08-28T04:08:05.246346+00:00", "kind": "readme", "missing": false, "url": "https://github.com/HobbitLong/SupContrast"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:08:05.246346+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:08:05.246346+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:08:05.246346+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-29T18:37:35.431199+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e52765e4baf1dd5119fde85c2ec31e51bd9d913b14ff2afd3c63687ce2137c41", "fetched_at": "2026-08-28T04:08:05.246346+00:00", "kind": "readme", "missing": false, "url": "https://github.com/HobbitLong/SupContrast"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:08:05.246346+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:08:05.246346+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-29T18:37:35.431199+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e52765e4baf1dd5119fde85c2ec31e51bd9d913b14ff2afd3c63687ce2137c41", "fetched_at": "2026-08-28T04:08:05.246346+00:00", "kind": "readme", "missing": false, "url": "https://github.com/HobbitLong/SupContrast"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:08:05.246346+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:08:05.246346+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:08:05.246346+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-29T18:37:35.431199+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e52765e4baf1dd5119fde85c2ec31e51bd9d913b14ff2afd3c63687ce2137c41", "fetched_at": "2026-08-28T04:08:05.246346+00:00", "kind": "readme", "missing": false, "url": "https://github.com/HobbitLong/SupContrast"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:08:05.246346+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:08:05.246346+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-29T18:37:35.431199+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e52765e4baf1dd5119fde85c2ec31e51bd9d913b14ff2afd3c63687ce2137c41", "fetched_at": "2026-08-28T04:08:05.246346+00:00", "kind": "readme", "missing": false, "url": "https://github.com/HobbitLong/SupContrast"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-29T18:37:35.431199+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e52765e4baf1dd5119fde85c2ec31e51bd9d913b14ff2afd3c63687ce2137c41", "fetched_at": "2026-08-28T04:08:05.246346+00:00", "kind": "readme", "missing": false, "url": "https://github.com/HobbitLong/SupContrast"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-29T18:37:35.431199+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e52765e4baf1dd5119fde85c2ec31e51bd9d913b14ff2afd3c63687ce2137c41", "fetched_at": "2026-08-28T04:08:05.246346+00:00", "kind": "readme", "missing": false, "url": "https://github.com/HobbitLong/SupContrast"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-29T18:37:35.431199+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e52765e4baf1dd5119fde85c2ec31e51bd9d913b14ff2afd3c63687ce2137c41", "fetched_at": "2026-08-28T04:08:05.246346+00:00", "kind": "readme", "missing": false, "url": "https://github.com/HobbitLong/SupContrast"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 0, "longevity": 100, "rhythm": 35}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": ["no_releases"], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 2308, "days_push": 981, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 32, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}