Loading grayscale images

download ![Calc-

Loaded mammography images(grayscale) using the pytorch dataloaders, but when i dsiplay them, they all just white… with really nothing to see…

Could you post the code you’ve used to load the image?
Also if possible, could you upload a sample image somewhere?
Have a look at some values inside the image tensor. Maybe you’ve successfully loaded the images, while the visualization makes some problems.

Any possible cause of this?

Thanks for the code.
Unfortunately I cannot reproduce the issue, as the images you’ve sent me are grayscale images in int32 format.
The Normalize transform won’t work without a transformation.
Could you check the min and max values in your image and tensor after the normalization?


What do you mean by " The Normalize transform won’t work without a transformation."?