Data Exploration for Segmentation and Detection tasks is underestimated by many researchers. The accuracy of your models highly depends on how good you understand data.
This app "Classes Stats for Images" generates report with detailed general and per image statistics for all classes in images project. It allows to see big picture as well as shed light on hidden patterns and edge cases (see How to use section).
Go to "Context Menu" (images project or dataset) -> "Report" -> "Classes stats for images"
Choose the percentage of images that should be randomly sampled. By default all images will be used. And then press "Run" button. In advanced settings you can change agent that will host the app and change version (latest available version is used by default).
Once app is started, new task appear in workspace tasks. Monitor progress from both "Tasks" list and from application page. To open report in a new tab click "Open" button.
App saves resulting report to "Files": /reports/classes_stats/{USER_LOGIN}/{WORKSPACE_NAME}/{PROJECT_NAME}.lnk
. To open report file in future use "Right mouse click" -> "Open".
Columns:
IMAGE ID
- image id in Supervisely InstanceIMAGE
- image name with direct link to annotation tool. You can use table to find some anomalies or edge cases in your data by sorting different columns and then quickly open images with annotations to investigate deeper.HEIGHT
,WIDTH
- image resolution in pixelsCHANNELS
- number of image channelsUNLABELED
- percentage of pixels (image area)
Columns for every class:
CLASS NAME
IMAGES COUNT
- total number of images that have at least one object of a given classOBJECTS COUNT
- total number of objects of a given classAVG CLASS AREA PER IMAGE (%)
-
the sum of a class area on all images
--------------------------------------------------------------
the number of images with at least one object of a given class
AVG OBJECTS COUNT PER IMAGE (%)
-
total number of class objects
--------------------------------------------------------------
the number of images with at least one object of a given class
Histogram view for two metrics from previous chapter: AVG CLASS AREA PER IMAGE (%)
and AVG OBJECTS COUNT PER IMAGE (%)