Upload README.md with huggingface_hub
Browse files9 unmodified lines1011121314151617 unmodified lines343536373839404110 unmodified lines5253545556575829 unmodified lines8889909192939438 unmodified lines1331341351361371381396 unmodified lines1461471481491501511529 unmodified lines# Temporal Smoke Model (bbox-tube-temporal)> **Latest release:** [`v0.4.0`](https://huggingface.co/pyronear/temporal-model/tree/v0.4.0) — pin this revision for reproducibility, or omit `revision=` to always get the latest. All releases: the **Files and versions** tab.A temporal wildfire-**smoke** classifier for short sequences of camera frames. AYOLO detector proposes boxes, boxes are linked across frames into temporal17 unmodified lines## ONNX runtime (no torch)`model_onnx.zip` carries the same classifier exported to ONNX (fixed input`patches[1, 20, 3, 224, 224]` + `mask[1, 20]` → `logit[1]`), the inferenceconfig and the calibrator, but **no YOLO**: you supply the per-frame detections(e.g. from a detector already running on the device). It runs on numpy + pillow+ onnxruntime only — the intended runtime for edge devices such as a10 unmodified linesfrom temporal_model.core import Detection, FrameDetectionsfrom temporal_model.core.onnx_model import OnnxTemporalModelonnx_zip = hf_hub_download("pyronear/temporal-model", "model_onnx.zip", revision="v0.4.0")model = OnnxTemporalModel.from_package(Path(onnx_zip))frames = model.load_sequence(sorted(Path("my_sequence").glob("*.jpg")))29 unmodified linesfrom temporal_model.core.model import BboxTubeTemporalModel# 1. Download a specific release (pin the revision).model_zip = hf_hub_download("pyronear/temporal-model", "model.zip", revision="v0.4.0")# 2. Temporally-ordered frames. Filenames carry timestamps# (<prefix>_<YYYY-MM-DDTHH-MM-SS>.jpg); the order is the time order.38 unmodified linesdocker run --gpus all -p 8000:8000 \-e TEMPORAL_API_S3_BUCKET=<frames-bucket> \-e TEMPORAL_API_S3_ENDPOINT_URL=<s3-endpoint> \pyronear/temporal-model-api:0.4.0# POST /predict {"frames": ["<s3-key>", ...]} GET /health```6 unmodified linesEvery `model.zip` manifest records how it was built — the training git SHA, theclassifier backbone (`vit_small_patch14_dinov2.lvd142m`), and the exact companiondetector (e.g. `pyronear/yolo11s_nimble-narwhal_v6.0.0`, verified by SHA-256). Soa served model always traces back to its detector + training code.Source & pipeline: <https://github.com/pyronear/temporal-model>9 unmodified lines1011121314151617 unmodified lines343536373839404110 unmodified lines5253545556575829 unmodified lines8889909192939438 unmodified lines1331341351361371381396 unmodified lines1461471481491501511529 unmodified lines# Temporal Smoke Model (bbox-tube-temporal)> **Latest release:** [`v0.5.0`](https://huggingface.co/pyronear/temporal-model/tree/v0.5.0) — pin this revision for reproducibility, or omit `revision=` to always get the latest. All releases: the **Files and versions** tab.A temporal wildfire-**smoke** classifier for short sequences of camera frames. AYOLO detector proposes boxes, boxes are linked across frames into temporal17 unmodified lines## ONNX runtime (no torch)`model_onnx.zip` carries the same classifier exported to ONNX (dynamic batch:`patches[N, 20, 3, 224, 224]` + `mask[N, 20]` → `logit[N]`), the inferenceconfig and the calibrator, but **no YOLO**: you supply the per-frame detections(e.g. from a detector already running on the device). It runs on numpy + pillow+ onnxruntime only — the intended runtime for edge devices such as a10 unmodified linesfrom temporal_model.core import Detection, FrameDetectionsfrom temporal_model.core.onnx_model import OnnxTemporalModelonnx_zip = hf_hub_download("pyronear/temporal-model", "model_onnx.zip", revision="v0.5.0")model = OnnxTemporalModel.from_package(Path(onnx_zip))frames = model.load_sequence(sorted(Path("my_sequence").glob("*.jpg")))29 unmodified linesfrom temporal_model.core.model import BboxTubeTemporalModel# 1. Download a specific release (pin the revision).model_zip = hf_hub_download("pyronear/temporal-model", "model.zip", revision="v0.5.0")# 2. Temporally-ordered frames. Filenames carry timestamps# (<prefix>_<YYYY-MM-DDTHH-MM-SS>.jpg); the order is the time order.38 unmodified linesdocker run --gpus all -p 8000:8000 \-e TEMPORAL_API_S3_BUCKET=<frames-bucket> \-e TEMPORAL_API_S3_ENDPOINT_URL=<s3-endpoint> \pyronear/temporal-model-api:0.5.0# POST /predict {"frames": ["<s3-key>", ...]} GET /health```6 unmodified linesEvery `model.zip` manifest records how it was built — the training git SHA, theclassifier backbone (`vit_small_patch14_dinov2.lvd142m`), and the exact companiondetector (e.g. `pyronear/yolov11s` @ `v8.3.0`, verified by SHA-256). Soa served model always traces back to its detector + training code.Source & pipeline: <https://github.com/pyronear/temporal-model>
README.md+7-7