Thank you so much for posting this code. This has helped me so much. I’m trying to adapt this code for use in an image segmentation project. Do you have any advice on changing the label_from_array code to take in an equal size label array as the input array?
I’d appreciate any help that anyone can give, hopefully resurrecting an old thread isn’t a problem!
Hi ! I’m very interested in knowing if fastai has already a builtin function that do this or similar:
I’m loading 16 bits png chest xrays images. When calling dls.show_batch() all images looks white, which I think is due to the function is not normalizing correctly the values from the 16 bit images [0, 65535]. I don’t care that much about displaying but if the model is getting the images as I want to (16 bits [0, 65535] but normalize in the range [0, 1]). I’ve read that Pytorch does normalize in the range [0, 1] all images (8 and 16 bits ones).