Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The size of the annotation should be just enough to fit the whole defect without too much excess background (especially when the background is very variable). You can draw rectangles by hand or you can double-click with the left or right mouse and the rectangle a new rectangle with the same size as the last one you made will be added automatically.

...

Wrong feature size can make certain rectangles invalid. If such a thing occurs PEKAT is going to notify you before the training with possible solutions.

...

.

...

Filter invalid images will take you back to Labeling with the images with invalid annotations will be filtered in the list on the right side, and you can easily go through those images and fix the annotations.

Change feature size will set the feature size to the largest possible value that would allow using all of the annotations for training (or to size 32 as it is the smallest possible feature size).

Continue will proceed with the training without using the invalid annotations.

Include

In case your dataset contains empty images or images with no defects, it is possible to add them into training with the Include button.

...

If we select a trained model from a list of models and then go to the training Labeling tab, we can see predictions of that selected model on our images. They are marked with red rectangles with percentages.

...

This adds the option to classify the object into one of the classes. If the classification is enabled, each marked object needs a class to be assigned to it. Class management is the same as in classifier and the annotations change color based on the assigned class for better visibility (you can change class names and color in the Class Manager).

...

For more details visit Classifier. This can also be achieved by combining Detector and Classifier as separate modules as described in the video below. However, classifying objects directly in the detector is easier and faster.

Widget Connector
overlayyoutube
_templatecom/atlassian/confluence/extra/widgetconnector/templates/youtube.vm
width680px
urlhttps://www.youtube.com/watch?v=gECGC6BTM08
height400px

Verifying Detector Model

To verify the quality of a detector model you can use Confusion Matrix available in the Inspection tab:

...

You can also compare the detected annotations with the annotated ones and more. You can learn more about the confusion matrix on the related page:

...

Configuring Evaluation Settings

Trained detector model detects features on an image and assigns them rectangles. Each rectangle has 2 basic parameters:

  • Confidence

  • Position (together with height and width)

You can then filter out rectangles detected by the model using these parameters. To do this, you can use the two sliders on the right side of the window:

  • Confidence threshold slider - rectangles with confidence value lower than the threshold will be filtered out.

  • IoU (Intersection over Union) slider - if two or more rectangles overlap, the ones with lower confidence will be filtered out. The value specifies the percentage of overlap. For example, with value of 50, the filter will be applied to all rectangles that share at least 50% of their area with other rectangle.

Info

In conclusion - Confidence threshold is useful for filtering out rectangles with low confidence, IoU is useful for filtering out many overlapping rectangles

Confidence - more info

Trained model assigns each feature it detects a confidence value. This value represents how certain the model is that the feature is similar to the features used in training.

Note

Correct confidence threshold settings can only improve the capabilities of the trained model. Correct model training is the cornerstone of successful detection.

IoU - more info

...

IoU or Intersection over Union is method used to calculate the overlap of rectangles.

As the name suggests, the IoU value is calculated by taking the intersection are (the shared area) of two rectangles and dividing that by the area of their union (total area covered by both rectangles together).