Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Expected uint8, got 0.0 of type 'float' instead. #7

Open
a01163125 opened this issue Nov 20, 2022 · 0 comments
Open

TypeError: Expected uint8, got 0.0 of type 'float' instead. #7

a01163125 opened this issue Nov 20, 2022 · 0 comments

Comments

@a01163125
Copy link

在运行train文件的时候报错:

Try this:
image = tf.image.decode_image(file_contents, channels=3,dtype=tf.float32)
Before:
image = tf.image.decode_image(file_contents, channels=3)

我自己加了数据类型。 不知道是不是tf的版本问题, 我的版本是1.15

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

No branches or pull requests

1 participant