mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 10:26:31 +00:00
fix race condition issue
put AIAvailabilityEnum.ENABLED to the end of model conversion
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user