mirror of
https://github.com/macaodha/batdetect2.git
synced 2025-06-29 14:41:58 +02:00
Revert support for newest numpy versions.
This commit is contained in:
parent
68351d2224
commit
2d8a7b67f8
@ -242,7 +242,7 @@ def format_single_result(
|
||||
)
|
||||
class_name = class_names[np.argmax(class_overall)]
|
||||
annotations = get_annotations_from_preds(predictions, class_names)
|
||||
except (np.exceptions.AxisError, ValueError):
|
||||
except (np.AxisError, ValueError):
|
||||
# No detections
|
||||
class_overall = np.zeros(len(class_names))
|
||||
class_name = "None"
|
||||
|
Loading…
Reference in New Issue
Block a user