Feature Size

Feature size is a setting in these modules:

During annotations, you can change the feature size with a slider. A grid is going to appear showcasing the expected size of image features. Based on the grid you can determine what size of defects the model will be able to recognize.

Feature size also sets a limit on the size of your annotations. Note the following rectangle sizes:

good size.png
bad size.png

For small rectangles, it is necessary to set a lower feature size. In case you incorrectly tweak the size after annotations and attempt a training, Pekat will provide you with a warning and possible solutions.

 

Finding the optimal Feature size for your use case might require multiple trainings. Have a look at the following examples to help you determine how to optimally set Feature size.

It is possible to keep the Feature size at 32px at all times, which will work. However, you might be unnecessarily wasting time on training and evaluation.

Using high feature size:

Provides the model with less detail and context about the image.

Faster training time and better inference performance.

Worse precision on small details and defects in the image.

Notice the filled holes in the nuts. With higher feature size the shape of the objects is correctly found in a very short time. The drawback is lower shape precision.

 

Using low feature size:

Provides the model with more detail and context about the image.

Notice that the precision of the shape is much better now. The drawback was longer training time and inference time. To further boost the shape precision a more detailed image would be needed.