surveilling-surveillance/detection/data/__init__.py

14 lines
317 B
Python
Raw Normal View History

2021-05-20 22:20:48 +02:00
import pandas as pd
import os
from .version import Version
from .base import BaseDataset
from .info import DatasetInfo
from . import constants as C
def get_dataset(split="train"):
meta = pd.read_csv("../data/meta.csv")
info = DatasetInfo.load("../data/info.yaml")
return BaseDataset(info, meta)[split]