[Question] Does PaDiM support uint16? #2618
-
Hello all! I have a dataset that we received as uint16. Originally, I had converted these to 8bit and I was able to produce models with results. This was part of my initial Anomalib research and trying parts out. However, my conversion was a hard coded situation and wouldn't be easily reproducible in a production environment. I am now trying to make it work with the original uint16 tiff files. However, the predictions that are being returned are identical. I was asked to work on this with Yolo as well, and stumbled into Yolo doesn't support 16 bit images. Which leads me this, does PaDiM support uint16? Predictions Example
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The images are read in this function: anomalib/src/anomalib/data/utils/image.py Line 291 in 12c1e84 anomalib uses Pillow to read image files. Pillow doesn't supports 16 bit images, so you may need to write your custom read_image function. The CNNs that run under Padim should have no problems working with 16 bit images. However its unclear if there is any effect on the accuracy using 16 bit. |
Beta Was this translation helpful? Give feedback.
The images are read in this function:
anomalib/src/anomalib/data/utils/image.py
Line 291 in 12c1e84
anomalib uses Pillow to read image files. Pillow doesn't supports 16 bit images, so you may need to write your custom read_image function. The CNNs that run under Padim should have no problems working with 16 bit images. However its unclear if there is any effect on the accuracy using 16 bit.