Hi Lucas and Shangyin,
I also encountered with FID calculation problem. FID scored given by server and local host are different, but PSNR and MS-SSIM are the same. It seems FID is related to the order of images. Below is how I generate the dict of submission_images, target_images, as the input of metrics.py. When I tried two different orders by reading the following txt or using glob(distort_img_dir), one FID score is 213 and the other is 198.
Did I misuse the script? Could you please give some hints on how server calculate FID scores?
Thank you very much for your help.
------------------------------------------
test_files = "clicv.txt"
with open(test_files) as f:
content = f.readlines()
file_name = [x.rstrip() for x in content]
submission_images = OrderedDict()
target_images = OrderedDict()
for i in range(0, len(file_name)):
submission_images[name] = distort_img_dir + file_name[i]
target_images[name] = target_img_dir + file_name[i]
results = evaluate(submission_images, target_images)
------------------------------------------
Zhengxue