Yes, usually the number of all unique colors in the dataset would correspond to the number of classes.



 thejas_karkera:

Is there a different way I could train using this dataset.


As explained before, you could try to add “new/unknown” colors to a special “unknown” class category, but it really depends on your use case and what you are trying to achieve.