EasyCV/easycv/datasets/shared/raw.py

18 lines
497 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
from .base import BaseDataset
@DATASETS.register_module
class RawDataset(BaseDataset):
def __init__(self, data_source, pipeline):
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