fix race condition issue

put AIAvailabilityEnum.ENABLED to the end of model conversion
This commit is contained in:
Oleksandr Bezdieniezhnykh
2025-09-04 15:39:43 +03:00
parent be77a81875
commit 7d68f7faee
4 changed files with 7 additions and 4 deletions
+2 -1
View File
@@ -14,12 +14,13 @@ cdef class Inference:
cdef dict[str, list(Detection)] _tile_detections
cdef AIRecognitionConfig ai_config
cdef bint stop_signal
cdef AIAvailabilityStatus ai_availability_status
cdef public AIAvailabilityStatus ai_availability_status
cdef str model_input
cdef int model_width
cdef int model_height
cdef bytes _converted_model_bytes
cdef bytes get_onnx_engine_bytes(self)
cdef convert_and_upload_model(self, bytes onnx_engine_bytes, str engine_filename)
cdef init_ai(self)