srfid is incorrectly labeled

This commit is contained in:
James Betker 2021-01-01 13:00:59 -07:00
parent f39179e85a
commit 7976a5825d

View File

@ -48,7 +48,7 @@ class SrFidEvaluator(evaluator.Evaluator):
torchvision.utils.save_image(hq_gen_hf_applied[b], osp.join(fid_fake_path, "%i_.png" % (counter))) torchvision.utils.save_image(hq_gen_hf_applied[b], osp.join(fid_fake_path, "%i_.png" % (counter)))
counter += 1 counter += 1
return {"fid": fid_score.calculate_fid_given_paths([self.fid_real_samples, fid_fake_path], self.batch_sz, True, return {"sr_fid": fid_score.calculate_fid_given_paths([self.fid_real_samples, fid_fake_path], self.batch_sz, True,
2048)} 2048)}