name 'file' is not defined 和 TypeError: a bytes-like object is required, not 'str'

升级环境 python2 到 python3  ,在作TFRecord 时碰见两个问题 python 报  name 'file' is not defined 函数 file函数改成open函数.net TypeError: ' xxx.jpg' has type str, but expected one of: bytes byte feature 函数 中 加一句blog   value
相关文章
相关标签/搜索