error 썸네일형 리스트형 [에러코드/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." 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.. 더보기 AttributeError: module 'tensorflow' has no attribute 'gfile' DeepSort 코드 구현 중 해당 에러가 발생했다. Tensorflow 버젼이 2.0 이상이면 발생하는 문제로, Tensorflow 버젼을 다운그레이드 하거나 아래 코드로 수정하면 해결된다. # 코드수정 tf.gfile = tf.io.gfile # Tensorflow version 재설치 (다운그레이드) # x에는 원하는 버젼 입력 conda install tensorflow==1.x.x 더보기 ModuleNotFoundError: No module named 'tensorflow.contrib' DeepSort 논문 코드 구현 중에, 해당 에러가 발생했다. tf.Session() 문제와 같이, tf.compat.v1 을 사용하면 되는 줄 알았으나, 별 효과가 없었다 (ㅜㅜ) 더 나은 방법이 있겠지만, 본인은 그냥 버젼을 다운그레이드 하기로 합의봤다 (RTX3090은 사용 못하게 되겠지만...) DeepSort는 Tensorflow 1.5 버젼에서 개발되었다고 하니, 그에 맞추기로 한다. conda install tensorflow == 1.5.0 pip 또는 pip3는 본인만의 문제인지는 모르겠으나, 설치가 불가능했다. (2.0이상만 지원한다고 말해준다.) conda를 통해 install 하니, 정상적으로 설치할 수 있었고, 위의 코드도 정상적으로 실행되었다. 더보기 이전 1 다음