Refactor inference engine and task management: Remove obsolete inference engine and ONNX engine files, update inference processing to utilize batch handling, and enhance task management structure in documentation. Adjust paths for task specifications to align with new directory organization.

This commit is contained in:
Oleksandr Bezdieniezhnykh
2026-03-28 01:04:28 +02:00
parent 1e4ef299f9
commit 5be53739cd
60 changed files with 111875 additions and 208 deletions
+3 -1
View File
@@ -1,9 +1,11 @@
import json
import os
from pathlib import Path
import pytest
_DETECT_SLOW_TIMEOUT = 120
_MEDIA = os.environ.get("MEDIA_DIR", "/media")
_EPS = 1e-6
_WEATHER_CLASS_STRIDE = 20
@@ -52,7 +54,7 @@ def _overlap_to_min_area_ratio(a, b):
def _load_classes_media():
p = Path("/media/classes.json")
p = Path(_MEDIA) / "classes.json"
if not p.is_file():
pytest.skip(f"missing {p}")
raw = json.loads(p.read_text())