{"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/what-else-can-fool-deep-learning-addressing-1","title":"What Else Can Fool Deep Learning? Addressing Color Constancy Errors on Deep Neural Network Performance","arxiv_id":"1912.06960","date":"2019-12-15","proceeding":"ICCV 2019 10","authors":["Mahmoud Afifi","Michael S. Brown"],"abstract":"There is active research targeting local image manipulations that can fool deep neural networks (DNNs) into producing incorrect results. This paper examines a type of global image manipulation that can produce similar adverse effects. Specifically, we explore how strong color casts caused by incorrectly applied computational color constancy - referred to as white balance (WB) in photography - negatively impact the performance of DNNs targeting image segmentation and classification. In addition, we discuss how existing image augmentation methods used to improve the robustness of DNNs are not well suited for modeling WB errors. To address this problem, a novel augmentation method is proposed that can emulate accurate color constancy degradation. We also explore pre-processing training and testing images with a recent WB correction algorithm to reduce the effects of incorrectly white-balanced images. We examine both augmentation and pre-processing strategies on different datasets and demonstrate notable improvements on the CIFAR-10, CIFAR-100, and ADE20K datasets.","url_abs":"https://arxiv.org/abs/1912.06960v1","url_pdf":"https://arxiv.org/pdf/1912.06960v1.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":"what-else-can-fool-deep-learning-addressing-1","repo_url":"https://github.com/mahmoudnafifi/WB_color_augmenter","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"tf","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"color-constancy","task_name":"Color Constancy"},{"task_slug":"image-augmentation","task_name":"Image Augmentation"},{"task_slug":"image-manipulation","task_name":"Image Manipulation"},{"task_slug":"image-segmentation","task_name":"Image Segmentation"},{"task_slug":"semantic-segmentation","task_name":"Semantic Segmentation"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=1912.06960","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1912.06960"}},"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/mahmoudnafifi/WB_color_augmenter","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":3,"unverified":3},"by_repo_kind":{"official":{"samples":6,"ran":3,"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":"b97b2d33b67260a8","entry":"deriveScaleFromSize","repo":"mahmoudnafifi/WB_color_augmenter","repo_kind":"official","path":"WBAugmenter_Python/WBAugmenter/imresize.py","file_url":"https://github.com/mahmoudnafifi/WB_color_augmenter/blob/HEAD/WBAugmenter_Python/WBAugmenter/imresize.py","link_basis":"plan_row","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":"b97b2d33b67260a8"}},{"code_sha256_prefix":"ffe34bf756a6eaa8","entry":"deriveSizeFromScale","repo":"mahmoudnafifi/WB_color_augmenter","repo_kind":"official","path":"WBAugmenter_Python/WBAugmenter/imresize.py","file_url":"https://github.com/mahmoudnafifi/WB_color_augmenter/blob/HEAD/WBAugmenter_Python/WBAugmenter/imresize.py","link_basis":"plan_row","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":"ffe34bf756a6eaa8"}},{"code_sha256_prefix":"2722f476a816c1b9","entry":"triangle","repo":"mahmoudnafifi/WB_color_augmenter","repo_kind":"official","path":"WBAugmenter_Python/WBAugmenter/imresize.py","file_url":"https://github.com/mahmoudnafifi/WB_color_augmenter/blob/HEAD/WBAugmenter_Python/WBAugmenter/imresize.py","link_basis":"plan_row","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2722f476a816c1b9"}},{"code_sha256_prefix":"4df09ba7f5b77e55","entry":"changeWB","repo":"mahmoudnafifi/WB_color_augmenter","repo_kind":"official","path":"WBAugmenter_Python/WBAugmenter/WBEmulator.py","file_url":"https://github.com/mahmoudnafifi/WB_color_augmenter/blob/HEAD/WBAugmenter_Python/WBAugmenter/WBEmulator.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":"4df09ba7f5b77e55"}},{"code_sha256_prefix":"9363dea8558996d6","entry":"kernelP9","repo":"mahmoudnafifi/WB_color_augmenter","repo_kind":"official","path":"WBAugmenter_Python/WBAugmenter/WBEmulator.py","file_url":"https://github.com/mahmoudnafifi/WB_color_augmenter/blob/HEAD/WBAugmenter_Python/WBAugmenter/WBEmulator.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":"9363dea8558996d6"}},{"code_sha256_prefix":"a54f9e1a4189bdd1","entry":"outOfGamutClipping","repo":"mahmoudnafifi/WB_color_augmenter","repo_kind":"official","path":"WBAugmenter_Python/WBAugmenter/WBEmulator.py","file_url":"https://github.com/mahmoudnafifi/WB_color_augmenter/blob/HEAD/WBAugmenter_Python/WBAugmenter/WBEmulator.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":"a54f9e1a4189bdd1"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}