96fad3497a4373cc289f9e7c4272d4722a22f381,src/mjsynth.py,,bucketed_input_pipeline,#,29

Before Change


        iterator = dataset.make_one_shot_iterator()
        image, width, label, length, text, filename, get_input = iterator.get_next()

        label = tf.deserialize_many_sparse(label, tf.int64) // post-batching...
        label = tf.cast(label, tf.int32) // for ctc_loss
        
    return image, width, label, length, text, filename

def threaded_input_pipeline(base_dir,file_patterns,
                            num_threads=4,
                            batch_size=32,

After Change


                                 (len(boundaries) + 1, batch_size),
                                 bucket_boundaries=boundaries))

        dataset = dataset.apply(tf.contrib.data.shuffle_and_repeat(batch_size, 
                                                                   count=num_epoch))

        dataset = dataset.map(lambda image, 
                              width, label, 
                              length, text, 
                              filename, get_input: 
                              (image, width, 
                              tf.cast(tf.deserialize_many_sparse(label, tf.int64), tf.int32),
                              length, text, filename, get_input))

    return dataset

def threaded_input_pipeline(base_dir,file_patterns,
                            num_threads=4,
                            batch_size=32,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: weinman/cnn_lstm_ctc_ocr
Commit Name: 96fad3497a4373cc289f9e7c4272d4722a22f381
Time: 2018-06-20
Author: am.lamsal@gmail.com
File Name: src/mjsynth.py
Class Name:
Method Name: bucketed_input_pipeline


Project Name: weinman/cnn_lstm_ctc_ocr
Commit Name: a0fd1c383a94d10e3b29dd255e1c02c67d3e938d
Time: 2018-07-09
Author: gaffordb@grinnell.edu
File Name: src/mjsynth.py
Class Name:
Method Name: get_data


Project Name: weinman/cnn_lstm_ctc_ocr
Commit Name: 96fad3497a4373cc289f9e7c4272d4722a22f381
Time: 2018-06-20
Author: am.lamsal@gmail.com
File Name: src/mjsynth.py
Class Name:
Method Name: threaded_input_pipeline