Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ignite/metrics/gan/fid.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ class FID(_BaseInceptionMetric):
Args:
num_features: number of features predicted by the model or the reduced feature vector of the image.
Default value is 1000.
The default Inception model uses its 1000-dimensional output logits as features. To match
`pytorch_fid` results, provide a feature extractor that returns the 2048-dimensional pool3
features instead; see the example below.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
features instead; see the example below.
features instead. See the example below.

feature_extractor: a torch Module for extracting the features from the input data.
It returns a tensor of shape (batch_size, num_features).
If neither ``num_features`` nor ``feature_extractor`` are defined, by default we use an ImageNet
Expand Down