mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 17:46:36 +00:00
refactor external clients
put model batch size as parameter in config
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
namespace Azaion.CommonSecurity;
|
||||
using Azaion.CommonSecurity.DTO;
|
||||
|
||||
namespace Azaion.CommonSecurity;
|
||||
|
||||
public class SecurityConstants
|
||||
{
|
||||
@@ -6,13 +8,36 @@ public class SecurityConstants
|
||||
|
||||
public const string DUMMY_DIR = "dummy";
|
||||
|
||||
#region PythonConfig
|
||||
public const string AZAION_INFERENCE_PATH = "azaion-inference.exe";
|
||||
#region ExternalClientsConfig
|
||||
public const string EXTERNAL_INFERENCE_PATH = "azaion-inference.exe";
|
||||
public const string EXTERNAL_GPS_DENIED_PATH = "image-matcher.exe";
|
||||
|
||||
public const string DEFAULT_ZMQ_INFERENCE_HOST = "127.0.0.1";
|
||||
public const int DEFAULT_ZMQ_INFERENCE_PORT = 5227;
|
||||
|
||||
public const string DEFAULT_ZMQ_GPS_DENIED_HOST = "127.0.0.1";
|
||||
public const int DEFAULT_ZMQ_GPS_DENIED_PORT = 5227;
|
||||
|
||||
public const string DEFAULT_ZMQ_HOST = "127.0.0.1";
|
||||
public const int DEFAULT_ZMQ_PORT = 5127;
|
||||
public const int DEFAULT_RETRY_COUNT = 25;
|
||||
public const int DEFAULT_TIMEOUT_SECONDS = 5;
|
||||
|
||||
#endregion PythonConfig
|
||||
public static readonly SecureAppConfig DefaultSecureAppConfig = new()
|
||||
{
|
||||
InferenceClientConfig = new InferenceClientConfig
|
||||
{
|
||||
ZeroMqHost = DEFAULT_ZMQ_INFERENCE_HOST,
|
||||
ZeroMqPort = DEFAULT_ZMQ_INFERENCE_PORT,
|
||||
OneTryTimeoutSeconds = DEFAULT_TIMEOUT_SECONDS,
|
||||
RetryCount = DEFAULT_RETRY_COUNT,
|
||||
ResourcesFolder = ""
|
||||
},
|
||||
GpsDeniedClientConfig = new GpsDeniedClientConfig
|
||||
{
|
||||
ZeroMqHost = DEFAULT_ZMQ_GPS_DENIED_HOST,
|
||||
ZeroMqPort = DEFAULT_ZMQ_GPS_DENIED_PORT,
|
||||
OneTryTimeoutSeconds = DEFAULT_TIMEOUT_SECONDS,
|
||||
RetryCount = DEFAULT_RETRY_COUNT,
|
||||
}
|
||||
};
|
||||
#endregion ExternalClientsConfig
|
||||
}
|
||||
Reference in New Issue
Block a user