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
相關文章
相關標籤/搜索