{"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/online-domain-adaptation-for-semantic","title":"Online Domain Adaptation for Semantic Segmentation in Ever-Changing Conditions","arxiv_id":"2207.10667","date":"2022-07-21","proceeding":null,"authors":["Theodoros Panagiotakopoulos","Pier Luigi Dovesi","Linus Härenstam-Nielsen","Matteo Poggi"],"abstract":"Unsupervised Domain Adaptation (UDA) aims at reducing the domain gap between training and testing data and is, in most cases, carried out in offline manner. However, domain changes may occur continuously and unpredictably during deployment (e.g. sudden weather changes). In such conditions, deep neural networks witness dramatic drops in accuracy and offline adaptation may not be enough to contrast it. In this paper, we tackle Online Domain Adaptation (OnDA) for semantic segmentation. We design a pipeline that is robust to continuous domain shifts, either gradual or sudden, and we evaluate it in the case of rainy and foggy scenarios. Our experiments show that our framework can effectively adapt to new domains during deployment, while not being affected by catastrophic forgetting of the previous domains.","url_abs":"https://arxiv.org/abs/2207.10667v1","url_pdf":"https://arxiv.org/pdf/2207.10667v1.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":"online-domain-adaptation-for-semantic","repo_url":"https://github.com/theo2021/onda","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"GPL-2.0"}}],"tasks":[{"task_slug":"domain-adaptation","task_name":"Domain Adaptation"},{"task_slug":"online-domain-adaptation","task_name":"Online Domain Adaptation"},{"task_slug":"semantic-segmentation","task_name":"Semantic Segmentation"},{"task_slug":"unsupervised-domain-adaptation","task_name":"Unsupervised Domain Adaptation"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2207.10667","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2207.10667"}},"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/theo2021/onda","reach":{"status":"ok","spdx":"GPL-2.0"}},{"provenance":"deterministic:regex_extraction","url":"https://github.com/theo2021/OnDA","reach":{"status":"ok","spdx":"GPL-2.0"}}],"summary":{"ran_honours":3,"ran":5,"ran_fixture":5,"ran_draft_wrong":2,"ran_violates":1,"unverified":5},"by_repo_kind":{"official":{"samples":20,"ran":15,"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":21,"samples":[{"code_sha256_prefix":"89efb7f6fd0f5c48","entry":"CXE","repo":"theo2021/OnDA","repo_kind":"official","path":"framework/domain_adaptation/methods/prototypes.py","file_url":"https://github.com/theo2021/OnDA/blob/HEAD/framework/domain_adaptation/methods/prototypes.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"GPL-2.0","inline_ok":false,"mcp_get_code":{"code_sha256":"89efb7f6fd0f5c48"}},{"code_sha256_prefix":"0bc9611aa0b77309","entry":"ECE","repo":"theo2021/OnDA","repo_kind":"official","path":"framework/domain_adaptation/methods/prototypes.py","file_url":"https://github.com/theo2021/OnDA/blob/HEAD/framework/domain_adaptation/methods/prototypes.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":"0bc9611aa0b77309"}},{"code_sha256_prefix":"a1504096c1d68b2c","entry":"Monitor","repo":"theo2021/OnDA","repo_kind":"official","path":"framework/domain_adaptation/methods/prototypes.py","file_url":"https://github.com/theo2021/OnDA/blob/HEAD/framework/domain_adaptation/methods/prototypes.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":"a1504096c1d68b2c"}},{"code_sha256_prefix":"7520170a6b8d23cf","entry":"batchnorm_stats","repo":"theo2021/OnDA","repo_kind":"official","path":"framework/domain_adaptation/methods/prototypes.py","file_url":"https://github.com/theo2021/OnDA/blob/HEAD/framework/domain_adaptation/methods/prototypes.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":"7520170a6b8d23cf"}},{"code_sha256_prefix":"c9ad30dd0a145395","entry":"cross_entropy_2d","repo":"theo2021/OnDA","repo_kind":"official","path":"framework/domain_adaptation/methods/prototypes.py","file_url":"https://github.com/theo2021/OnDA/blob/HEAD/framework/domain_adaptation/methods/prototypes.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"GPL-2.0","inline_ok":false,"mcp_get_code":{"code_sha256":"c9ad30dd0a145395"}},{"code_sha256_prefix":"9fbf4a731ce117c1","entry":"da_model","repo":"theo2021/OnDA","repo_kind":"official","path":"framework/domain_adaptation/methods/prototypes.py","file_url":"https://github.com/theo2021/OnDA/blob/HEAD/framework/domain_adaptation/methods/prototypes.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":"9fbf4a731ce117c1"}},{"code_sha256_prefix":"d26c4d52f259e495","entry":"entropy_loss","repo":"theo2021/OnDA","repo_kind":"official","path":"framework/domain_adaptation/methods/prototypes.py","file_url":"https://github.com/theo2021/OnDA/blob/HEAD/framework/domain_adaptation/methods/prototypes.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"GPL-2.0","inline_ok":false,"mcp_get_code":{"code_sha256":"d26c4d52f259e495"}},{"code_sha256_prefix":"bfbaedc6197ef57d","entry":"ewc_loss","repo":"theo2021/OnDA","repo_kind":"official","path":"framework/domain_adaptation/methods/prototypes.py","file_url":"https://github.com/theo2021/OnDA/blob/HEAD/framework/domain_adaptation/methods/prototypes.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"GPL-2.0","inline_ok":false,"mcp_get_code":{"code_sha256":"bfbaedc6197ef57d"}},{"code_sha256_prefix":"d86fb168246b16a4","entry":"fast_hist","repo":null,"repo_kind":null,"path":null,"file_url":null,"link_basis":"identical_code_first_harvested_elsewhere","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":null,"inline_ok":false,"mcp_get_code":{"code_sha256":"d86fb168246b16a4"}},{"code_sha256_prefix":"b3ac95de398fe423","entry":"loss_calc","repo":"theo2021/OnDA","repo_kind":"official","path":"framework/domain_adaptation/methods/prototypes.py","file_url":"https://github.com/theo2021/OnDA/blob/HEAD/framework/domain_adaptation/methods/prototypes.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"GPL-2.0","inline_ok":false,"mcp_get_code":{"code_sha256":"b3ac95de398fe423"}},{"code_sha256_prefix":"9fec89dab050cb13","entry":"lr_poly","repo":"theo2021/OnDA","repo_kind":"official","path":"framework/domain_adaptation/methods/prototypes.py","file_url":"https://github.com/theo2021/OnDA/blob/HEAD/framework/domain_adaptation/methods/prototypes.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"GPL-2.0","inline_ok":false,"mcp_get_code":{"code_sha256":"9fec89dab050cb13"}},{"code_sha256_prefix":"da79e98c38ae72a6","entry":"per_class_iu","repo":"theo2021/OnDA","repo_kind":"official","path":"framework/domain_adaptation/methods/prototypes.py","file_url":"https://github.com/theo2021/OnDA/blob/HEAD/framework/domain_adaptation/methods/prototypes.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"GPL-2.0","inline_ok":false,"mcp_get_code":{"code_sha256":"da79e98c38ae72a6"}},{"code_sha256_prefix":"81c39eaf167b7b81","entry":"prototype_handler","repo":"theo2021/OnDA","repo_kind":"official","path":"framework/domain_adaptation/methods/prototypes.py","file_url":"https://github.com/theo2021/OnDA/blob/HEAD/framework/domain_adaptation/methods/prototypes.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":"81c39eaf167b7b81"}},{"code_sha256_prefix":"44561849fbfaa903","entry":"rce","repo":"theo2021/OnDA","repo_kind":"official","path":"framework/domain_adaptation/methods/prototypes.py","file_url":"https://github.com/theo2021/OnDA/blob/HEAD/framework/domain_adaptation/methods/prototypes.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"GPL-2.0","inline_ok":false,"mcp_get_code":{"code_sha256":"44561849fbfaa903"}},{"code_sha256_prefix":"55c7d29661829cb7","entry":"regular_loss","repo":"theo2021/OnDA","repo_kind":"official","path":"framework/domain_adaptation/methods/prototypes.py","file_url":"https://github.com/theo2021/OnDA/blob/HEAD/framework/domain_adaptation/methods/prototypes.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"GPL-2.0","inline_ok":false,"mcp_get_code":{"code_sha256":"55c7d29661829cb7"}},{"code_sha256_prefix":"50b2d3809db27547","entry":"segment_sample","repo":"theo2021/OnDA","repo_kind":"official","path":"framework/domain_adaptation/methods/prototypes.py","file_url":"https://github.com/theo2021/OnDA/blob/HEAD/framework/domain_adaptation/methods/prototypes.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"GPL-2.0","inline_ok":false,"mcp_get_code":{"code_sha256":"50b2d3809db27547"}},{"code_sha256_prefix":"cf0328586e1295aa","entry":"evaluation","repo":"theo2021/OnDA","repo_kind":"official","path":"framework/domain_adaptation/methods/prototypes.py","file_url":"https://github.com/theo2021/OnDA/blob/HEAD/framework/domain_adaptation/methods/prototypes.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"GPL-2.0","inline_ok":false,"mcp_get_code":{"code_sha256":"cf0328586e1295aa"}},{"code_sha256_prefix":"910de18a01677f86","entry":"js_divergance","repo":"theo2021/OnDA","repo_kind":"official","path":"framework/domain_adaptation/methods/prototypes.py","file_url":"https://github.com/theo2021/OnDA/blob/HEAD/framework/domain_adaptation/methods/prototypes.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"GPL-2.0","inline_ok":false,"mcp_get_code":{"code_sha256":"910de18a01677f86"}},{"code_sha256_prefix":"b36795d53ff302c4","entry":"online_proDA","repo":"theo2021/OnDA","repo_kind":"official","path":"framework/domain_adaptation/methods/prototypes.py","file_url":"https://github.com/theo2021/OnDA/blob/HEAD/framework/domain_adaptation/methods/prototypes.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"GPL-2.0","inline_ok":false,"mcp_get_code":{"code_sha256":"b36795d53ff302c4"}},{"code_sha256_prefix":"978f9f452b9e0145","entry":"switch_batch_statistics","repo":"theo2021/OnDA","repo_kind":"official","path":"framework/domain_adaptation/methods/prototypes.py","file_url":"https://github.com/theo2021/OnDA/blob/HEAD/framework/domain_adaptation/methods/prototypes.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"GPL-2.0","inline_ok":false,"mcp_get_code":{"code_sha256":"978f9f452b9e0145"}},{"code_sha256_prefix":"c2fa9c2db9a59354","entry":"wandb_image","repo":"theo2021/OnDA","repo_kind":"official","path":"framework/domain_adaptation/methods/prototypes.py","file_url":"https://github.com/theo2021/OnDA/blob/HEAD/framework/domain_adaptation/methods/prototypes.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"GPL-2.0","inline_ok":false,"mcp_get_code":{"code_sha256":"c2fa9c2db9a59354"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}