Skip to content

Commit

Permalink
Merge pull request #60 from openvinotoolkit/update-notebook-007-to-ha…
Browse files Browse the repository at this point in the history
…ndle-failed-training

Handle failed training jobs in notebook 007
  • Loading branch information
ljcornel authored Oct 6, 2022
2 parents 755ffe0 + b9ca0bb commit efcc0ec
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion notebooks/007_train_project.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,16 @@
"outputs": [],
"source": [
"model = model_client.get_model_for_job(job)\n",
"print(model.overview)"
"\n",
"if model is not None:\n",
" print(model.overview)\n",
"else:\n",
" print(\n",
" f\"Job '{job.name}' completed with status '{job.status.state}: \"\n",
" f\"{job.status.message}', but did not result in a trained model. Most likely \"\n",
" f\"the model training has failed, you could try restarting the training to \"\n",
" f\"see if the problem persists.\"\n",
" )"
]
},
{
Expand Down

0 comments on commit efcc0ec

Please sign in to comment.