{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/conditional-frechet-inception-distance","title":"Conditional Frechet Inception Distance","arxiv_id":"2103.11521","date":"2021-03-21","proceeding":null,"authors":["Michael Soloveitchik","Tzvi Diskin","Efrat Morin","Ami Wiesel"],"abstract":"We consider distance functions between conditional distributions. We focus on the Wasserstein metric and its Gaussian case known as the Frechet Inception Distance (FID). We develop conditional versions of these metrics, analyze their relations and provide a closed form solution to the conditional FID (CFID) metric. We numerically compare the metrics in the context of performance evaluation of modern conditional generative models. Our results show the advantages of CFID compared to the classical FID and mean squared error (MSE) measures. In contrast to FID, CFID is useful in identifying failures where realistic outputs which are not related to their inputs are generated. On the other hand, compared to MSE, CFID is useful in identifying failures where a single realistic output is generated even though there is a diverse set of equally probable outputs.","url_abs":"https://arxiv.org/abs/2103.11521v2","url_pdf":"https://arxiv.org/pdf/2103.11521v2.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"conditional-frechet-inception-distance","repo_url":"https://github.com/Michael-Soloveitchik/CFID","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"BSD-2-Clause"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2103.11521","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2103.11521"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/Michael-Soloveitchik/CFID","reach":{"status":"ok","spdx":"BSD-2-Clause"}}],"summary":{"unverified":9},"by_repo_kind":{"official":{"samples":9,"ran":0,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"0d8acc35492e8752","entry":"get_activations","repo":"Michael-Soloveitchik/CFID","repo_kind":"official","path":"evaluate_models.py","file_url":"https://github.com/Michael-Soloveitchik/CFID/blob/HEAD/evaluate_models.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"0d8acc35492e8752"}},{"code_sha256_prefix":"cefa735e77f924d4","entry":"get_file_paths","repo":"Michael-Soloveitchik/CFID","repo_kind":"official","path":"Datasets/make_dataset_aligned.py","file_url":"https://github.com/Michael-Soloveitchik/CFID/blob/HEAD/Datasets/make_dataset_aligned.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"cefa735e77f924d4"}},{"code_sha256_prefix":"2379edc0053e0bf1","entry":"inpainting","repo":"Michael-Soloveitchik/CFID","repo_kind":"official","path":"Datasets/build_inpainting_celeba.py","file_url":"https://github.com/Michael-Soloveitchik/CFID/blob/HEAD/Datasets/build_inpainting_celeba.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"2379edc0053e0bf1"}},{"code_sha256_prefix":"8c753610a14e69fb","entry":"preprocess_images","repo":"Michael-Soloveitchik/CFID","repo_kind":"official","path":"evaluate_models.py","file_url":"https://github.com/Michael-Soloveitchik/CFID/blob/HEAD/evaluate_models.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"8c753610a14e69fb"}},{"code_sha256_prefix":"9a82f0bb49ac6ea2","entry":"rotate_image","repo":"Michael-Soloveitchik/CFID","repo_kind":"official","path":"Datasets/build_rotation_celeba.py","file_url":"https://github.com/Michael-Soloveitchik/CFID/blob/HEAD/Datasets/build_rotation_celeba.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"9a82f0bb49ac6ea2"}},{"code_sha256_prefix":"72fb2674395523aa","entry":"sample_covariance","repo":"Michael-Soloveitchik/CFID","repo_kind":"official","path":"metrics.py","file_url":"https://github.com/Michael-Soloveitchik/CFID/blob/HEAD/metrics.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"72fb2674395523aa"}},{"code_sha256_prefix":"d11e7957d2003e27","entry":"symmetric_matrix_square_root","repo":"Michael-Soloveitchik/CFID","repo_kind":"official","path":"metrics.py","file_url":"https://github.com/Michael-Soloveitchik/CFID/blob/HEAD/metrics.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"d11e7957d2003e27"}},{"code_sha256_prefix":"da63d1ccf1d4270e","entry":"to_cuda","repo":"Michael-Soloveitchik/CFID","repo_kind":"official","path":"evaluate_models.py","file_url":"https://github.com/Michael-Soloveitchik/CFID/blob/HEAD/evaluate_models.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"da63d1ccf1d4270e"}},{"code_sha256_prefix":"1633b9969b62b4ea","entry":"trace_sqrt_product","repo":"Michael-Soloveitchik/CFID","repo_kind":"official","path":"metrics.py","file_url":"https://github.com/Michael-Soloveitchik/CFID/blob/HEAD/metrics.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"1633b9969b62b4ea"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}