AttributeError: module 'tensorflow' has no attribute 'gfile'

2021. 4. 1. 16:53·Minding's Programming/에러 코드
728x90
반응형

DeepSort 코드 구현 중 해당 에러가 발생했다.

 

Tensorflow 버젼이 2.0 이상이면 발생하는 문제로, 

 

Tensorflow 버젼을 다운그레이드 하거나 아래 코드로 수정하면 해결된다.

 

# 코드수정
tf.gfile = tf.io.gfile

# Tensorflow version 재설치 (다운그레이드)
# x에는 원하는 버젼 입력
conda install tensorflow==1.x.x

 

 

728x90

'Minding's Programming > 에러 코드' 카테고리의 다른 글

Python 프로그래밍 중 가장 많이 발생하는 5가지 에러코드 정리  (0) 2023.08.08
ModuleNotFoundError: No module named 'sklearn.utils.linear_assignment_'  (0) 2021.04.01
[에러코드/DeepSort] KeyError: "The name 'net/images:0' refers to a Tensor which does not exist. The operation, 'net/images', does not exist in the graph."  (0) 2021.04.01
ModuleNotFoundError: No module named 'tensorflow.contrib'  (0) 2021.04.01
AttributeError: module 'tensorflow' has no attribute 'Session'  (0) 2021.04.01
'Minding's Programming/에러 코드' 카테고리의 다른 글
  • ModuleNotFoundError: No module named 'sklearn.utils.linear_assignment_'
  • [에러코드/DeepSort] KeyError: "The name 'net/images:0' refers to a Tensor which does not exist. The operation, 'net/images', does not exist in the graph."
  • ModuleNotFoundError: No module named 'tensorflow.contrib'
  • AttributeError: module 'tensorflow' has no attribute 'Session'
Minding
Minding
  • Minding
    Today's Minding
    Minding
  • 전체
    오늘
    어제
    • 울고넘는 딥러닝 (278)
      • Minding's Baseball (57)
        • MLB Statcast (29)
        • 머신러닝으로 홈런왕 예측하기 (3)
        • 야구칼럼 (12)
        • 야구 규칙, 용어 (1)
        • 2022-23 질롱 코리아 (8)
        • 류현진 등판경기 (4)
      • Minding's Programming (185)
        • 프로그래머스 코딩테스트 (21)
        • Knowledge (44)
        • Numpy & Pandas (6)
        • Excel (3)
        • Git (1)
        • Pygame (11)
        • CV (3)
        • Tensorflow tutorial (4)
        • Kaggle and Dacon (4)
        • 에러 코드 (8)
        • FastAPI (8)
        • Airflow (29)
        • Crawling (6)
        • Django (14)
        • AWS (18)
        • Spark (5)
      • Minding's Reading (30)
        • 머신러닝 딥러닝에 필요한 기초 수학 with 파이.. (2)
        • 칼만필터는 어렵지 않아 (11)
        • 밑바닥부터 시작하는 딥러닝 (6)
        • 메이저리그 야구 통계학 2e (8)
        • 논문읽기 (2)
        • 빅데이터를 지탱하는 기술 (1)
      • Minding's Life (5)
        • 주식 (4)
        • 각종 소식 (1)
  • 블로그 메뉴

    • 홈
    • Baseball
    • Programming
    • Reading
  • 링크

  • 공지사항

  • 인기 글

  • 태그

    질롱코리아
    AWS
    프로그래머스
    칼만필터는어렵지않아파이썬
    머신러닝
    KBO
    django
    MLB
    코딩테스트
    넘파이
    칼만필터는어렵지않아python
    데이터분석
    FastAPI
    게임개발
    pygame
    파이게임
    파이썬
    에어플로우
    메이저리그
    칼만필터는어렵지않아
    Python
    데이터 엔지니어
    딥러닝
    야구
    칼만필터
    KalmanFilter
    mlb stats api
    파이썬게임개발
    Airflow
    django python
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.3
Minding
AttributeError: module 'tensorflow' has no attribute 'gfile'
상단으로

티스토리툴바