Skip to content

Commit fe16402

Browse files
authored
RandomMosaic not working until... (open-mmlab#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.
1 parent 891448f commit fe16402

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/en/tutorials/customize_datasets.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,8 @@ An example of using `MultiImageMixDataset` with `Mosaic` data augmentation:
262262

263263
```python
264264
train_pipeline = [
265+
dict(type='LoadImageFromFile'),
266+
dict(type='LoadAnnotations'),
265267
dict(type='RandomMosaic', prob=1),
266268
dict(type='Resize', img_scale=(1024, 512), keep_ratio=True),
267269
dict(type='RandomFlip', prob=0.5),

0 commit comments

Comments
 (0)