Skip to content

Conversation

BbChip0103
Copy link

Hi, there. I found some bug of 'preprocess_input' function when i used the function with tf.data.

What is this PR? 🔍

This issue was occured when we use the function in the tf.data like below.
Let me reproduce the bug.

First, we usually the function like below. It works well.
image

But, when we use this function inside of tf.data flow. It didn't work like below.
image

Changes 📝

There may be some change in the preprocess function in the tf.keras.
So, I just changed origin package 'keras_applications' to 'tensorflow.keras.applications'. And It worked well.
image
image

I think It's better to change 'keras_applications' to 'tensorflow.keras.applications' because now the keras backend support tensorflow only,

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant