def plot(self): """Visualize the label images (e.g. for debugging) :return: The current figure """ import pylab pylab.imshow(self.image, interpolation='nearest') return pylab.gcf()