How to fix groundtruth images

username: lavender99
cooked: <p>Hi<br>
maybe this question is not so related to pytroch but i believe this community can help me<br>
i have  a dataset where my ground truth images are so black and gray when i train the network on this dataset i am getting 100% accuracy because it read it as a black image</p>
<p><div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/2X/5/596b6027960cc19ecb05572f410d768b0624070c.jpeg" data-download-href="https://discuss.pytorch.org/uploads/default/596b6027960cc19ecb05572f410d768b0624070c" title="44"><img src="https://discuss.pytorch.org/uploads/default/optimized/2X/5/596b6027960cc19ecb05572f410d768b0624070c_2_375x500.jpeg" alt="44" data-base62-sha1="cL2xQYLNYZYXHHbCDrWTn5dgg3y" width="375" height="500" srcset="https://discuss.pytorch.org/uploads/default/optimized/2X/5/596b6027960cc19ecb05572f410d768b0624070c_2_375x500.jpeg, https://discuss.pytorch.org/uploads/default/optimized/2X/5/596b6027960cc19ecb05572f410d768b0624070c_2_562x750.jpeg 1.5x, https://discuss.pytorch.org/uploads/default/optimized/2X/5/596b6027960cc19ecb05572f410d768b0624070c_2_750x1000.jpeg 2x" data-dominant-color="897462"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">44</span><span class="informations">3096×4128 691 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div></p>
<p><div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/2X/e/ef526ba791b28bc08e9f095300280506760bff10.png" data-download-href="https://discuss.pytorch.org/uploads/default/ef526ba791b28bc08e9f095300280506760bff10" title="44"><img src="https://discuss.pytorch.org/uploads/default/optimized/2X/e/ef526ba791b28bc08e9f095300280506760bff10_2_666x500.png" alt="44" data-base62-sha1="y98Hr6oa1U3qR1pnXdAeuFdfpks" width="666" height="500" srcset="https://discuss.pytorch.org/uploads/default/optimized/2X/e/ef526ba791b28bc08e9f095300280506760bff10_2_666x500.png, https://discuss.pytorch.org/uploads/default/optimized/2X/e/ef526ba791b28bc08e9f095300280506760bff10_2_999x750.png 1.5x, https://discuss.pytorch.org/uploads/default/optimized/2X/e/ef526ba791b28bc08e9f095300280506760bff10_2_1332x1000.png 2x" data-dominant-color="1D1D1D"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">44</span><span class="informations">4128×3096 32.9 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div></p>

username: ptrblck
cooked: <p>What question do you have regarding the image?<br>
Do you encounter any errors in your code or would you just like to discuss the use case?</p>

username: lavender99
cooked: <p>My question is if there is a way to make gt images more visible , with gray and black color it is hard to do the segmentation , the network does not seem to know where is the segmentted part and even when I display the image after the loader I am getting  a completely balck image</p>

username: ptrblck
cooked: <p>How are you visualizing the target image and what kind of pixel values does it contain?<br>
If you are dealing with a segmentation use case, each pixel should contain the corresponding class index. In your case if looks like the target has only two classes, thus it should only contain pixel values of 0 and 1.<br>
<code>matplotlib.pyplot</code> usually scaled the colormap, so that you should get a black and white image.</p>

username: lavender99
cooked: <p>Yes my case is segmentation  , but will this quality of image effect the segmentation task or not , because I do not seem to make the model works with this dataset</p>