Device temporal scores: model version, separate threshold, minimum frames

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

I maintainer di solito rispondono entro 6 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
fastapi, postgresql, python

Direzione di ricerca

Read the implementation of POST /detections, pyroclient.create_detection, and the worker branch that handles device scores, along with the existing temporal_model_version, TEMPORAL_MODEL_THRESHOLD, and MIN_FRAMES settings. Check how the engine’s 11-frame window fills early in an event before deciding where the minimum-frame rule belongs. Done means device scores can carry a model version, use their own threshold, and follow a clearly chosen minimum-frame rule.

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

Descrizione

Follow-up of #723, which stores the temporal score computed on the device with engine as provenance and applies TEMPORAL_MODEL_THRESHOLD to it.

Three things were left out of that PR to keep it small:

  • Model version. The engine sends no version with its scores, so temporal_model_version stays NULL for device scores. We cannot tell which release produced a score or spot calibration drift. Proposal: an optional temporal_model_version form field on POST /detections (and the matching pyroclient.create_detection parameter), stored in the existing column. pyro-engine side: send the version reported by pyro_temporal_api /health.
  • Separate threshold. The device model and the API model share TEMPORAL_MODEL_THRESHOLD, but their scores are not necessarily comparable. Proposal: a DEVICE_TEMPORAL_MODEL_THRESHOLD setting, defaulting to TEMPORAL_MODEL_THRESHOLD, used by the worker's device branch only.
  • Minimum frames. MIN_FRAMES does not apply to device scores: the engine scores its own window (11 frames, pyronear/pyro-engine#415) and sends a score with every frame once an alert is ongoing, so a sequence can validate on its creation frame. Decide whether the engine must score a minimum number of frames before sending scores, or whether the API should require a minimum here. Needs a look at how many frames the engine window holds early in an event.

No migration for the first two.

Lingua principale
Python
Stelle
30
Fork
15
Merge medio
7g 16h
PR unite (30g)
16

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-api

Tutte le issue di pyronear/pyro-api

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.