Skip to content

Commit

Permalink
Updating for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
prernadh committed Dec 31, 2024
1 parent 35800a6 commit 3cee74a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions fiftyone/utils/eval/segmentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,15 +423,14 @@ def evaluate_samples(
missing = classes[0] if values[0] in (0, "#000000") else None
else:
missing = None
if len(matches) == 0:
matches = None

return SegmentationResults(
samples,
self.config,
eval_key,
confusion_matrix,
classes,
matches=matches,
matches=None if len(matches) == 0 else matches,
missing=missing,
backend=self,
)
Expand Down

0 comments on commit 3cee74a

Please sign in to comment.