BS-loss: Boundary-Sensitive Loss Function With Location Constraint for Hard Region Segmentation
This repository is an official PyTorch implementation of the paper “Boundary-Sensitive Loss Function With Location Constraint for Hard Region Segmentation” [paper] (https://ieeexplore.ieee.org/document/9950613) from IEEE Journal of Biomedical and Health Informatics (JBHI) 2022. GitHub: Boundary-Sensitive Loss Function With Location Constraint for Hard Region Segmentation
Requirements (PyTorch)
Core implementation (to integrate the bs loss into your own code):
- python 3.8
- pytorch 1.8.1
- opencv-python 4.6.0.66
- numpy
To reproduce our experiments:
- python 3.8
- pytorch 1.8.1
- copy
- numpy