Faster random index generator for mosaic augmentation (#2345)

* faster random index generator for mosaic augementation

We don't need to access list to generate random index

It makes augmentation slower.

* Update datasets.py

Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
Yonghye KwonandGlenn Jocher authored and GitHub committed 2021-03-05 13:06:18 -08:00
1 parent e931b9da33
commit 300d518f73

Diff Content Not Available