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
So i tried to run the code in the file "Tensorflow_Introduction_new.ipybd" part of C2, Week3
but when it comes at the part of plotting images, the Kernel restarts.
Additionally when i am trying to plot the same data combining Numpy & Matplotlib, hence using another Format,
the images are plotted with no issues in this case.
----------------------------------
images_iter = iter(x_train)
labels_iter = iter(y_train)
plt.figure(figsize=(10, 10))
for i in range(25):
ax = plt.subplot(5, 5, i + 1)
plt.imshow(next(images_iter).numpy().astype("uint8"))
plt.title(next(labels_iter).numpy().astype("uint8"))
plt.axis("off")
----------------------------------
Extra Info: Apparently there is no problem to plot the data before running the following code,
after this part i am no longer able to plot any data because the Kernel Restarts
Hello everyone,
So i tried to run the code in the file "Tensorflow_Introduction_new.ipybd" part of C2, Week3
but when it comes at the part of plotting images, the Kernel restarts.
Additionally when i am trying to plot the same data combining Numpy & Matplotlib, hence using another Format,
the images are plotted with no issues in this case.
----------------------------------
images_iter = iter(x_train)
labels_iter = iter(y_train)
plt.figure(figsize=(10, 10))
for i in range(25):
ax = plt.subplot(5, 5, i + 1)
plt.imshow(next(images_iter).numpy().astype("uint8"))
plt.title(next(labels_iter).numpy().astype("uint8"))
plt.axis("off")
----------------------------------
Extra Info: Apparently there is no problem to plot the data before running the following code,
after this part i am no longer able to plot any data because the Kernel Restarts
----------------------------------
x_train = tf.data.Dataset.from_tensor_slices(train_dataset['train_set_x'])
y_train = tf.data.Dataset.from_tensor_slices(train_dataset['train_set_y'])
x_test = tf.data.Dataset.from_tensor_slices(test_dataset['test_set_x'])
y_test = tf.data.Dataset.from_tensor_slices(test_dataset['test_set_y'])
----------------------------------
Has anyone else countered this problem before !?
Thank you in advance !
I am using "TensorFlow v2.10" and i have already update Matplotlib at its newest version.
The text was updated successfully, but these errors were encountered: