개발

pycoral Error 해결

murbachovski 2024. 6. 17. 22:56

https://github.com/jveitchmichaelis/edgetpu-yolo?tab=readme-ov-file

 

GitHub - jveitchmichaelis/edgetpu-yolo: Minimal-dependency Yolov5 and Yolov8 export and inference demonstration for the Google C

Minimal-dependency Yolov5 and Yolov8 export and inference demonstration for the Google Coral EdgeTPU - jveitchmichaelis/edgetpu-yolo

github.com

 

YOLO model Convert to EdgeTPU로 양자화하여 On-device 설계를 진행하고 있다.

(기존 YOLO model FPS : 0.5 ~ 2)

 

깃 내용 따라서 필요 라이브러리 설치하고 구현 중에 나타난 오류

ModuleNotFoundError: No module named 'pycoral.utils'

 

많이 본 pycoral...

 

https://coral.ai/docs/reference/py/

 

PyCoral API overview | Coral

 

coral.ai

 

설명은 이곳에 친절하게 나와있다.

 

"PyCoral API(pycoral 모듈)는 TensorFlow Lite Python API 위에 구축되어 Edge TPU에서 추론을 실행할 때 코드를 단순화하고 여러 Edge TPU에 대한 모델 파이프라인과 같은 Edge TPU에 대한 고급 기능을 제공합니다."

 

https://pypi.org/project/pycoral/

 

pycoral

Simple CLI for Allen Coral Atlas

pypi.org

 

그래서 단순히 pip install하면 해결될 줄 알았지만

On-device 환경이라서...

 

https://coral.ai/software/#pycoral-api

 

Software | Coral

Round-up of the software you need to build products with Coral

coral.ai

 

Coral 문서를 참고해야 합니다.

 

python3 -m pip install --extra-index-url https://google-coral.github.io/py-repo/ pycoral~=2.0

 

 

아직 갈 길이 멀다.