{"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/two-tricks-to-improve-unsupervised","title":"Boosting Unsupervised Segmentation Learning","arxiv_id":"2404.03392","date":"2024-04-04","proceeding":null,"authors":["Alp Eren Sari","Francesco Locatello","Paolo Favaro"],"abstract":"We present two practical improvement techniques for unsupervised segmentation learning. These techniques address limitations in the resolution and accuracy of predicted segmentation maps of recent state-of-the-art methods. Firstly, we leverage image post-processing techniques such as guided filtering to refine the output masks, improving accuracy while avoiding substantial computational costs. Secondly, we introduce a multi-scale consistency criterion, based on a teacher-student training scheme. This criterion matches segmentation masks predicted from regions of the input image extracted at different resolutions to each other. Experimental results on several benchmarks used in unsupervised segmentation learning demonstrate the effectiveness of our proposed techniques.","url_abs":"https://arxiv.org/abs/2404.03392v3","url_pdf":"https://arxiv.org/pdf/2404.03392v3.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":"two-tricks-to-improve-unsupervised","repo_url":"https://github.com/alperensari/segmentation-tricks","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"segmentation","task_name":"Segmentation"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2404.03392","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2404.03392"}},"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/alperensari/segmentation-tricks","reach":{"status":"ok"}}],"summary":{"ran":13,"ran_honours":2,"ran_fixture":1,"ran_draft_wrong":1,"unverified":2},"by_repo_kind":{"official":{"samples":19,"ran":17,"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":19,"samples":[{"code_sha256_prefix":"cd99c956249eb47c","entry":"IoU","repo":"alperensari/segmentation-tricks","repo_kind":"official","path":"token_metric.py","file_url":"https://github.com/alperensari/segmentation-tricks/blob/HEAD/token_metric.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":"cd99c956249eb47c"}},{"code_sha256_prefix":"cf664ed7f1a2e9f8","entry":"IoU_order","repo":"alperensari/segmentation-tricks","repo_kind":"official","path":"token_metric.py","file_url":"https://github.com/alperensari/segmentation-tricks/blob/HEAD/token_metric.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":"cf664ed7f1a2e9f8"}},{"code_sha256_prefix":"aadbae972a4e58c4","entry":"IoU_seperate","repo":"alperensari/segmentation-tricks","repo_kind":"official","path":"token_metric.py","file_url":"https://github.com/alperensari/segmentation-tricks/blob/HEAD/token_metric.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"aadbae972a4e58c4"}},{"code_sha256_prefix":"d4def6521d962d05","entry":"boxfilter2d","repo":"alperensari/segmentation-tricks","repo_kind":"official","path":"boxfilter.py","file_url":"https://github.com/alperensari/segmentation-tricks/blob/HEAD/boxfilter.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d4def6521d962d05"}},{"code_sha256_prefix":"2b5489053b222e00","entry":"clip_gradients","repo":"alperensari/segmentation-tricks","repo_kind":"official","path":"utils.py","file_url":"https://github.com/alperensari/segmentation-tricks/blob/HEAD/utils.py","link_basis":"harvester_set","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":"2b5489053b222e00"}},{"code_sha256_prefix":"361a6b24f11fc50a","entry":"cosine_scheduler","repo":"alperensari/segmentation-tricks","repo_kind":"official","path":"utils.py","file_url":"https://github.com/alperensari/segmentation-tricks/blob/HEAD/utils.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"361a6b24f11fc50a"}},{"code_sha256_prefix":"55120f2026b56aa2","entry":"drop_path","repo":"alperensari/segmentation-tricks","repo_kind":"official","path":"vision_transformer.py","file_url":"https://github.com/alperensari/segmentation-tricks/blob/HEAD/vision_transformer.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"55120f2026b56aa2"}},{"code_sha256_prefix":"b8ef2b49a369cb69","entry":"get_color_distortion","repo":"alperensari/segmentation-tricks","repo_kind":"official","path":"utils_dis.py","file_url":"https://github.com/alperensari/segmentation-tricks/blob/HEAD/utils_dis.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b8ef2b49a369cb69"}},{"code_sha256_prefix":"cf9876427eafee4e","entry":"get_dino_output_tokens","repo":"alperensari/segmentation-tricks","repo_kind":"official","path":"utils_train.py","file_url":"https://github.com/alperensari/segmentation-tricks/blob/HEAD/utils_train.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":"cf9876427eafee4e"}},{"code_sha256_prefix":"d3c6ce579cbb603f","entry":"get_vec_sim_loss","repo":"alperensari/segmentation-tricks","repo_kind":"official","path":"utils_dis.py","file_url":"https://github.com/alperensari/segmentation-tricks/blob/HEAD/utils_dis.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":"d3c6ce579cbb603f"}},{"code_sha256_prefix":"fc95de71038fb481","entry":"load_pretrained_weights","repo":"alperensari/segmentation-tricks","repo_kind":"official","path":"utils.py","file_url":"https://github.com/alperensari/segmentation-tricks/blob/HEAD/utils.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":"fc95de71038fb481"}},{"code_sha256_prefix":"7dfe1c90678dc54a","entry":"my_tensor_product","repo":"alperensari/segmentation-tricks","repo_kind":"official","path":"guided_filter.py","file_url":"https://github.com/alperensari/segmentation-tricks/blob/HEAD/guided_filter.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":"7dfe1c90678dc54a"}},{"code_sha256_prefix":"12de5cf1a9536fef","entry":"norm","repo":"alperensari/segmentation-tricks","repo_kind":"official","path":"utils_train.py","file_url":"https://github.com/alperensari/segmentation-tricks/blob/HEAD/utils_train.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"12de5cf1a9536fef"}},{"code_sha256_prefix":"d31e6305789cbce4","entry":"normalize_chunks","repo":"alperensari/segmentation-tricks","repo_kind":"official","path":"utils_dis.py","file_url":"https://github.com/alperensari/segmentation-tricks/blob/HEAD/utils_dis.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d31e6305789cbce4"}},{"code_sha256_prefix":"6a6e5c247d893c0e","entry":"prep_for_plot","repo":"alperensari/segmentation-tricks","repo_kind":"official","path":"utils_metric.py","file_url":"https://github.com/alperensari/segmentation-tricks/blob/HEAD/utils_metric.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":"6a6e5c247d893c0e"}},{"code_sha256_prefix":"d86ef5508de1f079","entry":"resize","repo":"alperensari/segmentation-tricks","repo_kind":"official","path":"utils_metric.py","file_url":"https://github.com/alperensari/segmentation-tricks/blob/HEAD/utils_metric.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":"d86ef5508de1f079"}},{"code_sha256_prefix":"205e834237bf794c","entry":"shuffle","repo":"alperensari/segmentation-tricks","repo_kind":"official","path":"utils_metric.py","file_url":"https://github.com/alperensari/segmentation-tricks/blob/HEAD/utils_metric.py","link_basis":"plan_row","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"205e834237bf794c"}},{"code_sha256_prefix":"58706db0d93807d1","entry":"crop_my_images","repo":"alperensari/segmentation-tricks","repo_kind":"official","path":"utils_data.py","file_url":"https://github.com/alperensari/segmentation-tricks/blob/HEAD/utils_data.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":"58706db0d93807d1"}},{"code_sha256_prefix":"305f5b498129a2ed","entry":"get_valid_idx","repo":"alperensari/segmentation-tricks","repo_kind":"official","path":"bilateral_solver.py","file_url":"https://github.com/alperensari/segmentation-tricks/blob/HEAD/bilateral_solver.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":"305f5b498129a2ed"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}