gan icon indicating copy to clipboard operation
gan copied to clipboard

Wrong calculation of Inception score and FID for SAGAN without resizing

Open giannisdaras opened this issue 5 years ago • 1 comments

Hey and congratulations for this amazing library, I have been using it for our latest paper [paper], [code].

After the BREAKING CHANGE commit, the FID / Inception score is calculated wrongly for the SAGAN example. For ImageNet, it gives real inception score ~2.5.

After changing the sample_fn function defined here to perform the image resize, the correct FID and Inception scores are calculated. I guess that is unexpected, since there is this comment, just in the above line: # Image resizing happens inside the Inception SavedModel.

I managed to solve the problem by reshaping in the sample_fn function (as it was before the change), but I thought that it is worth bringing that to your attention :)

Let me know if you need any help!

giannisdaras avatar Dec 05 '19 19:12 giannisdaras

@aaronsarna We fixed this, right?

joel-shor avatar Mar 08 '20 04:03 joel-shor