Add Kernel Inception Distance (KID) metric for model evaluation
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 74/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
研究方向
Start by reading the existing FIDMetric implementation and the surrounding files in monai/metrics/, then use the requested monai/metrics/kid.py entry point. Add unit tests for known values, input validation, and agreement with a reference implementation; done means the metric computes the specified unbiased polynomial-kernel MMD² on generated and real feature vectors.
由索引模型根據 Issue 內容生成。
描述
Is your feature request related to a problem? Please describe.
FIDMetric and MMDMetric are provided for evaluating models, but no Kernel Inception Distance (KID). KID is widely reported alongside FID in image synthesis and image-to-image translation papers (papers like CUT, UNSB, Contourdiff). It is unbiased and more reliable than FID with small sample sizes, which is common in medical imaging test sets.
Describe the solution you'd like
A KIDMetric in monai/metrics/kid.py following the same design as FIDMetric:
- Takes pre-extracted feature vectors (N x F) for generated and real images, so any feature extractor (ImageNet, RadImageNet, MedicalNet) can be used.
- Computes the unbiased MMD^2 with a polynomial kernel k(x, y) = (x·y / d + 1)^3.
- Unit tests checking known values, input validation, and agreement with a reference implementation.
Describe alternatives you've considered
Using torchmetrics' KernelInceptionDistance, but it bundles an Inception feature extractor, while MONAI's FIDMetric works on arbitrary features, which suits medical images better.
Additional context
Reference: Bińkowski et al., "Demystifying MMD GANs", ICLR 2018.
I'm happy to implement this and open a PR if maintainers agree.
- 主要語言
- Python
- 星號
- 8.8k
- 分支
- 1.6k
- 平均合併
- 2 天 19 小時
- 30 天內合併 PR
- 12
環境準備
- 提供 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
Project-MONAI/MONAI 的其他 Issue
-
ProbMapProducer raises IndexError on numpy 2.x: SlidingPatchWSIDataset emits float locations可能已有人在做 @nilapate 於 10 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 82/100
Project-MONAI/MONAI#9135 ·
維護者通常 1 天內回覆
-
RandGridPatch crashes for documented 0 or None patch_size entries可能已有人在做 @Rajioba1 於 67 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 78/100
Project-MONAI/MONAI#9046 ·
維護者通常 1 天內回覆
-
Incorrect type hint in `pad_func`可能已有人在做 @Harshal875 於 72 天前認領。 未關閉
難度 1/5 1 小時以內 新手友好度 88/100
Project-MONAI/MONAI#9026 ·
維護者通常 1 天內回覆
-
PR Update Action可能已有人在做 @KumoLiu 於 9 天前認領。 未關閉
Project-MONAI/MONAI#9141 · 已指派 3 人 ·
維護者通常 1 天內回覆
-
Look Into Slow Tests可能已有人在做 @ericspod 於 10 天前認領。 未關閉CI/CD
Project-MONAI/MONAI#9137 · 已指派 1 人 ·
維護者通常 1 天內回覆
查看 Project-MONAI/MONAI 的全部 Issue
相似的 Issue
-
bug ready for review
難度 2/5 1-3 小時 新手友好度 86/100
odysseus-dev/odysseus#6641 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 76/100
happypawspillaro/happypaws#78 ·
維護者通常 4 天內回覆
-
pydanty:is-working
難度 2/5 1-3 小時 新手友好度 82/100
pydantic/pydantic-ai#10020 ·
維護者通常 1 天內回覆
-
Bug
難度 2/5 1-3 小時 新手友好度 78/100
ansible-collections/ibm_zos_core#2650 ·
-
hw: pvc tests: vllm vllm
難度 2/5 1-3 小時 新手友好度 68/100
intel/intel-xpu-backend-for-triton#8362 ·
維護者通常 1 天內回覆