open-mmlab / mmcv

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

Fix KeyError in MultiScaleFlipAug by ensuring correct key handling #3138

Open KhubaibKhan opened 1 week ago

KhubaibKhan commented 1 week 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 1 week ago

CLA assistant check
All committers have signed the CLA.