mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 08:06:31 +00:00
add production configs, update publish script
This commit is contained in:
@@ -0,0 +1 @@
|
||||
zmq_port: 5131
|
||||
@@ -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
|
||||
|
||||
@@ -43,6 +43,9 @@
|
||||
<None Update="config.json">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Update="config.production.json">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -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 }
|
||||
}
|
||||
+3
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user