From fe16402251bbd80092f482c23857e4c6a8694320 Mon Sep 17 00:00:00 2001 From: Giovanni Cavallin <37183651+mawanda-jun@users.noreply.github.com> Date: Wed, 13 Jul 2022 12:04:29 +0200 Subject: [PATCH] RandomMosaic not working until... (#1761) RandomMosaic is not working with the suggested configuration. In order to make use of the MultiImageMixDataset, the following lines: ``` dict(type='LoadImageFromFile') dict(type='LoadAnnotations') ``` should be provided to both the wrapped and wrapper datasets. --- docs/en/tutorials/customize_datasets.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/en/tutorials/customize_datasets.md b/docs/en/tutorials/customize_datasets.md index de906d5fd1..e937f23a5b 100644 --- a/docs/en/tutorials/customize_datasets.md +++ b/docs/en/tutorials/customize_datasets.md @@ -262,6 +262,8 @@ An example of using `MultiImageMixDataset` with `Mosaic` data augmentation: ```python train_pipeline = [ + dict(type='LoadImageFromFile'), + dict(type='LoadAnnotations'), dict(type='RandomMosaic', prob=1), dict(type='Resize', img_scale=(1024, 512), keep_ratio=True), dict(type='RandomFlip', prob=0.5),