{"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/open-set-domain-adaptation-for-semantic","title":"Open-Set Domain Adaptation for Semantic Segmentation","arxiv_id":"2405.19899","date":"2024-05-30","proceeding":"CVPR 2024 1","authors":["Seun-An Choe","Ah-Hyung Shin","Keon-Hee Park","Jinwoo Choi","Gyeong-Moon Park"],"abstract":"Unsupervised domain adaptation (UDA) for semantic segmentation aims to transfer the pixel-wise knowledge from the labeled source domain to the unlabeled target domain. However, current UDA methods typically assume a shared label space between source and target, limiting their applicability in real-world scenarios where novel categories may emerge in the target domain. In this paper, we introduce Open-Set Domain Adaptation for Semantic Segmentation (OSDA-SS) for the first time, where the target domain includes unknown classes. We identify two major problems in the OSDA-SS scenario as follows: 1) the existing UDA methods struggle to predict the exact boundary of the unknown classes, and 2) they fail to accurately predict the shape of the unknown classes. To address these issues, we propose Boundary and Unknown Shape-Aware open-set domain adaptation, coined BUS. Our BUS can accurately discern the boundaries between known and unknown classes in a contrastive manner using a novel dilation-erosion-based contrastive loss. In addition, we propose OpenReMix, a new domain mixing augmentation method that guides our model to effectively learn domain and size-invariant features for improving the shape detection of the known and unknown classes. Through extensive experiments, we demonstrate that our proposed BUS effectively detects unknown classes in the challenging OSDA-SS scenario compared to the previous methods by a large margin. The code is available at https://github.com/KHU-AGI/BUS.","url_abs":"https://arxiv.org/abs/2405.19899v1","url_pdf":"https://arxiv.org/pdf/2405.19899v1.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":"open-set-domain-adaptation-for-semantic","repo_url":"https://github.com/khu-agi/bus","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"domain-adaptation","task_name":"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=2405.19899","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2405.19899"}},"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":"deterministic:regex_extraction","url":"https://github.com/KHU-AGI/BUS","reach":{"status":"ok"}}],"summary":{"ran_draft_wrong":2,"ran":1,"ran_fixture":2,"unverified":5},"by_repo_kind":{"official":{"samples":10,"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":10,"samples":[{"code_sha256_prefix":"903b0922a749302e","entry":"get_backbone_cfg","repo":"KHU-AGI/BUS","repo_kind":"official","path":"experiments.py","file_url":"https://github.com/KHU-AGI/BUS/blob/HEAD/experiments.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":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"903b0922a749302e"}},{"code_sha256_prefix":"8a8f2b971ff792d4","entry":"get_model_base","repo":"KHU-AGI/BUS","repo_kind":"official","path":"experiments.py","file_url":"https://github.com/KHU-AGI/BUS/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":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"8a8f2b971ff792d4"}},{"code_sha256_prefix":"7063030b369b4ce1","entry":"get_pretraining_file","repo":"KHU-AGI/BUS","repo_kind":"official","path":"experiments.py","file_url":"https://github.com/KHU-AGI/BUS/blob/HEAD/experiments.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":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"7063030b369b4ce1"}},{"code_sha256_prefix":"733d7f0bedcb74c2","entry":"get_rel_pos","repo":"KHU-AGI/BUS","repo_kind":"official","path":"MobileSam/mobile_sam/modeling/image_encoder.py","file_url":"https://github.com/KHU-AGI/BUS/blob/HEAD/MobileSam/mobile_sam/modeling/image_encoder.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"733d7f0bedcb74c2"}},{"code_sha256_prefix":"105fa08885dc36cc","entry":"window_partition","repo":"KHU-AGI/BUS","repo_kind":"official","path":"MobileSam/mobile_sam/modeling/image_encoder.py","file_url":"https://github.com/KHU-AGI/BUS/blob/HEAD/MobileSam/mobile_sam/modeling/image_encoder.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"105fa08885dc36cc"}},{"code_sha256_prefix":"f9bc5f31ce61cee8","entry":"build_sam_vit_b","repo":"KHU-AGI/BUS","repo_kind":"official","path":"MobileSam/mobile_sam/build_sam.py","file_url":"https://github.com/KHU-AGI/BUS/blob/HEAD/MobileSam/mobile_sam/build_sam.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f9bc5f31ce61cee8"}},{"code_sha256_prefix":"6b77c1f11fff3ed6","entry":"build_sam_vit_h","repo":"KHU-AGI/BUS","repo_kind":"official","path":"MobileSam/mobile_sam/build_sam.py","file_url":"https://github.com/KHU-AGI/BUS/blob/HEAD/MobileSam/mobile_sam/build_sam.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"6b77c1f11fff3ed6"}},{"code_sha256_prefix":"3f8890e695469246","entry":"build_sam_vit_l","repo":"KHU-AGI/BUS","repo_kind":"official","path":"MobileSam/mobile_sam/build_sam.py","file_url":"https://github.com/KHU-AGI/BUS/blob/HEAD/MobileSam/mobile_sam/build_sam.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3f8890e695469246"}},{"code_sha256_prefix":"9d5a5692e595b123","entry":"register_tiny_vit_model","repo":"KHU-AGI/BUS","repo_kind":"official","path":"MobileSam/mobile_sam/modeling/tiny_vit_sam.py","file_url":"https://github.com/KHU-AGI/BUS/blob/HEAD/MobileSam/mobile_sam/modeling/tiny_vit_sam.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9d5a5692e595b123"}},{"code_sha256_prefix":"27be441cc8213e52","entry":"window_unpartition","repo":"KHU-AGI/BUS","repo_kind":"official","path":"MobileSam/mobile_sam/modeling/image_encoder.py","file_url":"https://github.com/KHU-AGI/BUS/blob/HEAD/MobileSam/mobile_sam/modeling/image_encoder.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"27be441cc8213e52"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}