Hello @innat, thank you for your interest in our work! Please visit our Custom Training Tutorial to get started, and see our Jupyter Notebook , Docker Image, and Google Cloud Quickstart Guide for example environments.
If this is a bug report, please provide screenshots and minimum viable code to reproduce your issue, otherwise we can not help you.
If this is a custom model or data training question, please note Ultralytics does not provide free personal support. As a leader in vision ML and AI, we do offer professional consulting, from simple expert advice up to delivery of fully customized, end-to-end production solutions for our clients, such as:
For more information please visit https://www.ultralytics.com.
@innat if you are looking for multi-class object detection, I would simply use YOLOv5, which already incorporates all the mosaic augmentation you want.
@glenn-jocher Could you please point me to the specific code snippet where the mosaic augmentation in Yolo5 deals with such cases? So, that I can understand when it randomly making a mosaic, how it tracks the labels in final results.
@innat of course. load_mosaic() in datasets.py is responsible for all mosaic activity. Your dataset trains with Mosaic by default in YOLOv5, no extra action is needed on your part, simply python train.py --data custom.yaml
You can also view your mosaics during training. Suggest you start with the custom training tutorial, it explains all of this already.
https://github.com/ultralytics/yolov5#tutorials

Thanks for the pointer and suggestion. -)
The problem is solved. Here is the answer, leaving it here for future readers.

Most helpful comment
The problem is solved. Here is the answer, leaving it here for future readers.