{"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/adeada-adaptive-density-aware-active-domain","title":"D2ADA: Dynamic Density-aware Active Domain Adaptation for Semantic Segmentation","arxiv_id":"2202.06484","date":"2022-02-14","proceeding":null,"authors":["Tsung-Han Wu","Yi-Syuan Liou","Shao-Ji Yuan","Hsin-Ying Lee","Tung-I Chen","Kuan-Chih Huang","Winston H. Hsu"],"abstract":"In the field of domain adaptation, a trade-off exists between the model performance and the number of target domain annotations. Active learning, maximizing model performance with few informative labeled data, comes in handy for such a scenario. In this work, we present D2ADA, a general active domain adaptation framework for semantic segmentation. To adapt the model to the target domain with minimum queried labels, we propose acquiring labels of the samples with high probability density in the target domain yet with low probability density in the source domain, complementary to the existing source domain labeled data. To further facilitate labeling efficiency, we design a dynamic scheduling policy to adjust the labeling budgets between domain exploration and model uncertainty over time. Extensive experiments show that our method outperforms existing active learning and domain adaptation baselines on two benchmarks, GTA5 -> Cityscapes and SYNTHIA -> Cityscapes. With less than 5% target domain annotations, our method reaches comparable results with that of full supervision. Our code is publicly available at https://github.com/tsunghan-wu/D2ADA.","url_abs":"https://arxiv.org/abs/2202.06484v4","url_pdf":"https://arxiv.org/pdf/2202.06484v4.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":"adeada-adaptive-density-aware-active-domain","repo_url":"https://github.com/tsunghan-wu/d2ada","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"active-learning","task_name":"Active Learning"},{"task_slug":"domain-adaptation","task_name":"Domain Adaptation"},{"task_slug":"scheduling","task_name":"Scheduling"},{"task_slug":"semantic-segmentation","task_name":"Semantic Segmentation"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2202.06484","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2202.06484"}},"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/tsunghan-wu/d2ada","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_fixture":1,"ran_violates":1,"unverified":6},"by_repo_kind":{"official":{"samples":8,"ran":2,"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":"d86fb168246b16a4","entry":"fast_hist","repo":"tsunghan-wu/d2ada","repo_kind":"official","path":"evaluation.py","file_url":"https://github.com/tsunghan-wu/d2ada/blob/HEAD/evaluation.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d86fb168246b16a4"}},{"code_sha256_prefix":"b1c59751f8968e99","entry":"per_class_iu","repo":"tsunghan-wu/d2ada","repo_kind":"official","path":"evaluation.py","file_url":"https://github.com/tsunghan-wu/d2ada/blob/HEAD/evaluation.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b1c59751f8968e99"}},{"code_sha256_prefix":"bcfd47261d90f53e","entry":"label_mapping","repo":"tsunghan-wu/d2ada","repo_kind":"official","path":"evaluation.py","file_url":"https://github.com/tsunghan-wu/d2ada/blob/HEAD/evaluation.py","link_basis":"harvester_set","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":"bcfd47261d90f53e"}},{"code_sha256_prefix":"e7ced40f3c7dbf28","entry":"row_norms","repo":"tsunghan-wu/d2ada","repo_kind":"official","path":"active_selection/utils.py","file_url":"https://github.com/tsunghan-wu/d2ada/blob/HEAD/active_selection/utils.py","link_basis":"harvester_set","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":"e7ced40f3c7dbf28"}},{"code_sha256_prefix":"9e5329f228202a69","entry":"softmax_confidence","repo":"tsunghan-wu/d2ada","repo_kind":"official","path":"active_selection/softmax_uncertainty.py","file_url":"https://github.com/tsunghan-wu/d2ada/blob/HEAD/active_selection/softmax_uncertainty.py","link_basis":"harvester_set","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":"9e5329f228202a69"}},{"code_sha256_prefix":"f5f16065ea0422a4","entry":"softmax_entropy","repo":"tsunghan-wu/d2ada","repo_kind":"official","path":"active_selection/softmax_uncertainty.py","file_url":"https://github.com/tsunghan-wu/d2ada/blob/HEAD/active_selection/softmax_uncertainty.py","link_basis":"harvester_set","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":"f5f16065ea0422a4"}},{"code_sha256_prefix":"521ab3e8b9cb84b2","entry":"softmax_margin","repo":"tsunghan-wu/d2ada","repo_kind":"official","path":"active_selection/softmax_uncertainty.py","file_url":"https://github.com/tsunghan-wu/d2ada/blob/HEAD/active_selection/softmax_uncertainty.py","link_basis":"harvester_set","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":"521ab3e8b9cb84b2"}},{"code_sha256_prefix":"80f4b42e2ee8a512","entry":"weighted_roundrobin","repo":"tsunghan-wu/d2ada","repo_kind":"official","path":"active_selection/utils.py","file_url":"https://github.com/tsunghan-wu/d2ada/blob/HEAD/active_selection/utils.py","link_basis":"harvester_set","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":"80f4b42e2ee8a512"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}