You can train up to 30 unique classes at once. With more classes, more data is recommended to ensure good performance.