Open BrandoZhang opened 3 years ago
I have the same problem for FID and get the same error.
Can you show the error message that you get?
I also have a question. Shouldn't one normalize (Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]) the input data to the inceptionv3W model?
For the custom stats error, it looks like your custom dataset statistics file was not created.
Can you check the files in the folder os.path.join(os.path.dirname(cleanfid.__file__), "stats")
Looking at this lines you do not need these normalization. jit detector If you look at the forward pass function defined within the torchscript inception model, the normalization applied is the same is the one in cleanfid's inceptionv3W class.
Hmm, interesting. Is this such normalization crucial due to the fact that the InceptionV3 takes inputs as ((x-128)/128) and had been trained with these normalized inputs? I am asking since I retained timm https://rwightman.github.io/pytorch-image-models/models/inception-v3/ on a totally different and custom dataset without this normalization and I wonder if I have to stick to no-normalization still or I have to adhere to a certain regime of normalization for the retrained inceptionv3 no matter what.
Can I create custom dataset statistics to compute KID?
In my trial, after
make_custom_stats
, the invoking ofcompute_fid
works fine butcompute_kid
tries to download the statistics:Detailed context can be found in https://github.com/GaParmar/clean-fid/issues/9.