6096c0e6ec4df6a902747059a47e0f6f1bec7d77,aocr/util/data_gen.py,DataGen,__init__,#DataGen#,18
Before Change
for i in range(self.bucket_max_width + 1)}
filename_queue = tf.train.string_input_producer([self.annotation_path], num_epochs=self.epochs)
self.images, self.labels = parse_tfrecords(filename_queue)
def clear(self):
self.bucket_data = {i: BucketData()
After Change
dataset = tf.contrib.data.TFRecordDataset([self.annotation_path])
dataset = dataset.map(self._parse_record)
dataset = dataset.shuffle(buffer_size=10000)
self.dataset = dataset.repeat(self.epochs)
def clear(self):
self.bucket_data = {i: BucketData()
for i in range(self.bucket_max_width + 1)}
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: emedvedev/attention-ocr
Commit Name: 6096c0e6ec4df6a902747059a47e0f6f1bec7d77
Time: 2017-07-21
Author: edward.medvedev@gmail.com
File Name: aocr/util/data_gen.py
Class Name: DataGen
Method Name: __init__
Project Name: lmcinnes/pynndescent
Commit Name: c1c31db36facdf8d557f4dcc69866ac86814b83f
Time: 2020-09-01
Author: leland.mcinnes@gmail.com
File Name: pynndescent/pynndescent_.py
Class Name: NNDescent
Method Name: _init_search_graph
Project Name: neurodsp-tools/neurodsp
Commit Name: c28c88a380ed74c5179a1e05fed317098e0990d1
Time: 2019-04-09
Author: tdonoghue@ucsd.edu
File Name: neurodsp/plts/spectral.py
Class Name:
Method Name: plot_power_spectra