roboflow / roboflow/inference

Add support for running models on NPU of `RPi5 with the Hailo 8L` and `Orange Pi 5 Pro (RK3588S)`

Open
#616 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
2.5k
Forks
320
Avg merge
1d 14h
Merged PRs (30d)
133

Description

Search before asking
  • I have searched the Inference issues and found no similar feature requests.
Description

User requested a feature as described below:

Hi folks,

Been loving the interface, but having issues with the inference module required on Edge devices. I am working on accessing the NPU of two of my devices a RPi5 with the Hailo 8L, and an Orange Pi 5 Pro (RK3588S). For example, the Orange Pi 5 Pro has a 6TOPS NPU that can accelerate my work quite a bit vs the CPU, Yolov8 is supported, but it needs the .pt file (or ONNX) to convert into it’s own optimized format. The Hailo for RPi 5 has a similar (albeit simpler) process and from the documentation it seems that there is built in support already for Hailo via inference. For the life of me I cannot figure out how to properly get a model export going so I can get things converted for the RK3588s’ npu. There have been past forum posts asking about this but its been a while. I really want to avoid being hardware/ecosystem locked if I can avoid it.

Any tips, tricks, thoughts?

User asks to add support for running models on NPU of RPi5 with the Hailo 8L and Orange Pi 5 Pro (RK3588S)

Use case

As explained by the user:

Orange Pi 5 Pro has a 6TOPS NPU that can accelerate my work quite a bit vs the CPU

Providing models that can be loaded onto user hardware will result in faster inference time

Additional

User states:

The Hailo for RPi 5 has a similar (albeit simpler) process and from the documentation it seems that there is built in support already for Hailo via inference.

Maybe it would be possible to achieve what user asks for through ONNXRUNTIME_EXECUTION_PROVIDERS?

Are you willing to submit a PR?
  • Yes I'd like to help by submitting a PR!

Contributor guide

Open the contributing guide

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.

Research direction

No files or tests are named. Start by tracing the existing Hailo support and the ONNXRUNTIME_EXECUTION_PROVIDERS path, then determine the integration requirements for the Raspberry Pi 5 and Orange Pi 5 Pro. Done should mean models can be exported or loaded and run on both devices' NPUs with documented usage.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
embedded-iot, machine-learning
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.