mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 10:36:30 +00:00
update AI initializing
rework AIAvailabilityStatus events to mediatr
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
from ai_availability_status cimport AIAvailabilityStatus
|
||||
from remote_command_inf cimport RemoteCommand
|
||||
from annotation cimport Annotation, Detection
|
||||
from ai_config cimport AIRecognitionConfig
|
||||
@@ -12,6 +13,7 @@ cdef class Inference:
|
||||
cdef dict[str, list(Detection)] _tile_detections
|
||||
cdef AIRecognitionConfig ai_config
|
||||
cdef bint stop_signal
|
||||
cdef AIAvailabilityStatus ai_availability_status
|
||||
|
||||
cdef str model_input
|
||||
cdef int model_width
|
||||
@@ -19,7 +21,7 @@ cdef class Inference:
|
||||
cdef int tile_width
|
||||
cdef int tile_height
|
||||
|
||||
cdef build_tensor_engine(self, object updater_callback)
|
||||
cdef bytes get_onnx_engine_bytes(self)
|
||||
cdef init_ai(self)
|
||||
cdef bint is_building_engine
|
||||
cdef bint is_video(self, str filepath)
|
||||
|
||||
Reference in New Issue
Block a user