marcojira / fld

PyTorch code for FLD (Feature Likelihood Divergence), FID, KID, Precision, Recall, etc. using DINOv2, InceptionV3, CLIP, etc.
39 stars 7 forks source link

Question about FLD value #7

Open Danee-wawawa opened 8 months ago

Danee-wawawa commented 8 months ago

The FLD I calculated is negative(for example “-1581.340”). Is this wrong? I see that the range you wrote is [0, 100].

marcojira commented 8 months ago

Yes a negative value indicates that your generated samples give a MoG with better likelihood than the train samples. Could possibly be due to providing insufficient training samples? Could you detail the train, test and generated sets of features you used?

Danee-wawawa commented 8 months ago

Thank you for the reply. I use cyclegan model to transfer the style of A to B. A is the content images, and B is the style images. A and B are unpaired data. When conducting FLD evaluation, the train set and test set are divided from the B data, and the generated data set is the data after the style transfer of the A data. And the training set data size is 2k, the test set data size is 1k, and the generated data size is 3k. Not sure if structuring the data this way is correct?

marcojira commented 8 months ago

Could you try with a generated data size of 1k? What's happening now is that to get a baseline LL, FLD is splitting the train set in two and using half as MoG (i.e. in your case 1k samples).

Danee-wawawa commented 8 months ago

OK, I will try it, thank you~