• 카테고리

    질문 & 답변
  • 세부 분야

    컴퓨터 비전

  • 해결 여부

    미해결

Tensorflow_SSD_이미지와_영상_Detection_colab 부분 문의

20.10.12 23:20 작성 조회수 164

0

안녕하세요 강사님! 강의 덕분에 현업에 많은 도움이 될것 같습니다. 감사합니다.

"Tensorflow_SSD_이미지와_영상_Detection_colab.ipynb"의 Colab 영역에서 문제가 되는 부분이 많아서 문의드립니다.


총 Frame 갯수: 1383 FPS: 28.282227867912656
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-16-80b9ddad4bf1> in <module>()
     24 
     25 # SSD+Inception inference graph를 읽음. .
---> 26 with tf.gfile.FastGFile(os.path.join(default_ssd_dir, 'pretrained/ssd_inception_v2_coco_2017_11_17/frozen_inference_graph.pb'), 'rb') as f:
     27     graph_def = tf.GraphDef()
     28     graph_def.ParseFromString(f.read())

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

위와같은 에러가 계속뜨는데, 어떻게 해결이 가능한지 궁금합니다.

수행한 조치로는 tf.gfile >> tf.io.gfile로 변경후 run 까진 해봤으나 잘 안되네요...

단순히 colab에서 code 변경없이 Run을 눌렀으나 수행되지 않는 부분입니다...

확인바랍니다.

답변 1

답변을 작성해보세요.

0

다시 실행하니 되었습니다! 
이유는 잘 모르겠습니다...