YOLO-Fun
Collection
一个收集“有趣场景”的 YOLO 检测模型合集。
从日常生活到奇奇怪怪的边缘case,这里放的是那些“没必要但很好玩”的检测任务。
目标是用最轻量的方式,把想法快速变成可用模型。 • 1 item • Updated • 1
Configuration Parsing Warning:Invalid JSON for config file config.json
This version of YOLOv8-Aquarium has been converted to run on the Axera NPU using w8a16 quantization. It is fine-tuned to detect aquatic life in aquarium environments.
This model is trained to detect the following 5 classes:
Compatible with Pulsar2 version: 5.1.
For those who are interested in model conversion, you can try to export axmodel through:
https://docs.m5stack.com/zh_CN/ai_hardware/AI_Pyramid-Pro
Download all files from this repository to the device.
https://github.com/AXERA-TECH/pyaxengine
wget https://github.com/AXERA-TECH/pyaxengine/releases/download/0.1.3.rc2/axengine-0.1.3-py3-none-any.whl
pip install axengine-0.1.3-py3-none-any.whl
run
python3 infer_yolov8_pyax.py --model-path aquarium_yolov8s_6way.axmodel --test-img test.png
root@ax650:~/yolo8# python3 infer_yolov8_pyax.py --model-path aquarium_yolov8s_6way.axmodel --test-img test.png
[INFO] Available providers: ['AxEngineExecutionProvider', 'AXCLRTExecutionProvider']
[INFO] Using provider: AxEngineExecutionProvider
[INFO] Chip type: ChipType.MC50
[INFO] VNPU type: VNPUType.DISABLED
[INFO] Engine version: 2.12.0s
[INFO] Model type: 2 (triple core)
[INFO] Compiler version: 5.2-dirty a6f1799a-dirty
[Aquarium-YOLOv8-6way] [14:15:20.397] [DEBUG] Load model time = 485.48 ms
[Aquarium-YOLOv8-6way] [14:15:20.463] [DEBUG] Pre-process time = 8.36 ms
[Aquarium-YOLOv8-6way] [14:15:20.483] [DEBUG] Forward time min/avg/max = 19.42/19.42/19.42 ms (n=1)
[Aquarium-YOLOv8-6way] [14:15:20.490] [DEBUG] Post-process time = 6.78 ms
[Aquarium-YOLOv8-6way] [14:15:20.491] [INFO] Detections: 26
[Aquarium-YOLOv8-6way] [14:15:20.491] [INFO] fish score=0.850 xyxy=(168.9,517.7,285.1,583.1)
[Aquarium-YOLOv8-6way] [14:15:20.491] [INFO] fish score=0.771 xyxy=(757.8,573.3,801.3,601.8)
...
[Aquarium-YOLOv8-6way] [14:15:20.496] [INFO] fish score=0.452 xyxy=(600.2,412.4,652.9,460.7)
[Aquarium-YOLOv8-6way] [14:15:20.496] [INFO] per-class: {'fish': 26, 'turtle': 0, 'shrimp': 0, 'crab': 0, 'snail': 0}
[Aquarium-YOLOv8-6way] [14:15:20.526] [INFO] Saved to result_aquarium_yolov8.jpg
root@ax650:~/yolo8# ls
aquarium_yolov8s_6way.axmodel infer_yolov8_pyax.py result_aquarium_yolov8.jpg test.png
root@ax650:~/yolo8# realpath result_aquarium_yolov8.jpg
/root/yolo8/result_aquarium_yolov8.jpg