这是indexloc提供的服务,不要输入任何密码
Skip to content

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

@a01163125

Description

@a01163125

在运行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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions