title: how to mask the segmented area in a image?
body: <p>I want to create a semantic segmentation model, which can segment the follicles in USG, using U-net. I have labelled my training data using Labelme. The color of the labelled area is #800000. How to mask this image in black and white form. I have replace the color with #ffffff. But while training the model it is giving an error: 0img.png violating range [0, 1]. Found maximum pixel value 255. Please help me to solve this problem. Images are given below. Thanks in advance.</p>
  
  <p><a href="https://i.stack.imgur.com/apH4P.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/apH4P.jpg" alt="USG Scan"></a></p>
  
  <p><a href="https://i.stack.imgur.com/0Roji.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0Roji.png" alt="Segmented Image"></a></p>