[Fix]: add check for training with single class dataset (#4973)
[Fix]: add check for training with single class dataset (#4973)

* fix num_classes check

* add warning when CLASSES is not a tuple of str

* move assertion outside for
open-mmlab/mmdetection,open-mmlab/mmdetection