inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

TensorFlow Object Detection API 가이드 Part1 - 코드 10줄 수정으로 물체검출하기

Faster R-CNN을 이용한 Person Detection 에서 오류

325

vctor

작성한 질문수 2

0

Faster R-CNN을 이용한 Person Detection 실행 중

detections, predictions_dict, shapes = detect_fn(input_tensor) label_id_offset = 1 image_np_with_detections = image_np.copy() # image_np_with_detections np.array에 시각화 결과를 반환합니다. viz_utils.visualize_boxes_and_labels_on_image_array( image_np_with_detections, detections['detection_boxes'][0].numpy(), (detections['detection_classes'][0].numpy() + label_id_offset).astype(int), detections['detection_scores'][0].numpy(), category_index, use_normalized_coordinates=True, max_boxes_to_draw=200, min_score_thresh=.30, agnostic_mode=False ) plt.figure(figsize=(20,20)) plt.imshow(image_np_with_detections) plt.show()

 

이 셀에서

detections, predictions_dict, shapes = detect_fn(input_tensor)

이 부분에 오류 발생하네요.

 

detections, predictions_dict, shapes = detect_fn(input_tensor)

딥러닝 tensorflow cnn

답변 1

0

vctor

cuda 라이브러리 초기화 문제 이슈가 있다고 합니다.

tensorflow와 cuda라이브러리를 아래와 같이 재 설치 후 해결되었습니다.

  1. factory reset runtime in colab runtime

  2. !pip install tensorflow==2.8

  3. !apt install --allow-change-held-packages libcudnn8=8.1.0.77-1+cuda11.2

     

https://github.com/tensorflow/models/issues/10590

0

vctor

tensorflow 2.92에서

!apt install --allow-change-held-packages libcudnn8=8.1.0.77-1+cuda11.2

이것만 실행해도 잘 실행됩니다.

0

AISchool

안녕하세요~. 반갑습니다.

정보 공유 감사합니다.

좋은 하루 되세요~.

완독 챌린지 도서 인정 방법에 대한 문의

0

49

2

130_Transformer.ipynb 오류 대응 부탁드립니다.

0

76

1

<div id="banner">배너 이미지</div> 관련 질문

0

66

1

보드 관련 질문 드립니다.

1

102

2

버전 오류 23.05파일 포함.

0

264

1

python -m pip install . 이 아예 안되서 전체 다 수행할 수 없습니다.

0

420

1

1강 colab 2022-11-11 파일도 안됩니다.

1

647

2

강의 슬라이드 전달 요청

1

421

1

TensorFlow Object Detection API Deprecation 영향 문의

0

397

0

1강_TF2_Detection_Model_ZOO_example_fasterrcnn_pedestrian_dataset.ipynb 내 파일 실행 실패

0

492

1

Person Detection 에러 질문

0

272

1

사용법

0

436

2

확장자 변경

0

292

0

mportError: cannot import name 'BaseRandomLayer' from 'keras.engine.base_layer' (/usr/local/lib/python3.7/dist-packages/keras/engine/base_layer.py) 오류 문의합니다.

0

598

2

PPT자료 어디에 있나요??

0

327

0

실사가 아닌 경우에도 잘 검출이 될까요?

0

396

1

error

0

198

1

Person Detection 관련 문의

0

279

1

CenterNet을 이용한 Car Detection

0

252

0

Faster R-CNN을 이용한 Car Detection 코랩 링크 관련 문의

0

365

1

yolo annotation 문의

0

380

1

Average Recall 질문

0

556

1

이미지 사이즈 에러 발생

0

602

2

강의 교재

0

337

1