Skip to content

Commit

Permalink
Emptied sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
JordyForNow committed Jan 14, 2020
1 parent 9da21c0 commit a73cceb
Showing 1 changed file with 1 addition and 75 deletions.
76 changes: 1 addition & 75 deletions Sandbox/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
// }
// }
//}

0 comments on commit a73cceb

Please sign in to comment.