mirror of
https://github.com/whoswhip/Spectrum.git
synced 2026-12-06 01:28:42 +00:00
fix: create directories before loading configs
This commit is contained in:
+8
-9
@@ -28,10 +28,16 @@ namespace Spectrum
|
|||||||
});
|
});
|
||||||
renderThread.Start();
|
renderThread.Start();
|
||||||
|
|
||||||
mainConfig.LoadConfig();
|
Directory.CreateDirectory("bin");
|
||||||
mainConfig.StartFileWatcher();
|
Directory.CreateDirectory("bin/dataset");
|
||||||
|
Directory.CreateDirectory("bin/dataset/images");
|
||||||
|
Directory.CreateDirectory("bin/dataset/labels");
|
||||||
|
Directory.CreateDirectory("bin/logs");
|
||||||
|
Directory.CreateDirectory("bin/configs");
|
||||||
|
|
||||||
var screenSize = SystemHelper.GetPrimaryScreenSize();
|
var screenSize = SystemHelper.GetPrimaryScreenSize();
|
||||||
|
mainConfig.LoadConfig();
|
||||||
|
mainConfig.StartFileWatcher();
|
||||||
|
|
||||||
if (mainConfig.Data.ShowDetectionWindow)
|
if (mainConfig.Data.ShowDetectionWindow)
|
||||||
{
|
{
|
||||||
@@ -43,13 +49,6 @@ namespace Spectrum
|
|||||||
AutoLabeling.StartLabeling();
|
AutoLabeling.StartLabeling();
|
||||||
}
|
}
|
||||||
|
|
||||||
Directory.CreateDirectory("bin");
|
|
||||||
Directory.CreateDirectory("bin/dataset");
|
|
||||||
Directory.CreateDirectory("bin/dataset/images");
|
|
||||||
Directory.CreateDirectory("bin/dataset/labels");
|
|
||||||
Directory.CreateDirectory("bin/logs");
|
|
||||||
Directory.CreateDirectory("bin/configs");
|
|
||||||
|
|
||||||
if (colorConfig.Data.Colors.Count == 0)
|
if (colorConfig.Data.Colors.Count == 0)
|
||||||
{
|
{
|
||||||
colorConfig.Data.Colors.Add(new ColorInfo("Arsenal [Magenta]", new Scalar(150, 255, 229), new Scalar(150, 255, 229)));
|
colorConfig.Data.Colors.Add(new ColorInfo("Arsenal [Magenta]", new Scalar(150, 255, 229), new Scalar(150, 255, 229)));
|
||||||
|
|||||||
Reference in New Issue
Block a user