엣지컴퓨팅/라즈베리파이
Tensorflow Lite 설치 (feat. Raspberry Pi)
Zero Coding
2022. 7. 19. 17:10
※ Tensorflow 및 openCV 는 기본적으로 깔려있어야 함.
1. Github에서 소스 코드 다운
git clone https://github.com/EdjeElectronics/TensorFlow-Lite-Object-Detection-on-Android-and-Raspberry-Pi
2. 디렉터리 이름 변경 및 해당 디렉터리로 이동
mv TensorFlow-Lite-Object-Detection-on-Android-and-Raspberry-Pi TFLite
cd TFLite
3. 패키지 설치(sh.파일 실행)
sh get_pi_requirements.sh
4. 테스트할 모델 다운로드 / 압축 해제
wget https://storage.googleapis.com/download.tensorflow.org/models/tflite/coco_ssd_mobilenet_v1_1.0_quant_2018_06_29.zip
unzip coco_ssd_mobilenet_v1_1.0_quant_2018_06_29.zip -d model
5. 테스트
python3 TFLite_detection_webcam.py --modeldir=model