'Resets the iterator to the beginning of the data.'

def reset(self):

    if self.shuffle:
        random.shuffle(self.seq)
    if (self.imgrec is not None):
        self.imgrec.reset()
    self.cur = 0
