Skip to content

Commit 1742aac

Browse files
committed
fixed error strings
1 parent 03c86c4 commit 1742aac

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lsnms/util.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -430,14 +430,14 @@ def check_correct_arrays(boxes: np.array, scores: np.array, class_ids: Optional[
430430
)
431431
if scores.ndim != 1 or len(scores) != len(boxes):
432432
raise ValueError(
433-
f"Scores should be a one-dimensional vector of same size as boxes vector."
434-
f"Received object of shape {scores.shape}."
433+
f"Scores should be a one-dimensional vector of same size as boxes vector. "
434+
f"Received object of shape {scores.shape} but {len(boxes)} boxes."
435435
)
436436
if class_ids is not None:
437437
if class_ids.ndim != 1 or len(class_ids) != len(boxes):
438438
raise ValueError(
439-
f"Class_ids should be a one-dimensional vector of same size as boxes vector."
440-
f"Received object of shape {class_ids.shape}."
439+
f"Class_ids should be a one-dimensional vector of same size as boxes vector. "
440+
f"Received object of shape {class_ids.shape} but {len(boxes)} boxes."
441441
)
442442

443443
# Check that boxes are in correct orientation

0 commit comments

Comments
 (0)