From a73ccebb52f6fdf84eb921cee6f16d2cba5bd3ed Mon Sep 17 00:00:00 2001 From: JordyForNow Date: Tue, 14 Jan 2020 15:50:12 +0100 Subject: [PATCH] Emptied sandbox --- Sandbox/Program.cs | 76 +--------------------------------------------- 1 file changed, 1 insertion(+), 75 deletions(-) diff --git a/Sandbox/Program.cs b/Sandbox/Program.cs index 405cb50..2740364 100644 --- a/Sandbox/Program.cs +++ b/Sandbox/Program.cs @@ -8,81 +8,7 @@ class Program { static void Main(string[] args) { - NetworkContainer container = new NetworkContainer - { - verbose = true - }; - - ImageNetworkTrainSettings trainSettings = new ImageNetworkTrainSettings - { - correctInputDirectory = @"../../../CorrectTestData", - incorrectInputDirectory = @"../../../IncorrectTestData", - - outputDirectory = @"../../../DataOut", - outputName = "ModelTwo", - - sampleCount = 10 - }; - - ImageNetworkTrainController.PrepareData(ref container, ref trainSettings); - ImageNetworkTrainController.PrepareNetwork(ref container, ref trainSettings); - ImageNetworkTrainController.Train(ref container, ref trainSettings); - - ImageNetworkPredictSettings predictSettings = new ImageNetworkPredictSettings - { - trainedNetwork = @"../../../DataOut/ModelTwo.eg", - predictData = @"../../../testCor/0-2.csv", - - networkInputSize = 10 - }; - - ImageNetworkPredictController.PreparePredictor(ref container, ref predictSettings); - Console.WriteLine(ImageNetworkPredictController.Predict(ref container, ref predictSettings)); + // Main program. } } } - -//using System; -//using System.IO; -//using MotionRecognition; - -//namespace Sandbox -//{ -// class Program -// { -// static void Main(string[] args) -// { -// NetworkContainer container = new NetworkContainer -// { -// verbose = true -// }; - -// CountNetworkTrainSettings trainSettings = new CountNetworkTrainSettings -// { -// correctInputDirectory = @"../../../CorrectTestData", -// incorrectInputDirectory = @"../../../IncorrectTestData", - -// outputDirectory = @"../../../DataOut", -// outputName = "ModelOne", - -// sampleCount = 10 -// }; - -// CountNetworkTrainController.prepareData(ref trainSettings, ref container); -// CountNetworkTrainController.prepareNetwork(ref trainSettings, ref container); -// CountNetworkTrainController.train(ref trainSettings, ref container); - -// CountNetworkPredictSettings predictSettings = new CountNetworkPredictSettings -// { -// trainedNetwork = @"../../../DataOut/ModelOne.eg", -// predictData = @"../../../TestCor/0-2.csv", - -// networkInputSize = 10 -// }; - -// CountNetworkPredictController.preparePredictor(ref predictSettings, ref container); -// Console.WriteLine(CountNetworkPredictController.predict(ref predictSettings, ref container)); -// } -// } -//} -