I am training an image segmentation model, but I would like my IoU to be improve (maximized) during the training. How can I achieve that?
Please note, I am actually looking for a python code recommendation, where the code helps to implement the Jaccard / IoU as a loss function?