{"id":18276247,"url":"https://github.com/hilab-git/aceloss","last_synced_at":"2025-10-14T14:40:03.902Z","repository":{"id":108580281,"uuid":"309102880","full_name":"HiLab-git/ACELoss","owner":"HiLab-git","description":"Implementations of \"Learning Euler's Elastica Model for Medical Image Segmentation\"","archived":false,"fork":false,"pushed_at":"2021-01-10T12:53:50.000Z","size":2616,"stargazers_count":74,"open_issues_count":2,"forks_count":12,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-14T14:40:01.839Z","etag":null,"topics":["active-contour-model","loss-functions","medical-image-segmentation"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HiLab-git.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-01T13:33:36.000Z","updated_at":"2025-07-22T06:38:29.000Z","dependencies_parsed_at":"2023-04-14T00:53:57.820Z","dependency_job_id":null,"html_url":"https://github.com/HiLab-git/ACELoss","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/HiLab-git/ACELoss","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HiLab-git%2FACELoss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HiLab-git%2FACELoss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HiLab-git%2FACELoss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HiLab-git%2FACELoss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HiLab-git","download_url":"https://codeload.github.com/HiLab-git/ACELoss/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HiLab-git%2FACELoss/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279019154,"owners_count":26086682,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["active-contour-model","loss-functions","medical-image-segmentation"],"created_at":"2024-11-05T12:15:33.236Z","updated_at":"2025-10-14T14:40:03.892Z","avatar_url":"https://github.com/HiLab-git.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Active Contour Euler Elastica Loss Functions\nOfficial implementations of paper: [Learning Euler's Elastica Model for Medical Image Segmentation](https://arxiv.org/pdf/2011.00526.pdf), and a short version was accepted by ISBI 2021 .\n* Implemented a novel active contour-based loss function, a combination of region term, length term, and elastica term (mean curvature).\n* Reimplemented some popular active contour-based loss functions in different ways, such as 3D Active-Contour-Loss based on Sobel filter and max-and min-pool.\n\n## Introduction and Some Results\n* ### **Pipeline of ACE loss**.\n![](https://github.com/Luoxd1996/Active_Contour_Euler_Elastica_Loss/blob/main/ACELoss_pipeline.png) \n* ### **2D results and visualization**.\n![](https://github.com/Luoxd1996/Active_Contour_Euler_Elastica_Loss/blob/main/table1.png) \n![](https://github.com/Luoxd1996/Active_Contour_Euler_Elastica_Loss/blob/main/figure1.png) \n* ### **3D results and visualization**.\n![](https://github.com/Luoxd1996/Active_Contour_Euler_Elastica_Loss/blob/main/table2.png) \n![](https://github.com/Luoxd1996/Active_Contour_Euler_Elastica_Loss/blob/main/figure2.png) \n\n* If you want to use these methods just as constrains (combining with dice loss or ce loss), you can use **torch.mean()** to replace **torch.sum()**.\n\n## Requirements\nSome important required packages include:\n* [Pytorch][torch_link] version \u003e= 0.4.1.\n* Python  \u003e= 3.6.\n\nFollow official guidance to install. [Pytorch][torch_link].\n\n[torch_link]:https://pytorch.org/\n\n## Citation\nIf you find Active Contour Based Loss Functions are useful in your research, please consider to cite:\n\n\t@inproceedings{chen2020aceloss,\n\t  title={Learning Euler's Elastica Model for Medical Image Segmentation},\n\t  author={Chen, Xu and Luo, Xiangde and Zhao, Yitian and Zhang, Shaoting and Wang, Guotai and Zheng, Yalin},\n\t  journal={arXiv preprint arXiv:2011.00526},\n\t  year={2020}\n\t}\n\n\t@inproceedings{chen2019learning,\n\t  title={Learning Active Contour Models for Medical Image Segmentation},\n\t  author={Chen, Xu and Williams, Bryan M and Vallabhaneni, Srinivasa R and Czanner, Gabriela and Williams, Rachel and Zheng, Yalin},\n\t  booktitle={Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition},\n\t  pages={11632--11640},\n\t  year={2019}\n\t}\n\n## Other Active Contour Based Loss Functions\n* Active Contour Loss ([ACLoss](https://github.com/xuuuuuuchen/Active-Contour-Loss)).\n* Geodesic Active Contour Loss ([GAC](https://ieeexplore.ieee.org/document/9187860)).\n* Elastic-Interaction-based Loss ([EILoss](https://github.com/charrywhite/elastic_interaction_based_loss))\n\n## Acknowledgement\n* We thank [Dr. Jun Ma](https://github.com/JunMa11) for instructive discussion of curvature implementation and also thank [Mr. Yechong Huang](https://github.com/huohuayuzhong) for instructive help during the implementation processing of 3D curvature, Sobel, and  Laplace operators.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhilab-git%2Faceloss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhilab-git%2Faceloss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhilab-git%2Faceloss/lists"}