AttributeError: module 'tensorflow' has no attribute 'gfile'
·
Minding's Programming/에러 코드
DeepSort 코드 구현 중 해당 에러가 발생했다. Tensorflow 버젼이 2.0 이상이면 발생하는 문제로, Tensorflow 버젼을 다운그레이드 하거나 아래 코드로 수정하면 해결된다. # 코드수정 tf.gfile = tf.io.gfile # Tensorflow version 재설치 (다운그레이드) # x에는 원하는 버젼 입력 conda install tensorflow==1.x.x