Skip to content

Commit f97ef26

Browse files
committed
Fix: AudioDatasetComparator issue
1 parent 347d227 commit f97ef26

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

cvat/apps/quality_control/quality_reports.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2223,22 +2223,13 @@ def _match_annotations(self, ds_annotations, gt_annotations):
22232223
ds_unmatched = ds_annotations.copy()
22242224
pairwise_distances = {}
22252225

2226-
matched_ds_annotations = set() # Track DS annotations that have already been matched
2227-
matched_gt_annotations = set() # Track GT annotations that have already been matched
2228-
22292226
for gt_ann in gt_annotations:
2230-
if gt_ann in matched_gt_annotations:
2231-
continue
2232-
22332227
best_match = None
22342228
best_match_iou = 0
22352229
best_mismatch = None
22362230
best_mismatch_iou = 0
22372231

22382232
for ds_ann in ds_annotations:
2239-
if ds_ann in matched_ds_annotations:
2240-
continue # Skip DS annotations that have already been matched
2241-
22422233
gt_interval = (gt_ann["points"][0], gt_ann["points"][3])
22432234
ds_interval = (ds_ann["points"][0], ds_ann["points"][3])
22442235
iou = self._interval_iou(gt_interval, ds_interval)
@@ -2259,8 +2250,6 @@ def _match_annotations(self, ds_annotations, gt_annotations):
22592250
gt_unmatched.remove(gt_ann)
22602251
if best_match in ds_unmatched:
22612252
ds_unmatched.remove(best_match)
2262-
matched_ds_annotations.add(best_match)
2263-
matched_gt_annotations.add(gt_ann)
22642253
elif best_mismatch:
22652254
gt_transcript = gt_ann["transcript"]
22662255
ds_transcript = best_mismatch["transcript"]
@@ -2274,8 +2263,6 @@ def _match_annotations(self, ds_annotations, gt_annotations):
22742263
gt_unmatched.remove(gt_ann)
22752264
if best_mismatch in ds_unmatched:
22762265
ds_unmatched.remove(best_mismatch)
2277-
matched_ds_annotations.add(best_mismatch)
2278-
matched_gt_annotations.add(gt_ann)
22792266

22802267
return [matches, mismatches, gt_unmatched, ds_unmatched, pairwise_distances]
22812268

0 commit comments

Comments
 (0)