Skip to content

Cancellation in Image Classification (fixes #4632) #4650

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Jan 17, 2020
Prev Previous commit
Next Next commit
Removed checkpoints from unnecessary places
  • Loading branch information
antoniovs1029 committed Jan 14, 2020
commit eef112cbedf1d41a16fc16a57c96374e841f8a76
3 changes: 0 additions & 3 deletions src/Microsoft.ML.Vision/ImageClassificationTrainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -647,8 +647,6 @@ private protected override MulticlassPredictionTransformer<ImageClassificationMo

private protected override ImageClassificationModelParameters TrainModelCore(TrainContext trainContext)
{
Host.CheckAlive();

// Workspace directory is cleaned after training run. However, the pipeline can be re-used by calling
// fit() again after transform(), in which case we must ensure workspace directory exists. This scenario
// is typical in the case of cross-validation.
Expand Down Expand Up @@ -908,7 +906,6 @@ private void CreateFeaturizedCacheFile(string cacheFilePath, int examples, int f
private void TrainAndEvaluateClassificationLayer(string trainBottleneckFilePath,
string validationSetBottleneckFilePath)
{
Host.CheckAlive();
Contracts.Assert(validationSetBottleneckFilePath == null ||
(File.Exists(validationSetBottleneckFilePath + "_labels.bin") &&
File.Exists(validationSetBottleneckFilePath + "_features.bin")));
Expand Down