I changed it and made it work with hand segmantation, with only two classes, they are: hand (white) and background (black)
the problem is when using this function :
I want the result to be like the one shown in the link,or for example like this:
but I got this:
Also, I want to ask if there is a way to show the predicted mask of the image alone? when I tried to show the 'expected' variable, all the image appeared as black.