# Details of Mosaic data augmentation technique

**URL:** <https://discuss.roboflow.com/t/details-of-mosaic-data-augmentation-technique/5646>\
**Category:** 🤝  Community Help\
**Created:** [May 6, 2024, 2:43pm UTC](https://discuss.roboflow.com/t/details-of-mosaic-data-augmentation-technique/5646 "2024-05-06T14:43:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![milan8100](https://avatars.discourse-cdn.com/v4/letter/m/a9a28c/32.png) [@milan8100](https://discuss.roboflow.com/u/milan8100)\
**Post date:** [May 6, 2024, 2:43pm UTC](https://discuss.roboflow.com/t/details-of-mosaic-data-augmentation-technique/5646/1 "2024-05-06T14:43:15Z")

</div>

Applying Mosaic as an augmentation technique has produced amazing results for me. I somewhat understand how it works, but is there any way to get the details of this technique? For example, it uses random crop, but I can’t specify the range of this random crop, is this range fixed? Another detail I don’t know is what range is being used to select a random centerpoint for the final mosaic image; after 4 randomly selected images are randomly cropped and put in one image, the system picks a random 640x640 square out the image as final image, but how is the centerpoint decided? It looks like the maximum x and y values are not the limits, as then some pictures would have a very small width or length, which never seems to happen. Is there any source code of the mosaic augmentation available to figure all of this out?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/1X/bb6edbfa56d0cf2ee603f061e9e09103502cc8cc.png) [@system](https://discuss.roboflow.com/u/system)\
**Post date:** [May 27, 2024, 2:43pm UTC](https://discuss.roboflow.com/t/details-of-mosaic-data-augmentation-technique/5646/2 "2024-05-27T14:43:27Z")

</div>

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
