Skip to content

Commit

Permalink
Updating for readabilitiy
Browse files Browse the repository at this point in the history
  • Loading branch information
prernadh committed Dec 30, 2024
1 parent a167314 commit 7c56ce7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fiftyone/utils/eval/segmentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,11 +390,13 @@ def evaluate_samples(
values,
bandwidth=bandwidth,
)
sample_conf_mat += image_conf_mat

non_zero_indexes = np.nonzero(image_conf_mat)
for index in zip(*non_zero_indexes):
matches.append((classes[index[0]], classes[index[1]], image_conf_mat[index[0], index[1]], gt_seg.id, pred_seg.id))

sample_conf_mat += image_conf_mat

if processing_frames and save:
facc, fpre, frec = _compute_accuracy_precision_recall(
image_conf_mat, values, average
Expand Down

0 comments on commit 7c56ce7

Please sign in to comment.