Skip to content
Discussion options

You must be logged in to vote

Your code for evaluating FID with torchmetrics.image.fid.FrechetInceptionDistance broadly follows the right steps: applying appropriate image transformations, updating the metric with both real and generated images during evaluation, then computing and resetting the metric scores each epoch. Just ensure that your image tensors passed to update() are correctly scaled and converted to uint8, as you are doing. Also, typically FID expects RGB images, so your grayscale-to-3-channel transform is appropriate for MNIST.
One detail: the feature parameter feature=64 in FrechetInceptionDistance(feature=64) is unusual, as the default uses a pre-trained Inception model and the feature extractor is int…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by yuanxiqd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants