Infer image and video with yolov7's tflite model
pip install -U pip && pip install opencv-python tflite_runtime
Dockerfile
docker build -t tatsuya060504/yolov7-tflite:wsl2 .
docker run -it --name=yolov7-tflite -v /home/<user>/yolov7-tflite:/home tatsuya060504/yolov7-tflite:wsl2
Dockerhub
docker pull tatsuya060504/yolov7-tflite:wsl2
docker run -it --name=yolov7-tflite -v /home/<user>/yolov7-tflite:/home tatsuya060504/yolov7-tflite:wsl2
cd model
sh download_yolov7_tiny_640x640_tflite.sh
# image
python tflite_inference.py -i <image path>
# video
python tflite_inference.py --mo video -i <video path>
# Webcam
python tflite_inference.py -mo webcam -i 0