I found out that I also need to change reshape_param>shape>dim in “mbox_conf_reshape” layer to correspond to the number of classes. Now the main problem is fixed and objects are correctly detected.
But the accuracy is lower than before. Should solver parameters be changed when adding the new class? Should I increase max_iter, step_value or something?
OpenCV actually uses ResNet-10 network. How was this network created? Is there some script that can regenerate the prototxt files for different parameters (num_classes, resolution, etc.)?