pytorch / pytorch/executorch

Export YOLO to executorch for RISC-V Baremetal environment

Open
#18,833 14 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

module: microcontrollers
Dominant language
Python
Stars
5k
Forks
1.2k
Avg merge
2d 10h
Merged PRs (30d)
581

Description

I am trying to do object detection using YOLO on a RISC-V baremetal environment. The RISC-V core I am using is single core. It supports IMAFDC. I saw that exporting YOLO to executorch requires XNNPack backend. I have a few questions.

  1. Is this realistically possible to be done without using XNNPack (which relies on pthreads and pthreads require an OS)?
  2. Or can I run YOLO with XNNPack backend without using pthreads?
  3. Also if there is no OS, will this run in single threaded mode in baremetal and not give any errors?

Any help regarding this would be appreciated.

cc @psiddh @AdrianLundell @digantdesai

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

Start by reviewing the ExecuTorch export path for YOLO and the XNNPack backend assumptions described in the issue. Check how pthreads and single-threaded execution are handled for a RISC-V baremetal target. Done should be a clear supported configuration or an actionable implementation scope answering the three compatibility questions.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.