From cfd5483a18d09d15a885dacbe6eeb14447da10e6 Mon Sep 17 00:00:00 2001 From: Alex Bezdieniezhnykh Date: Thu, 13 Feb 2025 18:13:15 +0200 Subject: [PATCH] make python app load a bit eariler, making startup a bit faster --- Azaion.Annotator/Annotator.xaml | 4 +-- Azaion.Annotator/Annotator.xaml.cs | 11 ++---- .../DTO/Config/AIRecognitionConfig.cs | 1 + Azaion.Common/Services/InferenceService.cs | 6 ++-- Azaion.CommonSecurity/DTO/ApiCredentials.cs | 11 +++++- .../DTO/Commands/RemoteCommand.cs | 24 ++++++++++--- Azaion.CommonSecurity/DTO/User.cs | 4 +-- .../Services/PythonResourceLoader.cs | 35 ++++++++++--------- Azaion.Inference/api_client.pxd | 7 ++-- Azaion.Inference/api_client.pyx | 31 +++++++--------- Azaion.Inference/build.cmd | 6 ++-- Azaion.Inference/constants.pxd | 1 - Azaion.Inference/constants.pyx | 1 - Azaion.Inference/credentials.pxd | 7 ++++ Azaion.Inference/credentials.pyx | 17 +++++++++ Azaion.Inference/file_data.pxd | 6 ++++ Azaion.Inference/file_data.pyx | 14 ++++++++ Azaion.Inference/main.pyx | 30 ++++++++-------- Azaion.Inference/remote_command.pxd | 3 +- Azaion.Inference/remote_command.pyx | 9 +++-- Azaion.Inference/setup.py | 2 ++ Azaion.Inference/start.py | 19 +++------- Azaion.Inference/start.spec | 2 +- Azaion.Suite.sln | 6 ++++ Azaion.Suite/App.xaml.cs | 16 ++++----- Azaion.Suite/Azaion.Suite.csproj | 12 +++---- Azaion.Suite/MainSuite.xaml.cs | 8 +++-- Azaion.Suite/config.json | 7 ++-- Azaion.Suite/upload.cmd | 5 +-- Azaion.Test/DictTest.cs | 1 - .../Azaion.Annotator/Azaion.Annotator.csproj | 1 - 31 files changed, 183 insertions(+), 124 deletions(-) create mode 100644 Azaion.Inference/credentials.pxd create mode 100644 Azaion.Inference/credentials.pyx create mode 100644 Azaion.Inference/file_data.pxd create mode 100644 Azaion.Inference/file_data.pyx diff --git a/Azaion.Annotator/Annotator.xaml b/Azaion.Annotator/Annotator.xaml index 28f1160..486977f 100644 --- a/Azaion.Annotator/Annotator.xaml +++ b/Azaion.Annotator/Annotator.xaml @@ -148,13 +148,13 @@ Grid.Column="0" Name="LvFiles" Background="Black" - SelectedItem="{Binding Path=SelectedVideo}" Foreground="#FFA4AFCC" + SelectedItem="{Binding Path=SelectedVideo}" Foreground="#FFEEEEEE" >