Hi,
I am assuming you are dealing with a semantic segmentation task. And I think this thread can really help you!