File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ static void Main(string[] args)
1414 var projectDirectory = Path . GetFullPath ( Path . Combine ( AppContext . BaseDirectory , "../../../" ) ) ;
1515 var workspaceRelativePath = Path . Combine ( projectDirectory , "Workspace" ) ;
1616 var saveModelPath = Path . Combine ( projectDirectory , "Models" ) ;
17- var assetsPath = @"D :\NsfwSpy\Images" ;
17+ var assetsPath = @"E :\NsfwSpy\Images" ;
1818
1919 var mlContext = new MLContext ( ) ;
2020
@@ -61,6 +61,9 @@ static void Main(string[] args)
6161
6262 var trainedModel = trainingPipeline . Fit ( trainSet ) ;
6363
64+ if ( ! Directory . Exists ( saveModelPath ) )
65+ Directory . CreateDirectory ( saveModelPath ) ;
66+
6467 saveModelPath = Path . Combine ( saveModelPath , "NsfwSpyModel.zip" ) ;
6568 mlContext . Model . Save ( trainedModel , trainSet . Schema , saveModelPath ) ;
6669
You can’t perform that action at this time.
0 commit comments