Let the pipeline run without a model: injectable depth source for tests

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

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
55/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust

Direzione di ricerca

Start with process_photo and trace where it obtains per-frame depth from the CoreML estimator, then look at the existing unit tests for the HEIC writer, stereo renderer and ffmpeg failure path to see how they are set up. Introduce a depth-source seam (trait or function argument) that the CoreML estimator implements, leaving the CLI call path unchanged. Done when a test generates a small image, runs process_photo with a synthetic gradient depth, and asserts a stereo HEIC is produced, with cargo test passing in CI without a model.

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

Descrizione

Every end-to-end path needs a downloaded CoreML model, so there are no full photo or video pipeline tests and CI cannot exercise them. (Unit tests already cover the HEIC writer, the stereo renderer and the ffmpeg failure path.)

Acceptance criteria

  • A small trait (or function argument) supplies depth for a frame; the CoreML estimator is one implementation, a synthetic gradient is another
  • process_photo produces a stereo HEIC from a generated image using the synthetic depth, asserted in a test
  • No behaviour change for the CLI

Estimate: 4 h

Lingua principale
Rust
Stelle
0
Fork
0
Merge medio
3m
PR unite (30g)
3

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 mrgnw/spatial-maker

Tutte le issue di mrgnw/spatial-maker

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.