Skip to content

Commit

Permalink
RandomMosaic not working until... (open-mmlab#1761)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mawanda-jun authored Jul 13, 2022
1 parent 891448f commit fe16402
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/en/tutorials/customize_datasets.md
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit fe16402

Please sign in to comment.