f2073333b710a340403843763ba60eb1e6699916,examples/data_process/tutorial_tf_dataset_voc.py,,,#,90

Before Change


ds = ds.repeat(n_epoch)
ds = ds.prefetch(buffer_size=2048)
ds = ds.batch(batch_size)
value = ds.make_one_shot_iterator().get_next()

sess = tf.InteractiveSession()

//// get a batch of images (after data augmentation)

After Change


im, annbyte = next(iter(ds))
print("took {}s".format(time.time() - st))

im = im.numpy()

ann = []
for a in annbyte:
    a = a.numpy().decode()
    ann.append(json.loads(a))

//// save all images
for i in range(len(im)):
    print(ann[i][1])
    tl.vis.draw_boxes_and_labels_to_image(im[i] * 255, ann[i][0], ann[i][1], [], classes,
                                          True, save_name="_bbox_vis_%d.png" % i)
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_tf_dataset_voc.py
Class Name:
Method Name:


Project Name: calico/basenji
Commit Name: 28f6dbec4bee2572fa7f94445d63cebb2de6dc9b
Time: 2019-09-27
Author: drk@calicolabs.com
File Name: bin/tfr_hdf5.py
Class Name:
Method Name: read_tfr


Project Name: yahoo/TensorFlowOnSpark
Commit Name: 981e4266d4ea816b08a762193bd52f40cd1a3242
Time: 2019-08-07
Author: leewyang@verizonmedia.com
File Name: examples/mnist/keras/mnist_inference.py
Class Name:
Method Name: inference