inflearn logo
강의

Khóa học

Chia sẻ kiến thức

Hướng dẫn API phát hiện đối tượng TensorFlow Phần 1 - Phát hiện đối tượng bằng cách sửa đổi 10 dòng mã

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

283

vctor

2 câu hỏi đã được viết

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

Câu trả lời 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

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

정보 공유 감사합니다.

좋은 하루 되세요~.

[개정판] 딥러닝 컴퓨터 비전 완벽 가이드 먼저? 구현하며 배우는 Transformer 먼저?

0

26

1

수업자료

0

22

2

paperswithcode 서비스 종료 관련 문의

0

201

2

질문있습니다.

0

59

2

버전 오류 23.05파일 포함.

0

213

1

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

0

377

1

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

1

595

2

강의 슬라이드 전달 요청

1

373

1

TensorFlow Object Detection API Deprecation 영향 문의

0

366

0

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

0

452

1

Person Detection 에러 질문

0

244

1

사용법

0

390

2

확장자 변경

0

271

0

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

0

556

2

PPT자료 어디에 있나요??

0

305

0

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

0

358

1

error

0

184

1

Person Detection 관련 문의

0

246

1

CenterNet을 이용한 Car Detection

0

229

0

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

0

335

1

yolo annotation 문의

0

349

1

Average Recall 질문

0

524

1

이미지 사이즈 에러 발생

0

547

2

강의 교재

0

307

1