DLS course 4 Week 2 Assignment 2 - data_augmenter()

I ran the data augmentation function all test are passed but when i ran the this part
data_augmentation = data_augmenter()

for image, _ in train_dataset.take(1):
plt.figure(figsize=(10, 10))
first_image = image[0]
for i in range(9):
ax = plt.subplot(3, 3, i + 1)
augmented_image = data_augmentation(tf.expand_dims(first_image, 0))
plt.imshow(augmented_image[0] / 255)
it gave me message kernal dead please help what i do.

Which week of the course?

Convolutional Neural network week 2

I have updated the thread title to include all the proper references.


Also, did you try restarting the kernel and clearing all the output, then running all the cells again?

yes, i all things do but not resolve.

I don’t think there is anything in the code you quoted that can cause the kernel to stop.

Have you found a solution? I have the same problem