YOLOv8 INT8 TFLite webcam inference for i.MX8MP (NPU / CPU)
Project description
yolov8-tflite-imx
YOLOv8 INT8 TFLite webcam inference for i.MX8MP (phyBOARD-Pollux).
Supports CPU and NPU acceleration via the VeriSilicon VX delegate.
Included models
| Command | Model task | Default model path |
|---|---|---|
detect |
Object detection (COCO) | yolov8n_object_detection_full_integer_quant.tflite |
pose |
Pose estimation | yolov8n-pose_full_integer_quant.tflite |
obb |
Oriented bounding box | yolov8n-obb_full_integer_quant.tflite |
segment |
Instance segmentation | yolov8n-seg_full_integer_quant.tflite |
Pose estimation
pose --cam 0 # CPU
pose --cam 0 --npu # NPU
Oriented bounding box (OBB)
obb --cam 0 # CPU
obb --cam 0 --npu # NPU
Instance segmentation
segment --cam 0 # CPU
segment --cam 0 --npu # NPU
All flags (same for every command)
| Flag | Default | Description |
|---|---|---|
--model PATH |
see table above | Path to .tflite model |
--cam INT |
0 |
Camera device ID |
--conf FLOAT |
0.25 |
Confidence threshold |
--iou FLOAT |
0.45 |
NMS IoU threshold |
--npu |
off | Enable NPU via /usr/lib/libvx_delegate.so |
--delegate PATH |
None | Custom delegate .so (overrides --npu) |
--no-gst |
off | Disable GStreamer, use V4L2 directly |
Keys while running
| Key | Action |
|---|---|
q or ESC |
Quit |
s |
Save current frame as capture_<task>.jpg |
Requirements
- Python ≥ 3.8
tflite_runtime(installed separately for your board/arch)opencv-python≥ 4.5numpy≥ 1.21- NPU:
/usr/lib/libvx_delegate.sopresent on the board
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file phytec_yolov8n_tflite-1.0.1-py3-none-any.whl.
File metadata
- Download URL: phytec_yolov8n_tflite-1.0.1-py3-none-any.whl
- Upload date:
- Size: 18.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b21901bdf78c5c4bd3c61a0dea98e018ec831c9bebec4592dc364ed44e5014da
|
|
| MD5 |
559c66bd19970951302b839351aca68f
|
|
| BLAKE2b-256 |
8aed6b9176d1891242cd13d4299f209849473979d831e2061889afec389cdc82
|