mirror of
https://github.com/azaion/detections.git
synced 2026-04-22 08:56:32 +00:00
[AZ-180] Enhance setup and improve inference logging
- Added a new Cython extension for the engine factory to the setup configuration. - Updated the inference module to include additional logging for video batch processing and annotation callbacks. - Refactored test cases to standardize the detection endpoint responses and include channel IDs in headers for better event handling.
This commit is contained in:
@@ -28,22 +28,13 @@ def _assert_no_same_label_near_duplicate_centers(detections):
|
||||
|
||||
|
||||
@pytest.mark.slow
|
||||
def test_ft_p_04_gsd_based_tiling_ac1(image_detect, image_large, warm_engine):
|
||||
body, _ = image_detect(
|
||||
image_large, "img.jpg",
|
||||
config=json.dumps(_GSD),
|
||||
timeout=_TILING_TIMEOUT,
|
||||
)
|
||||
assert isinstance(body, list)
|
||||
_assert_coords_normalized(body)
|
||||
|
||||
|
||||
@pytest.mark.slow
|
||||
def test_ft_p_16_tile_boundary_deduplication_ac2(image_detect, image_large, warm_engine):
|
||||
def test_ft_p04_p16_gsd_tiling_and_deduplication(image_detect, image_large, warm_engine):
|
||||
# Assert
|
||||
body, _ = image_detect(
|
||||
image_large, "img.jpg",
|
||||
config=json.dumps({**_GSD, "big_image_tile_overlap_percent": 20}),
|
||||
timeout=_TILING_TIMEOUT,
|
||||
)
|
||||
assert isinstance(body, list)
|
||||
_assert_coords_normalized(body)
|
||||
_assert_no_same_label_near_duplicate_centers(body)
|
||||
|
||||
Reference in New Issue
Block a user