mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 23:36:31 +00:00
6429ad62c2
put model batch size as parameter in config
43 lines
1.4 KiB
C#
43 lines
1.4 KiB
C#
using Azaion.CommonSecurity.DTO;
|
|
|
|
namespace Azaion.CommonSecurity;
|
|
|
|
public class SecurityConstants
|
|
{
|
|
public const string CONFIG_PATH = "config.json";
|
|
|
|
public const string DUMMY_DIR = "dummy";
|
|
|
|
#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 int DEFAULT_RETRY_COUNT = 25;
|
|
public const int DEFAULT_TIMEOUT_SECONDS = 5;
|
|
|
|
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
|
|
} |