Closed yjdqk closed 8 months ago
Hi @yjdqk !
In fact, the value of variable num_classes in file init.py represents the dimension of the features extracted by the Transformer Encoder,so it is equivalent to the value of variable num_features.
If you wish to set the number of classes for the classification head, we recommend modifying the value of variable config.num_classes in the configs, which will correspond to the num_classes in the Partial FC file.
ok, thanks for your reply
why the file named init.py in backbone,all vit model's num_classes is setted the same as num_features?