Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Add Kernel Inception Distance (KID) metric for model evaluation

オープン
#9,151 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 4 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
74/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python, pytorch

調査の方向性

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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Project-MONAI/MONAI のほかの issue

Project-MONAI/MONAI の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。