open-mmlab / mmdetection

OpenMMLab Detection Toolbox and Benchmark
https://mmdetection.readthedocs.io
Apache License 2.0
29.21k stars 9.4k forks source link

PipelineSwitchHook now compatible with MultiImageMixDataset #11716

Open mawanda-jun opened 4 months ago

mawanda-jun commented 4 months ago

Motivation

The switch pipeline was not compatible with MultImageMixDataset: it only replaced the loading_pipeline of the outer (MultiImageMixDataset) dataset. With this modification, the loading pipeline is set to the identity function, and the inner (train_pipeline) is rewritten with the one provided to the hook.