-
Notifications
You must be signed in to change notification settings - Fork 709
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resize bug in inference #83
Comments
Thanks @QQR1! Good catch! |
@QQR1 Did you manage to train when width and height of the image are not equal? |
@samet-akcay No, I'm getting an error while training, not inference.
This is the error trace:
|
which algorithm is this? Patchcore? |
@samet-akcay PADIM |
Thanks, we'll reproduce the issue, and give you an update here. |
@djdameln Please verify with other algorithms as well. Thanks :) |
Line 152 in ./anomalib/deploy/inferencers/torch.py should be
anomaly_map = cv2.resize(anomaly_map, (meta_data["image_shape"][1], meta_data["image_shape"][0]))
meta_data["image_shape"] is (image_width, image_height)
-# cv2.resize(img, (image_height,image_width ),interpolation=cv2.INTER_CUBIC)
The text was updated successfully, but these errors were encountered: