feat: Use the temporal score sent by the Pi

オープン
#703 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
65/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
fastapi, python

調査の方向性

Start at the detection endpoint and trace the existing temporal-model validation flow. Compare the paths for detections with and without a score, including how the model version and TEMPORAL_MODEL_THRESHOLD are handled. Add tests covering both cases and verify that scored sequences avoid the server while unscored sequences still use it.

索引モデルが issue の本文から書いたものです。

説明

type: feat

This issue is part of the epic pyronear/roadmap#2 (Temporal model on Raspberry Pi).

Pis will soon run the temporal model themselves (pyronear/pyro-engine#424) and send the score with each detection. The API must use this score instead of calling the temporal model server.

  • Detection with a score from the Pi: save it in temporal_model_score (with the model version) and validate the sequence with TEMPORAL_MODEL_THRESHOLD, without calling the server.
  • Detection without a score: queue the sequence for the server, as today.

The Pi sends everything above a low threshold (for example 0.1), so sequences under TEMPORAL_MODEL_THRESHOLD are stored but not shown. This keeps data for future analysis. TEMPORAL_MODEL_THRESHOLD must be set to the optimal value found in pyronear/vision-rd#143 (epic pyronear/roadmap#1).

Done when
  • The detection endpoint accepts an optional temporal score and model version
  • Sequences with a score from the Pi are validated without calling the server
  • Sequences without a score are validated by the server as today
  • Tests for both cases
主要言語
Python
スター
30
フォーク
15
平均マージ
4日 15時間
マージ済み PR(30日)
16

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

pyronear/pyro-api のほかの issue

pyronear/pyro-api の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。