[에러코드/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."

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

DeepSort 논문 코드 구현 중 발생한 에러이다.

 

Yolo 또는 다른 Detector를 통해 Dataset에 해당하는 Detection들을 생성할 때 생기는 문제로

 

입력노드와 출력노드의 이름을 변경하여 에러를 해결할 수 있다.

 

tools폴더 안에 있는 generate_detections.py의 83번째 줄과 85번째 줄을 다음과 같이 수정하자.

 

"net / % s : 0"=> "% s : 0"

 

class ImageEncoder(object):

    def __init__(self, checkpoint_filename, input_name="images",
                 output_name="features"):
        self.session = tf.compat.v1.Session()
        with tf.io.gfile.GFile(checkpoint_filename, "rb") as file_handle:
            graph_def = tf.compat.v1.GraphDef()
            graph_def.ParseFromString(file_handle.read())
        tf.import_graph_def(graph_def, name="net")
        self.input_var = tf.compat.v1.get_default_graph().get_tensor_by_name(
            "%s:0" % input_name)
        self.output_var = tf.compat.v1.get_default_graph().get_tensor_by_name(
            "%s:0" % output_name)
728x90

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

Python 프로그래밍 중 가장 많이 발생하는 5가지 에러코드 정리  (0) 2023.08.08
ModuleNotFoundError: No module named 'sklearn.utils.linear_assignment_'  (0) 2021.04.01
AttributeError: module 'tensorflow' has no attribute 'gfile'  (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/에러 코드' 카테고리의 다른 글
  • Python 프로그래밍 중 가장 많이 발생하는 5가지 에러코드 정리
  • ModuleNotFoundError: No module named 'sklearn.utils.linear_assignment_'
  • AttributeError: module 'tensorflow' has no attribute 'gfile'
  • ModuleNotFoundError: No module named 'tensorflow.contrib'
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
  • 링크

  • 공지사항

  • 인기 글

  • 태그

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

  • 최근 글

  • hELLO· Designed By정상우.v4.10.3
Minding
[에러코드/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."
상단으로

티스토리툴바