1
0
mirror of https://github.com/alibaba/EasyCV.git synced 2025-06-03 14:49:00 +08:00

19 lines
570 B
Python
Raw Normal View History

2022-04-02 20:01:06 +08:00
# Copyright (c) Alibaba, Inc. and its affiliates.
from easycv.datasets.registry import DATASETS
2022-09-19 16:07:04 +08:00
from easycv.framework.errors import NotImplementedError
2022-04-02 20:01:06 +08:00
from .base import BaseDataset
@DATASETS.register_module
class RawDataset(BaseDataset):
2022-09-26 17:37:52 +08:00
def __init__(self, data_source, pipeline, profiling=False):
2022-04-02 20:01:06 +08:00
super(RawDataset, self).__init__(data_source, pipeline)
def __getitem__(self, idx):
results = self.data_source[idx]
return self.pipeline(results)
2022-04-02 20:01:06 +08:00
def evaluate(self, scores, keyword, logger=None):
raise NotImplementedError