Classifying model using labeled images error

In total there are 30 classes

  1. and on each image there are upto 10
  2. each class has been assigned the same color
  3. the borders of classes inside image is clear