Description
As a user, I want to see Dice and IoU metrics displayed in the browser so that I can quantitatively evaluate the model's performance during the live presentation.
Acceptance Criteria
Implementation Notes & Resources
- Keep calculations strictly client-side by comparing the flattened 1D arrays of the ground truth and the prediction mask.
- Dice Formula:
(2 * overlap) / (total_pixels_mask1 + total_pixels_mask2)
- IoU Formula:
overlap / union
Description
As a user, I want to see Dice and IoU metrics displayed in the browser so that I can quantitatively evaluate the model's performance during the live presentation.
Acceptance Criteria
Implementation Notes & Resources
(2 * overlap) / (total_pixels_mask1 + total_pixels_mask2)overlap / union