File size: 235 Bytes
6b41115 | 1 2 3 4 5 6 7 8 9 10 11 | 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
|