Source code for rastervision.core.data.label_store.label_store
fromabcimportABC,abstractmethod
[docs]classLabelStore(ABC):"""This defines how to store prediction labels for a scene."""
[docs]@abstractmethoddefsave(self,labels):"""Save. Args: labels - Labels to be saved, the type of which will be dependant on the type of pipeline. """pass
[docs]@abstractmethoddefget_labels(self):"""Loads Labels from this label store."""pass
[docs]@abstractmethoddefempty_labels(self):"""Produces an empty Labels"""pass