Pi 5 inference benchmark of the candidate detectors

Open
#151 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python, raspberry-pi

Research direction

Start with the YOLO detector work in pyronear/roadmap#10 and the temporal model referenced in pyronear/roadmap#2. Benchmark model sizes n, s, and m across 640 and 1024 inputs and NCNN and ONNX exports on the Pi 5. Done means recording inference time and memory in a table and writing the biggest usable model size in the epic.

Written by the indexing model from the issue text.

Description

computer-vision help wanted P3 T1-27 task

This issue is part of the epic pyronear/roadmap#10 (Challenge our YOLO detector).

Second step of the epic: write a script that measures inference time and memory on the Pi 5 for each candidate of pyronear/vision-rd#140, so we only train the models that can run in the detection loop.

  • Export each candidate to the formats usable on the Pi (NCNN for YOLO, ONNX for the DETR models) at 640 and 1024 px, from COCO weights: no training is needed to measure speed.
  • Run the script on a Pi 5 with the production runtime (same ncnn / onnxruntime versions as pyro-engine) and report latency (median, p95) and peak memory, by model, size, input size and format.
  • Measure it together with the temporal model, which will also run on the Pi (pyronear/roadmap#2).
  • Select the candidates that fit the budget of the detection loop and write the biggest usable size in the epic.
Done when
  • Benchmark script in vision-rd, runnable on the Pi 5
  • Table of inference time and memory on the Pi 5, by model, size, input size and format
  • Selection of the models to train written, biggest usable size written in the epic

Theme Computer Vision · Priority P3 · Period T1-27

Dominant language
Python
Stars
0
Forks
4
Avg merge
8d 21h
Merged PRs (30d)
2

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from pyronear/vision-rd

All issues in pyronear/vision-rd

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.