In computer vision tasks using Python libraries like OpenCV, PIL, and torchvision, the choice of metric depends on the task:
- Image classification: Accuracy, Precision, Recall, and F1-score matter to understand how well the model labels images.
- Object detection: Mean Average Precision (mAP) is key to measure how well objects are found and localized.
- Image segmentation: Intersection over Union (IoU) or Dice coefficient show how well the predicted mask matches the true mask.
These metrics help us know if the model or image processing pipeline is working well for the specific vision task.