{"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/to-adapt-or-not-to-adapt-real-time-adaptation","title":"To Adapt or Not to Adapt? Real-Time Adaptation for Semantic Segmentation","arxiv_id":"2307.15063","date":"2023-07-27","proceeding":"ICCV 2023 1","authors":["Marc Botet Colomer","Pier Luigi Dovesi","Theodoros Panagiotakopoulos","Joao Frederico Carvalho","Linus Härenstam-Nielsen","Hossein Azizpour","Hedvig Kjellström","Daniel Cremers","Matteo Poggi"],"abstract":"The goal of Online Domain Adaptation for semantic segmentation is to handle unforeseeable domain changes that occur during deployment, like sudden weather events. However, the high computational costs associated with brute-force adaptation make this paradigm unfeasible for real-world applications. In this paper we propose HAMLET, a Hardware-Aware Modular Least Expensive Training framework for real-time domain adaptation. Our approach includes a hardware-aware back-propagation orchestration agent (HAMT) and a dedicated domain-shift detector that enables active control over when and how the model is adapted (LT). Thanks to these advancements, our approach is capable of performing semantic segmentation while simultaneously adapting at more than 29FPS on a single consumer-grade GPU. Our framework's encouraging accuracy and speed trade-off is demonstrated on OnDA and SHIFT benchmarks through experimental results.","url_abs":"https://arxiv.org/abs/2307.15063v2","url_pdf":"https://arxiv.org/pdf/2307.15063v2.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":"to-adapt-or-not-to-adapt-real-time-adaptation","repo_url":"https://github.com/MarcBotet/hamlet","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"GPL-2.0"}}],"tasks":[{"task_slug":"domain-adaptation","task_name":"Domain Adaptation"},{"task_slug":null,"task_name":"GPU"},{"task_slug":"online-domain-adaptation","task_name":"Online Domain Adaptation"},{"task_slug":"segmentation","task_name":"Segmentation"},{"task_slug":"semantic-segmentation","task_name":"Semantic Segmentation"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2307.15063","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2307.15063"}},"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/MarcBotet/hamlet","reach":{"status":"ok","spdx":"GPL-2.0"}}],"summary":{"ran":5},"by_repo_kind":{"official":{"samples":5,"ran":5,"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":5,"samples":[{"code_sha256_prefix":"b9c8f5f59869c522","entry":"create_buffer","repo":"MarcBotet/hamlet","repo_kind":"official","path":"online_src/buffer.py","file_url":"https://github.com/MarcBotet/hamlet/blob/HEAD/online_src/buffer.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"GPL-2.0","inline_ok":false,"mcp_get_code":{"code_sha256":"b9c8f5f59869c522"}},{"code_sha256_prefix":"59c6fc8713d67429","entry":"get_backbone_cfg","repo":"MarcBotet/hamlet","repo_kind":"official","path":"experiments.py","file_url":"https://github.com/MarcBotet/hamlet/blob/HEAD/experiments.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"GPL-2.0","inline_ok":false,"mcp_get_code":{"code_sha256":"59c6fc8713d67429"}},{"code_sha256_prefix":"41f7d1dc68db924d","entry":"get_model_base","repo":"MarcBotet/hamlet","repo_kind":"official","path":"experiments.py","file_url":"https://github.com/MarcBotet/hamlet/blob/HEAD/experiments.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"GPL-2.0","inline_ok":false,"mcp_get_code":{"code_sha256":"41f7d1dc68db924d"}},{"code_sha256_prefix":"71c25d9a7c22c4fa","entry":"get_pretraining_file","repo":"MarcBotet/hamlet","repo_kind":"official","path":"experiments.py","file_url":"https://github.com/MarcBotet/hamlet/blob/HEAD/experiments.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"GPL-2.0","inline_ok":false,"mcp_get_code":{"code_sha256":"71c25d9a7c22c4fa"}},{"code_sha256_prefix":"b6bec279ee8a5fa8","entry":"uniform_sampling","repo":"MarcBotet/hamlet","repo_kind":"official","path":"online_src/buffer.py","file_url":"https://github.com/MarcBotet/hamlet/blob/HEAD/online_src/buffer.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"GPL-2.0","inline_ok":false,"mcp_get_code":{"code_sha256":"b6bec279ee8a5fa8"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}