PyTorch Implementation of commonly used loss functions for medical image segmentation tasks. Some codes are from nnUNet Loss_ToolBox-PyTorch 3D U-Net All the loss functions have been tested with nnUNet. Also, they can be used in a plug-and-play way.