diff --git a/Azaion.Inference/config.production.yaml b/Azaion.Inference/config.production.yaml new file mode 100644 index 0000000..e575821 --- /dev/null +++ b/Azaion.Inference/config.production.yaml @@ -0,0 +1 @@ +zmq_port: 5131 \ No newline at end of file diff --git a/Azaion.Suite.sln b/Azaion.Suite.sln index 5315379..73c9f06 100644 --- a/Azaion.Suite.sln +++ b/Azaion.Suite.sln @@ -29,6 +29,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{CF141A48 build\build_downloader.cmd = build\build_downloader.cmd build\installer.iss = build\installer.iss build\cdn_manager.py = build\cdn_manager.py + build\downloader_config.yaml = build\downloader_config.yaml EndProjectSection EndProject Global diff --git a/Azaion.Suite/Azaion.Suite.csproj b/Azaion.Suite/Azaion.Suite.csproj index b15d7b3..823acde 100644 --- a/Azaion.Suite/Azaion.Suite.csproj +++ b/Azaion.Suite/Azaion.Suite.csproj @@ -43,6 +43,9 @@ PreserveNewest + + PreserveNewest + diff --git a/Azaion.Suite/config.production.json b/Azaion.Suite/config.production.json new file mode 100644 index 0000000..500c7eb --- /dev/null +++ b/Azaion.Suite/config.production.json @@ -0,0 +1,47 @@ +{ + "PythonConfig": { + "ZeroMqHost": "127.0.0.1", + "ZeroMqPort": 5131, + "RetryCount": 25, + "TimeoutSeconds": 5 + }, + "DirectoriesConfig": { + "VideosDirectory": "videos", + "LabelsDirectory": "labels", + "ImagesDirectory": "images", + "ResultsDirectory": "results", + "ThumbnailsDirectory": "thumbnails" + }, + "AnnotationConfig": { + "DetectionClasses": [ + { "Id": 0, "Name": "Броньована техніка", "ShortName": "Броня" }, + { "Id": 1, "Name": "Вантажівка", "ShortName": "Вантаж." }, + { "Id": 2, "Name": "Машина легкова", "ShortName": "Машина" }, + { "Id": 3, "Name": "Артилерія", "ShortName": "Арта" }, + { "Id": 4, "Name": "Тінь від техніки", "ShortName": "Тінь" }, + { "Id": 5, "Name": "Окопи", "ShortName": "Окопи" }, + { "Id": 6, "Name": "Військовий", "ShortName": "Військов" }, + { "Id": 7, "Name": "Накати", "ShortName": "Накати" }, + { "Id": 8, "Name": "Танк з захистом", "ShortName": "Танк.захист" }, + { "Id": 9, "Name": "Дим", "ShortName": "Дим" }, + { "Id": 10, "Name": "Літак", "ShortName": "Літак" }, + { "Id": 11, "Name": "Мотоцикл", "ShortName": "Мото" } + ], + "LastSelectedExplorerClass": null, + "VideoFormats": [ "mp4", "mov", "avi" ], + "ImageFormats": [ "jpg", "jpeg", "png", "bmp" ], + "AnnotationsDbFile": "annotations.db", + "LeftPanelWidth": 240.0, + "RightPanelWidth": 240.0 + }, + "AIRecognitionConfig": { + "FramePeriodRecognition": 6, + "FrameRecognitionSeconds": 2.0, + "ProbabilityThreshold": 0.25, + + "TrackingDistanceConfidence": 0.15, + "TrackingProbabilityIncrease": 15.0, + "TrackingIntersectionThreshold": 0.8 + }, + "ThumbnailConfig": { "Size": "240,135", "Border": 10 } +} diff --git a/build/publish.cmd b/build/publish.cmd index ee5c627..2f81a46 100644 --- a/build/publish.cmd +++ b/build/publish.cmd @@ -12,6 +12,8 @@ dotnet publish -r win-x64 -p:SatelliteResourceLanguages="en" -p:DebugSymbols=fal cd .. rmdir dist /s /q xcopy Azaion.Suite\bin\Release\net8.0-windows\win-x64\publish dist\ /s /e /q +del dist\config.json +move dist\config.production.json dist\config.json mkdir dist\dummy move dist\Azaion.Annotator.dll dist\dummy\ @@ -44,7 +46,7 @@ pyinstaller --onefile ^ --hidden-import remote_command_handler ^ start.py move dist\start.exe ..\dist\azaion-inference.exe -copy config.yaml ..\dist +copy config.production.yaml ..\dist\config.yaml cd.. echo Download onnx model