Skip to content

Commit a52582a

Browse files
committed
minor edits
1 parent 9b0253d commit a52582a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

scoring/score.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,7 @@ def score(path_predictions, path_groundtruth, path_output, iou_threshold = .5):
186186

187187
if np.any(arr[:,:4] < 0):
188188
raise ValueError('Bounding boxes cannot be negative.')
189-
190-
if np.any(arr[:,5] < 0) or np.any(arr[:,5] > 1):
191-
raise ValueError('Confidence scores should be between 0 and 1.')
192-
189+
193190
boxes_dict[fname] = arr[:,:6]
194191

195192
pchips = sorted(pchips)

0 commit comments

Comments
 (0)