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 -4
View File
@@ -7,6 +7,8 @@ import uuid
import pytest
import requests
_MEDIA = os.environ.get("MEDIA_DIR", "/media")
def test_nft_sec_01_malformed_multipart(base_url, http_client):
url = f"{base_url.rstrip('/')}/detect"
@@ -57,16 +59,13 @@ def test_nft_sec_03_jwt_token_forwarding(
warm_engine,
http_client,
jwt_token,
mock_loader_url,
mock_annotations_url,
sse_client_factory,
):
media_id = f"sec-{uuid.uuid4().hex}"
body = {
"probability_threshold": 0.25,
"paths": [
f"{mock_loader_url.rstrip('/')}/load/video_short01.mp4",
],
"paths": [f"{_MEDIA}/video_short01.mp4"],
"frame_period_recognition": 4,
"frame_recognition_seconds": 2,
}