Create simple synthetic image datasets with Image Composition
Check out my tutorial on medium here.
For the entire code, check out this notebook
#Datasets dataset created from images here: https://www.kaggle.com/kerneler/starter-crop-and-weed-detection-data-aad4228d-e (see agri_data.zip for raw) and manually annotated in CVAT and exported dataset/annotations/instances_default.json