open-mmlab / mmcv

OpenMMLab Computer Vision Foundation
https://mmcv.readthedocs.io/en/latest/
Apache License 2.0
5.92k stars 1.65k forks source link

Fix KeyError in MultiScaleFlipAug by ensuring correct key handling #3138

Open KhubaibKhan opened 5 months ago

KhubaibKhan commented 5 months ago

Motivation

This PR fixes a bug in the MultiScaleFlipAug transform where 'data_sample' was incorrectly used instead of 'data_samples'.

Modification

Replaced 'data_sample' with 'data_samples' in the MultiScaleFlipAug transform to prevent a KeyError.

Checklist

Before PR:

After PR:

CLAassistant commented 5 months ago

CLA assistant check
All committers have signed the CLA.