Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Install only the inference runtime needed for each architecture in the Docker images

Aperta
#452 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
57/100
Tipo di issue
Refactoring
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
docker, python

Direzione di ricerca

Read the Dockerfile, the pyro-predictor dependency declarations, and vision.py. Check how TARGETARCH is used and how #429 selected NCNN for ARM and ONNX for x86; then inspect the existing tests or build checks mentioned by the project. Done means each architecture installs and lazily imports only its matching runtime, with both image builds working.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Follow up of #429, suggested by @frgfm.

The image is already built for linux/amd64 and linux/arm64 from a single Dockerfile, but both runtimes are always installed (ncnn and onnxruntime are hard dependencies of pyro-predictor). Since #429, ARM uses NCNN and x86 uses ONNX by default, so each image carries a runtime it never uses.

Proposal:

  • Make ncnn and onnxruntime optional extras of pyro-predictor (e.g. pyro-predictor[ncnn], pyro-predictor[onnx])
  • Import them lazily in vision.py (both are currently imported at module level)
  • In the Dockerfile, install the extra that matches TARGETARCH

Benefits: smaller images and fewer dependencies to keep up to date on each platform.

Lingua principale
Python
Stelle
20
Fork
9
Merge medio
8g 19h
PR unite (30g)
8

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di pyronear/pyro-engine

Tutte le issue di pyronear/pyro-engine

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.