Skip to content

[Question] Does PaDiM support uint16? #2618

Answered by alexriedel1
vmiller987 asked this question in Q&A
Discussion options

You must be logged in to vote

The images are read in this function:

def read_image(path: str | Path, as_tensor: bool = False) -> torch.Tensor | np.ndarray:

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.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@vmiller987
Comment options

@vmiller987
Comment options

@vmiller987
Comment options

Answer selected by vmiller987
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants