1399df2342774f9130ed676fd991d63411d3b6b5,alignment/data.py,FaceSegIter,reset,#FaceSegIter#,188

Before Change


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

    def next_sample(self):
      Helper function for reading in next sample.

After Change


      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):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 4

Instances


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


Project Name: pandas-dev/pandas
Commit Name: 8051248bedd7387babba24c5756c286987c42eb1
Time: 2021-02-21
Author: jbrockmendel@gmail.com
File Name: asv_bench/benchmarks/hash_functions.py
Class Name:
Method Name: setup


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/models
Commit Name: 11e9c7adfbf7d50dd9ef4442cf7806cdb2ee2368
Time: 2017-11-17
Author: markdaoust@google.com
File Name: samples/core/get_started/premade_estimator.py
Class Name:
Method Name: main


Project Name: tensorflow/models
Commit Name: 11e9c7adfbf7d50dd9ef4442cf7806cdb2ee2368
Time: 2017-11-17
Author: markdaoust@google.com
File Name: samples/core/get_started/custom_estimator.py
Class Name:
Method Name: main