We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 641ab15 commit e381892Copy full SHA for e381892
sleap_nn/evaluation.py
@@ -61,18 +61,9 @@ def find_frame_pairs(
61
# Find matching video instance in predictions.
62
video_pr = None
63
for video in labels_pr.videos:
64
- if (
65
- isinstance(video.backend, type(video_gt.backend))
66
- and video.filename == video_gt.filename
67
- ):
68
- same_dataset = (
69
- (video.backend.dataset == video_gt.backend.dataset)
70
- if hasattr(video.backend, "dataset")
71
- else True
72
- ) # `dataset` attr exists only for hdf5 backend not for mediavideo
73
- if same_dataset:
74
- video_pr = video
75
- break
+ if video_gt.matches_content(video) and video_gt.matches_path(video):
+ video_pr = video
+ break
76
77
if video_pr is None:
78
continue
0 commit comments