Use len(data['img_metas']) to indicate num_samples (#3073)
Use len(data['img_metas']) to indicate num_samples (#3073)

* Use len(data['img_metas']) to indicate num_samples

* clean code
open-mmlab/mmdetection,open-mmlab/mmdetection