You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
frame_batches = tf.compat.v1.data.make_one_shot_iterator(frame_tensors) # outside of TF Eager, we would use make_one_shot_iterator
mask_batches = tf.compat.v1.data.make_one_shot_iterator(masks_tensors)
n_images_to_show = 5
for i in range(n_images_to_show):
# Get the next image from iterator
frame = frame_batches.next().numpy().astype(np.uint8)
mask = mask_batches.next().numpy().astype(np.uint8)
for the above i get error:
AttributeError Traceback (most recent call last)
~/.local/lib/python3.6/site-packages/tensorflow/python/keras/api/_v1/keras/models/init.py in
4
5 # Get the next image from iterator
----> 6 frame = frame_batches.next().numpy().astype(np.uint8)
7 mask = mask_batches.next().numpy().astype(np.uint8)
8
AttributeError: 'Iterator' object has no attribute 'next'
The text was updated successfully, but these errors were encountered:
frame_batches = tf.compat.v1.data.make_one_shot_iterator(frame_tensors) # outside of TF Eager, we would use make_one_shot_iterator
mask_batches = tf.compat.v1.data.make_one_shot_iterator(masks_tensors)
n_images_to_show = 5
for i in range(n_images_to_show):
for the above i get error:
AttributeError Traceback (most recent call last)
~/.local/lib/python3.6/site-packages/tensorflow/python/keras/api/_v1/keras/models/init.py in
4
5 # Get the next image from iterator
----> 6 frame = frame_batches.next().numpy().astype(np.uint8)
7 mask = mask_batches.next().numpy().astype(np.uint8)
8
AttributeError: 'Iterator' object has no attribute 'next'
The text was updated successfully, but these errors were encountered: