mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 12:56:30 +00:00
read cdn yaml config from api
automate tensorrt model conversion in case of no existing one for user's gpu
This commit is contained in:
@@ -4,6 +4,8 @@ from queue import Queue
|
||||
cimport constants
|
||||
from threading import Thread
|
||||
|
||||
import yaml
|
||||
|
||||
from api_client cimport ApiClient
|
||||
from annotation cimport Annotation
|
||||
from inference cimport Inference
|
||||
@@ -59,9 +61,8 @@ cdef class CommandProcessor:
|
||||
print(f"Error handling client: {e}")
|
||||
|
||||
cdef login(self, RemoteCommand command):
|
||||
cdef User user
|
||||
self.api_client.set_credentials(Credentials.from_msgpack(command.data))
|
||||
user = self.api_client.get_user()
|
||||
Thread(target=self.inference.build_tensor_engine).start() # build AI engine in non-blocking thread
|
||||
|
||||
cdef load_file(self, RemoteCommand command):
|
||||
cdef FileData file_data = FileData.from_msgpack(command.data)
|
||||
|
||||
Reference in New Issue
Block a user