dotnet / machinelearning

ML.NET is an open source and cross-platform machine learning framework for .NET.
https://dot.net/ml
MIT License
9.02k stars 1.88k forks source link

[Image Classification API] Bottleneck phase values always computed #4452

Closed luisquintanilla closed 4 years ago

luisquintanilla commented 4 years ago

System information

Issue

Setting ReuseTrainSetBottleneckCachedValues and ReuseValidationSetBottleneckCachedValues parameters in ImageClassificationTrainer.Options to true, does the bottleneck computation on subsequent runs. I believe once the bottleneck values are computed on the first run, by setting both of those parameters to true, bottleneck computation should be skipped and the model should go directly into the training phase. Is this no longer the case?

Source code / logs

See sample source code at this link: https://github.com/luisquintanilla/machinelearning-samples/blob/33f87d226f350fb36552dd8b1cee6a7c3f12da89/samples/csharp/getting-started/DeepLearning_ImageClassification_Binary/DeepLearning_ImageClassification_Binary/Program.cs#L53

codemzs commented 4 years ago

hi Luis, you need to specific a workspace path so that bottleneck files are not deleted else bottleneck files are created in a temporary folder that is deleted after training run.