mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 13:26:30 +00:00
add ramdisk, load AI model to ramdisk and start recognition from it
rewrite zmq to DEALER and ROUTER add GET_USER command to get CurrentUser from Python all auth is on the python side inference run and validate annotations on python
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
cdef class SecureModelLoader:
|
||||
cdef:
|
||||
bytes _model_bytes
|
||||
str _ramdisk_path
|
||||
str _temp_file_path
|
||||
int _disk_size_mb
|
||||
|
||||
cpdef str load_model(self, bytes model_bytes)
|
||||
cdef str _get_ramdisk_path(self)
|
||||
cdef void _create_ramdisk(self)
|
||||
cdef void _store_model(self)
|
||||
cdef void _cleanup(self)
|
||||
Reference in New Issue
Block a user