260327: Error while loading the pretrained model file, make sure data has the same number of classes as the pretrained model.

Description

The number of classes in the training data must match the number of classes in the pretrained model.

Solution

Provide training data that contains the same number of classes as the data that was used for the pretrained model.