{"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/synthesize-then-compare-detecting-failures","title":"Synthesize then Compare: Detecting Failures and Anomalies for Semantic Segmentation","arxiv_id":"2003.08440","date":"2020-03-18","proceeding":"ECCV 2020 8","authors":["Yingda Xia","Yi Zhang","Fengze Liu","Wei Shen","Alan Yuille"],"abstract":"The ability to detect failures and anomalies are fundamental requirements for building reliable systems for computer vision applications, especially safety-critical applications of semantic segmentation, such as autonomous driving and medical image analysis. In this paper, we systematically study failure and anomaly detection for semantic segmentation and propose a unified framework, consisting of two modules, to address these two related problems. The first module is an image synthesis module, which generates a synthesized image from a segmentation layout map, and the second is a comparison module, which computes the difference between the synthesized image and the input image. We validate our framework on three challenging datasets and improve the state-of-the-arts by large margins, \\emph{i.e.}, 6% AUPR-Error on Cityscapes, 7% Pearson correlation on pancreatic tumor segmentation in MSD and 20% AUPR on StreetHazards anomaly segmentation.","url_abs":"https://arxiv.org/abs/2003.08440v2","url_pdf":"https://arxiv.org/pdf/2003.08440v2.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":"synthesize-then-compare-detecting-failures","repo_url":"https://github.com/YingdaXia/SynthCP","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"anomaly-detection","task_name":"Anomaly Detection"},{"task_slug":"anomaly-segmentation","task_name":"Anomaly Segmentation"},{"task_slug":"autonomous-driving","task_name":"Autonomous Driving"},{"task_slug":"image-generation","task_name":"Image Generation"},{"task_slug":"medical-image-analysis","task_name":"Medical Image Analysis"},{"task_slug":"segmentation","task_name":"Segmentation"},{"task_slug":"semantic-segmentation","task_name":"Semantic Segmentation"},{"task_slug":"tumor-segmentation","task_name":"Tumor Segmentation"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/anomaly-detection-on-road-anomaly","task":"Anomaly Detection","dataset":"Road Anomaly","model":"SynthCP","rank_in_archive_order":10,"of":10,"metrics":{"AP":"24.86","FPR95":"64.69"},"uses_additional_data":true}],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2003.08440","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2003.08440"}},"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/YingdaXia/SynthCP","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_draft_wrong":3,"ran":2,"ran_honours":2,"unverified":7},"by_repo_kind":{"official":{"samples":14,"ran":7,"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":"d9def42110729a85","entry":"conv1x1","repo":"YingdaXia/SynthCP","repo_kind":"official","path":"models/resnet.py","file_url":"https://github.com/YingdaXia/SynthCP/blob/HEAD/models/resnet.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d9def42110729a85"}},{"code_sha256_prefix":"160bb14bd76201b4","entry":"conv3x3","repo":"YingdaXia/SynthCP","repo_kind":"official","path":"models/resnet.py","file_url":"https://github.com/YingdaXia/SynthCP/blob/HEAD/models/resnet.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"160bb14bd76201b4"}},{"code_sha256_prefix":"fac5364e2f53c6db","entry":"conv3x3","repo":"YingdaXia/SynthCP","repo_kind":"official","path":"models/deeplab.py","file_url":"https://github.com/YingdaXia/SynthCP/blob/HEAD/models/deeplab.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fac5364e2f53c6db"}},{"code_sha256_prefix":"7242da839b9822be","entry":"fpr_and_fdr_at_recall","repo":"YingdaXia/SynthCP","repo_kind":"official","path":"anomaly/anom_utils.py","file_url":"https://github.com/YingdaXia/SynthCP/blob/HEAD/anomaly/anom_utils.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7242da839b9822be"}},{"code_sha256_prefix":"b9b6c36f7a3e7e67","entry":"get_measures","repo":"YingdaXia/SynthCP","repo_kind":"official","path":"anomaly/anom_utils.py","file_url":"https://github.com/YingdaXia/SynthCP/blob/HEAD/anomaly/anom_utils.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b9b6c36f7a3e7e67"}},{"code_sha256_prefix":"27504cbeb5811ea6","entry":"outS","repo":"YingdaXia/SynthCP","repo_kind":"official","path":"models/deeplab.py","file_url":"https://github.com/YingdaXia/SynthCP/blob/HEAD/models/deeplab.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"27504cbeb5811ea6"}},{"code_sha256_prefix":"d4acb3120a027622","entry":"stable_cumsum","repo":"YingdaXia/SynthCP","repo_kind":"official","path":"anomaly/anom_utils.py","file_url":"https://github.com/YingdaXia/SynthCP/blob/HEAD/anomaly/anom_utils.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d4acb3120a027622"}},{"code_sha256_prefix":"0d2051ae0eca8e7f","entry":"Deeplab","repo":"YingdaXia/SynthCP","repo_kind":"official","path":"models/deeplab.py","file_url":"https://github.com/YingdaXia/SynthCP/blob/HEAD/models/deeplab.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"0d2051ae0eca8e7f"}},{"code_sha256_prefix":"21dd2553497dab8f","entry":"Deeplab_SelfConfid","repo":"YingdaXia/SynthCP","repo_kind":"official","path":"models/deeplab_self_confid.py","file_url":"https://github.com/YingdaXia/SynthCP/blob/HEAD/models/deeplab_self_confid.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"21dd2553497dab8f"}},{"code_sha256_prefix":"aca6257565eaac65","entry":"get_upsample_filter","repo":"YingdaXia/SynthCP","repo_kind":"official","path":"models/fcn8.py","file_url":"https://github.com/YingdaXia/SynthCP/blob/HEAD/models/fcn8.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"aca6257565eaac65"}},{"code_sha256_prefix":"e23968c493407287","entry":"imresize","repo":"YingdaXia/SynthCP","repo_kind":"official","path":"anomaly/dataset.py","file_url":"https://github.com/YingdaXia/SynthCP/blob/HEAD/anomaly/dataset.py","link_basis":"plan_row","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e23968c493407287"}},{"code_sha256_prefix":"d75dbb96994623b5","entry":"init_eye","repo":"YingdaXia/SynthCP","repo_kind":"official","path":"models/fcn8.py","file_url":"https://github.com/YingdaXia/SynthCP/blob/HEAD/models/fcn8.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d75dbb96994623b5"}},{"code_sha256_prefix":"282e1dd5518bb58f","entry":"make_layers","repo":"YingdaXia/SynthCP","repo_kind":"official","path":"models/fcn8.py","file_url":"https://github.com/YingdaXia/SynthCP/blob/HEAD/models/fcn8.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"282e1dd5518bb58f"}},{"code_sha256_prefix":"df4e7d709751b62b","entry":"resnet18","repo":"YingdaXia/SynthCP","repo_kind":"official","path":"models/resnet.py","file_url":"https://github.com/YingdaXia/SynthCP/blob/HEAD/models/resnet.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"df4e7d709751b62b"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}