feat: add support for exported models from anomalib #365
+122
−33
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR enables support for models exported from Anomalib
Examples
Input image
Padim
Model API inference
anomaly_map min/max: 149/255
anomaly_map mean: 212.12
anomaly_map std: 25.56
anomaly_map shape: (1371, 2048)
anomaly_map dtype: uint8
Anomalib inference
anomaly_map min/max: 148/255
anomaly_map mean: 219.27
anomaly_map std: 24.39
anomaly_map shape: (1371, 2048)
anomaly_map dtype: uint8
Stfpm
Model API inference
anomaly_map min/max: 119/255
anomaly_map mean: 230.04
anomaly_map std: 22.99
anomaly_map shape: (1371, 2048)
anomaly_map dtype: uint8
Anomalib inference
anomaly_map min/max: 120/255
anomaly_map mean: 236.65
anomaly_map std: 20.05
anomaly_map shape: (1371, 2048)
anomaly_map dtype: uint8
Uflow
Model API inference
anomaly_map min/max: 191/191
anomaly_map mean: 191.00
anomaly_map std: 0.00
anomaly_map shape: (1371, 2048)
anomaly_map dtype: uint8
Anomalib inference:
anomaly_map min/max: 184/191
anomaly_map mean: 190.96
anomaly_map std: 0.38
anomaly_map shape: (1371, 2048)
anomaly_map dtype: uint8
Geti anomaly model (otx)
anomaly_map min/max: 18/255
anomaly_map mean: 85.54
anomaly_map std: 55.46
anomaly_map shape: (1371, 2048)
anomaly_map dtype: uint8