YOLO-World-Image / yolo_world /datasets /yolov5_obj365v2.py
wondervictor's picture
update lfs
f5fdf51
raw
history blame contribute delete
508 Bytes
# Copyright (c) Tencent Inc. All rights reserved.
from mmdet.datasets import Objects365V2Dataset
from mmyolo.datasets.yolov5_coco import BatchShapePolicyDataset
from mmyolo.registry import DATASETS
@DATASETS.register_module()
class YOLOv5Objects365V2Dataset(BatchShapePolicyDataset, Objects365V2Dataset):
"""Dataset for YOLOv5 VOC Dataset.
We only add `BatchShapePolicy` function compared with Objects365V1Dataset.
See `mmyolo/datasets/utils.py#BatchShapePolicy` for details
"""
pass