RSPrompter / mmyolo /datasets /yolov5_voc.py
KyanChen's picture
Upload 89 files
3094730
raw
history blame
465 Bytes
# Copyright (c) OpenMMLab. All rights reserved.
from mmdet.datasets import VOCDataset
from mmyolo.datasets.yolov5_coco import BatchShapePolicyDataset
from ..registry import DATASETS
@DATASETS.register_module()
class YOLOv5VOCDataset(BatchShapePolicyDataset, VOCDataset):
"""Dataset for YOLOv5 VOC Dataset.
We only add `BatchShapePolicy` function compared with VOCDataset. See
`mmyolo/datasets/utils.py#BatchShapePolicy` for details
"""
pass