diff --git a/Azaion.Annotator/Azaion.Annotator.csproj b/Azaion.Annotator/Azaion.Annotator.csproj index abcfb87..af35717 100644 --- a/Azaion.Annotator/Azaion.Annotator.csproj +++ b/Azaion.Annotator/Azaion.Annotator.csproj @@ -20,18 +20,14 @@ - - - - PreserveNewest - - - PreserveNewest + + PreserveNewest + diff --git a/Azaion.Annotator/DTO/Config.cs b/Azaion.Annotator/DTO/Config.cs index cac2815..5c834de 100644 --- a/Azaion.Annotator/DTO/Config.cs +++ b/Azaion.Annotator/DTO/Config.cs @@ -1,5 +1,4 @@ -using System.Drawing; -using System.IO; +using System.IO; using System.Reflection; using System.Text; using Newtonsoft.Json; @@ -34,7 +33,9 @@ public class Config public static Config Read() { - if (!File.Exists(CONFIG_PATH)) + string configFilePath = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), CONFIG_PATH); + + if (!File.Exists(configFilePath)) { var exePath = Path.GetDirectoryName(AppDomain.CurrentDomain.BaseDirectory)!; return new Config diff --git a/Azaion.Annotator/PlayerControlHandler.cs b/Azaion.Annotator/PlayerControlHandler.cs index f50c0b3..5045800 100644 --- a/Azaion.Annotator/PlayerControlHandler.cs +++ b/Azaion.Annotator/PlayerControlHandler.cs @@ -4,7 +4,6 @@ using System.Windows.Input; using Azaion.Annotator.DTO; using LibVLCSharp.Shared; using MediatR; -using MS.WindowsAPICodePack.Internal; namespace Azaion.Annotator; diff --git a/Azaion.Annotator/config.json b/Azaion.Annotator/config.json index 969d45a..1fa8dd9 100644 --- a/Azaion.Annotator/config.json +++ b/Azaion.Annotator/config.json @@ -1,7 +1,7 @@ { - "LookupDirectory": "video", - "LabelsDirectory": "labels", - "ImagesDirectory": "images", + "VideosDirectory": "D:\\dev\\azaion\\ai\\ai-data", + "LabelsDirectory": "D:\\dev\\azaion\\ai\\ai-data\\Azaion.Annotator\\labels", + "ImagesDirectory": "D:\\dev\\azaion\\ai\\ai-data\\Azaion.Annotator\\images", "AnnotationClasses": [ { "Id": 0,