faabf5663a0d8fbdee527c03d396106dbd855270,alignment/data.py,FaceSegIter,reset,#FaceSegIter#,188

Before Change


        return D

    def reset(self):
      print("reset")
      Resets the iterator to the beginning of the data.
      if self.aug_level>0:
        random.shuffle(self.seq)
      self.cur = 0

After Change



    def reset(self):
      //print("reset")
      if self.aug_level==0:
        self.seq = self.oseq
      else:
        self.seq = []
        for _ in range(self.exf):
          _seq = self.oseq[:]
          random.shuffle(_seq)
          self.seq += _seq
        print("train size after reset", len(self.seq))
      self.cur = 0

    def next_sample(self):
      Helper function for reading in next sample.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: deepinsight/insightface
Commit Name: faabf5663a0d8fbdee527c03d396106dbd855270
Time: 2019-01-08
Author: guojia@gmail.com
File Name: alignment/data.py
Class Name: FaceSegIter
Method Name: reset


Project Name: tensorflow/minigo
Commit Name: c549dc1eec4e66331397e0bafdd2333958eee5b7
Time: 2019-02-06
Author: andrew.m.jackson@gmail.com
File Name: cluster/evaluator/launch_eval.py
Class Name:
Method Name: zoo_loop


Project Name: deepinsight/insightface
Commit Name: 1399df2342774f9130ed676fd991d63411d3b6b5
Time: 2019-01-08
Author: guojia@gmail.com
File Name: alignment/data.py
Class Name: FaceSegIter
Method Name: reset