sunnycloudhust's picture
Add TrafficVision source code and project configuration
6b41115 verified
Raw History Blame Contribute Delete
235 Bytes
from abc import ABC, abstractmethod
class DatasetSource(ABC):
@abstractmethod
def __iter__(self):
"""Yield (PIL RGB image, canonical annotation mapping)."""
def set_epoch(self, epoch):
self.epoch = epoch