# Set Group of Images

For ViDi projects where you need to better equalize the weighting of your training image set, you can use the Set Group option to create groups of images.

The main function of the Set Group option is balance the effect on the trained model of two or more groups of training image samples that have different representation in the image database. This is typically encountered if you have images collected from different production days or different production batches, for instance.

For example, if you have a training image set that contains 100 images, and 90 images are from day 1 of your production, while 10 images are from day 2. Without grouping the images, the resulting trained model will be much more tuned to the images from day 1. However, by using the Set Group option to put the images from day 1 into a group, and the images from day 2 into another group, the model will be trained in such a way that the two groups are weighted equally. In addition, you will have a model that is better generalized for further analysis.

Note: The Set Group option is intended for applications where the difference in the number of training image samples is large, as in the example above.