We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56fdacb commit 09cbadeCopy full SHA for 09cbade
src/anomalib/deploy/inferencers/torch_inferencer.py
@@ -267,11 +267,11 @@ def post_process(
267
# Case III: Predictions could be a list of tensors.
268
elif isinstance(predictions, Sequence):
269
if isinstance(predictions[1], (torch.Tensor)):
270
- anomaly_map, pred_score = predictions
+ pred_score, anomaly_map = predictions
271
anomaly_map = anomaly_map.detach().cpu().numpy()
272
pred_score = pred_score.detach().cpu().numpy()
273
else:
274
275
pred_score = pred_score.detach()
276
277
msg = (
0 commit comments