{"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/freecos-self-supervised-learning-from","title":"FreeCOS: Self-Supervised Learning from Fractals and Unlabeled Images for Curvilinear Object Segmentation","arxiv_id":"2307.07245","date":"2023-07-14","proceeding":"ICCV 2023 1","authors":["Tianyi Shi","Xiaohuan Ding","Liang Zhang","Xin Yang"],"abstract":"Curvilinear object segmentation is critical for many applications. However, manually annotating curvilinear objects is very time-consuming and error-prone, yielding insufficiently available annotated datasets for existing supervised methods and domain adaptation methods. This paper proposes a self-supervised curvilinear object segmentation method that learns robust and distinctive features from fractals and unlabeled images (FreeCOS). The key contributions include a novel Fractal-FDA synthesis (FFS) module and a geometric information alignment (GIA) approach. FFS generates curvilinear structures based on the parametric Fractal L-system and integrates the generated structures into unlabeled images to obtain synthetic training images via Fourier Domain Adaptation. GIA reduces the intensity differences between the synthetic and unlabeled images by comparing the intensity order of a given pixel to the values of its nearby neighbors. Such image alignment can explicitly remove the dependency on absolute intensity values and enhance the inherent geometric characteristics which are common in both synthetic and real images. In addition, GIA aligns features of synthetic and real images via the prediction space adaptation loss (PSAL) and the curvilinear mask contrastive loss (CMCL). Extensive experimental results on four public datasets, i.e., XCAD, DRIVE, STARE and CrackTree demonstrate that our method outperforms the state-of-the-art unsupervised methods, self-supervised methods and traditional methods by a large margin. The source code of this work is available at https://github.com/TY-Shi/FreeCOS.","url_abs":"https://arxiv.org/abs/2307.07245v1","url_pdf":"https://arxiv.org/pdf/2307.07245v1.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":"freecos-self-supervised-learning-from","repo_url":"https://github.com/ty-shi/freecos","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":"self-supervised-learning","task_name":"Self-Supervised Learning"},{"task_slug":"semantic-segmentation","task_name":"Semantic Segmentation"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2307.07245","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2307.07245"}},"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/TY-Shi/FreeCOS","reach":{"status":"ok"}}],"summary":{"ran_draft_wrong":1,"ran":4,"unverified":4},"by_repo_kind":{"official":{"samples":9,"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":9,"samples":[{"code_sha256_prefix":"fac5364e2f53c6db","entry":"conv3x3","repo":"TY-Shi/FreeCOS","repo_kind":"official","path":"base_model/hrnet.py","file_url":"https://github.com/TY-Shi/FreeCOS/blob/HEAD/base_model/hrnet.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":"fac5364e2f53c6db"}},{"code_sha256_prefix":"c7bf277141db5c76","entry":"enhance_op","repo":"TY-Shi/FreeCOS","repo_kind":"official","path":"base_model/contrastive_utils.py","file_url":"https://github.com/TY-Shi/FreeCOS/blob/HEAD/base_model/contrastive_utils.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":"c7bf277141db5c76"}},{"code_sha256_prefix":"3ce5377306b05b51","entry":"get_query_keys_eval","repo":"TY-Shi/FreeCOS","repo_kind":"official","path":"base_model/contrastive_utils.py","file_url":"https://github.com/TY-Shi/FreeCOS/blob/HEAD/base_model/contrastive_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":"3ce5377306b05b51"}},{"code_sha256_prefix":"dcb53fb47cd11c4d","entry":"mask2edge","repo":"TY-Shi/FreeCOS","repo_kind":"official","path":"base_model/contrastive_head.py","file_url":"https://github.com/TY-Shi/FreeCOS/blob/HEAD/base_model/contrastive_head.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":"dcb53fb47cd11c4d"}},{"code_sha256_prefix":"ae385850415f34bb","entry":"normalize_batch","repo":"TY-Shi/FreeCOS","repo_kind":"official","path":"base_model/contrastive_utils.py","file_url":"https://github.com/TY-Shi/FreeCOS/blob/HEAD/base_model/contrastive_utils.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":"ae385850415f34bb"}},{"code_sha256_prefix":"440d314db84b3f63","entry":"LIOT_example","repo":"TY-Shi/FreeCOS","repo_kind":"official","path":"LIOT.py","file_url":"https://github.com/TY-Shi/FreeCOS/blob/HEAD/LIOT.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":"440d314db84b3f63"}},{"code_sha256_prefix":"db2433c1ca284b73","entry":"distance_weight_binary_pattern_faster","repo":"TY-Shi/FreeCOS","repo_kind":"official","path":"LIOT.py","file_url":"https://github.com/TY-Shi/FreeCOS/blob/HEAD/LIOT.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":"db2433c1ca284b73"}},{"code_sha256_prefix":"636b23389eba27a1","entry":"get_seg_hrnet_w18s","repo":"TY-Shi/FreeCOS","repo_kind":"official","path":"base_model/hrnet.py","file_url":"https://github.com/TY-Shi/FreeCOS/blob/HEAD/base_model/hrnet.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":"636b23389eba27a1"}},{"code_sha256_prefix":"835ca2564a9653a6","entry":"get_seg_hrnet_w48","repo":"TY-Shi/FreeCOS","repo_kind":"official","path":"base_model/hrnet.py","file_url":"https://github.com/TY-Shi/FreeCOS/blob/HEAD/base_model/hrnet.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":"835ca2564a9653a6"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}