f2073333b710a340403843763ba60eb1e6699916,examples/data_process/tutorial_tfrecord2.py,,,#,81

Before Change



    for i in range(3):  // number of mini-batch (step)
        print("Step %d" % i)
        val, l = sess.run([img_batch, label_batch])
        print(val.shape, l)
        tl.visualize.images2d(val, second=1, saveable=False, name="batch" + str(i), dtype=np.uint8, fig_idx=2020121)
        tl.vis.save_images(val, [2, 2], "_batch_%d.png" % i)

After Change


i = 0
for img_batch, label_batch in read_and_decode("train.cifar10"):
    tl.visualize.images2d(img_batch, second=1, saveable=False, name="batch" + str(i), dtype=np.uint8, fig_idx=2020121)
    i += 1
    if i >= 3:
        break
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: tensorlayer/tensorlayer
Commit Name: f2073333b710a340403843763ba60eb1e6699916
Time: 2019-04-11
Author: rundi_wu@pku.edu.cn
File Name: examples/data_process/tutorial_tfrecord2.py
Class Name:
Method Name:


Project Name: wkentaro/labelme
Commit Name: 17ea7784247c1b5dc68109a2bb27e377c3797238
Time: 2018-06-14
Author: onlyalex1995@gmail.com
File Name: labelme/canvas.py
Class Name: Canvas
Method Name: mouseMoveEvent


Project Name: deepmipt/DeepPavlov
Commit Name: 4c5de08ac734d4d15f6aea1437cadf694bcf9949
Time: 2020-07-29
Author: alexey.sorokin@list.ru
File Name: deeppavlov/models/morpho_tagger/lemmatizer.py
Class Name: UDPymorphyLemmatizer
Method Name: _lemmatize