인프런 커뮤니티 질문&답변

공부합시다님의 프로필 이미지

작성한 질문수

[개정판] 딥러닝 컴퓨터 비전 완벽 가이드

<삭제 예정> Tensorflow로 SSD 기반 Object Detection 실습

Tensorflow_SSD_이미지와_영상_Detection_colab 에러 문의

21.01.03 12:17 작성

·

195

0

get_tensor_detected_image 실행시 에러가 납니다.

에러 내용은 아래와 같습니다. 

---------------------------------------------------------------------------
InvalidArgumentError                      Traceback (most recent call last)
/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/client/session.py in _do_call(self, fn, *args)
   1364     try:
-> 1365       return fn(*args)
   1366     except errors.OpError as e:

7 frames
InvalidArgumentError: Input 1 of node Preprocessor/map/while/Merge_2_1 was passed int32 from Preprocessor/map/while/NextIteration_2:0 incompatible with expected float.

During handling of the above exception, another exception occurred:

InvalidArgumentError                      Traceback (most recent call last)
/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/client/session.py in _do_call(self, fn, *args)
   1382                     '\nsession_config.graph_options.rewrite_options.'
   1383                     'disable_meta_optimizer = True')
-> 1384       raise type(e)(node_def, op, message)
   1385 
   1386   def _extend_graph(self):

InvalidArgumentError: Input 1 of node Preprocessor/map/while/Merge_2_1 was passed int32 from Preprocessor/map/while/NextIteration_2:0 incompatible with expected float.

답변 4

1

권 철민님의 프로필 이미지
권 철민
지식공유자

2021. 01. 03. 19:53

제가 다시 colab에서 수행해 봤는데, 특별히 오류가 발생하지 않습니다.

colab 메뉴에서 런타임->런타임 다시 시작을 선택하시고 처음 부터 다시 수행해 보십시요.

여전히 안되면 다시 글 부탁드립니다.

0

공부합시다님의 프로필 이미지

2021. 01. 03. 21:05

런타임 다시 시작 후 잘 됩니다~

0

공부합시다님의 프로필 이미지

2021. 01. 03. 19:07

1. colab에서 실습 했습니다.

2. Tensorflow  : 1.15.2 , Keras  : 2.3.0

3. 강의 실습 그대로 진행 했습니다.

0

권 철민님의 프로필 이미지
권 철민
지식공유자

2021. 01. 03. 17:51

안녕하십니까,

아래 사항을 기재해서 다시 글로 올려주셨으면 합니다. 

1. colab에서 수행하신 건가요? 아님 GPU VM 에서 수행하신건가요?

2. Tensorflow version, Keras version

3. 강의 실습 코드를 그대로 적용했는데 오류가 발생한건지요?

감사합니다