{"adoption": {"forks": 266, "observed_at": "2026-08-28T04:04:38.776662+00:00", "stars": 1410}, "canonical_url": "https://ross.abutalabs.com/products/lovaszsoftmax", "card": {"archived": false, "artifact_type": "library", "description": "Code for the Lovász-Softmax loss (CVPR 2018)", "domain": ["machine-learning", "computer-vision", "image-processing"], "enriched": true, "function": ["machine-learning", "deep-learning"], "health_score": 20, "homepage": "http://bmax.im/LovaszSoftmax", "language": "Jupyter Notebook", "license": "MIT", "license_family": "permissive", "maturity": "maintenance", "member_repos": ["bermanmaxim/LovaszSoftmax"], "name": "bermanmaxim/LovaszSoftmax", "platform": ["python"], "pushed_at": "2024-04-12T21:01:35+00:00", "repo": "bermanmaxim/LovaszSoftmax", "stars": 1410, "tags": ["loss-functions", "image-segmentation", "pytorch", "tensorflow", "jaccard-index", "cvpr-2018", "semantic-segmentation", "gpu"], "topics": ["image-segmentation", "pytorch", "neural-networks", "loss-functions"], "urls": [], "use_cases": ["optimize intersection-over-union directly when training segmentation models", "train semantic segmentation networks with a differentiable IoU surrogate loss", "improve mIoU on imbalanced segmentation datasets like satellite imagery", "fine-tune a cross-entropy-trained model with the Lovász-Softmax loss", "use Lovász Hinge for binary segmentation tasks in PyTorch or TensorFlow"], "what_it_is": "Standalone PyTorch and TensorFlow implementations of the Lovász-Softmax and Lovász Hinge loss functions for optimizing the Jaccard index (IoU) in neural networks. Published as a CVPR 2018 paper, it includes demo Jupyter notebooks for binary and multiclass segmentation training.", "when_to_avoid": ["you need a maintained library with regular updates and broad framework support", "you want losses for tasks beyond binary/multiclass segmentation", "you need a full training framework rather than standalone loss functions"], "when_to_choose": ["you need a differentiable loss that directly targets the Jaccard index/IoU metric", "you are doing semantic segmentation with PyTorch or TensorFlow and want a drop-in loss layer", "your segmentation dataset has class imbalance where cross-entropy underperforms on mIoU"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/lovaszsoftmax", "repo": "bermanmaxim/LovaszSoftmax", "role": "main", "score": 32}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:04:38.776662+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T04:38:27.804903+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "efaf1fed49b17226909fa0f7d3b22e4e008e466a5b03a20cfacb0d2dfb3edc8c", "fetched_at": "2026-08-28T04:04:38.776662+00:00", "kind": "readme", "missing": false, "url": "https://github.com/bermanmaxim/LovaszSoftmax"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:04:38.776662+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T04:38:27.804903+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "efaf1fed49b17226909fa0f7d3b22e4e008e466a5b03a20cfacb0d2dfb3edc8c", "fetched_at": "2026-08-28T04:04:38.776662+00:00", "kind": "readme", "missing": false, "url": "https://github.com/bermanmaxim/LovaszSoftmax"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T04:38:27.804903+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "efaf1fed49b17226909fa0f7d3b22e4e008e466a5b03a20cfacb0d2dfb3edc8c", "fetched_at": "2026-08-28T04:04:38.776662+00:00", "kind": "readme", "missing": false, "url": "https://github.com/bermanmaxim/LovaszSoftmax"}], "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:04:38.776662+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:04:38.776662+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:04:38.776662+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T04:38:27.804903+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "efaf1fed49b17226909fa0f7d3b22e4e008e466a5b03a20cfacb0d2dfb3edc8c", "fetched_at": "2026-08-28T04:04:38.776662+00:00", "kind": "readme", "missing": false, "url": "https://github.com/bermanmaxim/LovaszSoftmax"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:04:38.776662+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:04:38.776662+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T04:38:27.804903+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "efaf1fed49b17226909fa0f7d3b22e4e008e466a5b03a20cfacb0d2dfb3edc8c", "fetched_at": "2026-08-28T04:04:38.776662+00:00", "kind": "readme", "missing": false, "url": "https://github.com/bermanmaxim/LovaszSoftmax"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:04:38.776662+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:04:38.776662+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:04:38.776662+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T04:38:27.804903+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "efaf1fed49b17226909fa0f7d3b22e4e008e466a5b03a20cfacb0d2dfb3edc8c", "fetched_at": "2026-08-28T04:04:38.776662+00:00", "kind": "readme", "missing": false, "url": "https://github.com/bermanmaxim/LovaszSoftmax"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:04:38.776662+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:04:38.776662+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T04:38:27.804903+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "efaf1fed49b17226909fa0f7d3b22e4e008e466a5b03a20cfacb0d2dfb3edc8c", "fetched_at": "2026-08-28T04:04:38.776662+00:00", "kind": "readme", "missing": false, "url": "https://github.com/bermanmaxim/LovaszSoftmax"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T04:38:27.804903+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "efaf1fed49b17226909fa0f7d3b22e4e008e466a5b03a20cfacb0d2dfb3edc8c", "fetched_at": "2026-08-28T04:04:38.776662+00:00", "kind": "readme", "missing": false, "url": "https://github.com/bermanmaxim/LovaszSoftmax"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T04:38:27.804903+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "efaf1fed49b17226909fa0f7d3b22e4e008e466a5b03a20cfacb0d2dfb3edc8c", "fetched_at": "2026-08-28T04:04:38.776662+00:00", "kind": "readme", "missing": false, "url": "https://github.com/bermanmaxim/LovaszSoftmax"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T04:38:27.804903+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "efaf1fed49b17226909fa0f7d3b22e4e008e466a5b03a20cfacb0d2dfb3edc8c", "fetched_at": "2026-08-28T04:04:38.776662+00:00", "kind": "readme", "missing": false, "url": "https://github.com/bermanmaxim/LovaszSoftmax"}], "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": 3115, "days_push": 873, "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}}