Add Kernel Inception Distance (KID) metric for model evaluation
メンテナーはふだん 4 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 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.7k
- フォーク
- 1.6k
- 平均マージ
- 5日 20時間
- マージ済み PR(30日)
- 12
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Project-MONAI/MONAI のほかの issue
-
ProbMapProducer raises IndexError on numpy 2.x: SlidingPatchWSIDataset emits float locations対応中かも @nilapate が 8 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
Project-MONAI/MONAI#9135 ·
メンテナーはふだん 4 日以内に返信
-
RandGridPatch crashes for documented 0 or None patch_size entries対応中かも @Rajioba1 が 64 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Project-MONAI/MONAI#9046 ·
メンテナーはふだん 4 日以内に返信
-
Incorrect type hint in `pad_func`対応中かも @Harshal875 が 70 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
Project-MONAI/MONAI#9026 ·
メンテナーはふだん 4 日以内に返信
-
Add ROCm support for AMD Instinct GPUs対応中かも @nilapate が 1 日前に担当しました。 オープン
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
Project-MONAI/MONAI#9152 ·
メンテナーはふだん 4 日以内に返信
-
PR Update Action対応中かも @KumoLiu が 7 日前に担当しました。 オープン
Project-MONAI/MONAI#9141 · 担当者 3 名 ·
メンテナーはふだん 4 日以内に返信
Project-MONAI/MONAI の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
FuRongJun-1999/dsh-memory#65 ·
メンテナーはふだん 1 日以内に返信
-
ci needs-ac
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Ikalus1988/MisakaNet#2930 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Qiskit/qiskit-aer#2466 ·
-
area/cli
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100