Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 4, 2024
1 parent e096899 commit 4f37e26
Show file tree
Hide file tree
Showing 2 changed files with 1,051 additions and 1,048 deletions.
7 changes: 5 additions & 2 deletions generation/2d_ddpm/2d_ddpm_tutorial_ignite.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -781,11 +781,14 @@
" train_handlers=train_handlers,\n",
")\n",
"\n",
"out_func=from_engine(\"loss\")\n",
"out_func = from_engine(\"loss\")\n",
"\n",
"\n",
"def _output_transform(data):\n",
" losses=out_func(data)\n",
" losses = out_func(data)\n",
" return losses[0]\n",
"\n",
"\n",
"ProgressBar(\n",
" persist=True, bar_format=\"[{n_fmt}/{total_fmt}] {percentage:3.0f}%{postfix} [{elapsed}<{remaining}]\"\n",
").attach(trainer, output_transform=_output_transform)\n",
Expand Down
Loading

0 comments on commit 4f37e26

Please sign in to comment.