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 6, 2024
1 parent 18eee5d commit f384232
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion generation/2d_vqgan/2d_vqgan_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@
"val_samples = np.linspace(val_interval, max_epochs, int(max_epochs / val_interval))\n",
"num_inters = min(len(intermediary_images), 4)\n",
"fig, ax = plt.subplots(nrows=num_inters, ncols=1, sharey=True)\n",
"ax=ensure_tuple(ax)\n",
"ax = ensure_tuple(ax)\n",
"\n",
"ax = ensure_tuple(ax)\n",
"for image_n in range(num_inters):\n",
Expand Down
2 changes: 1 addition & 1 deletion generation/2d_vqvae/2d_vqvae_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@
"# Plot every evaluation as a new line and example as columns\n",
"val_samples = np.linspace(val_interval, max_epochs, int(max_epochs / val_interval))\n",
"fig, ax = plt.subplots(nrows=len(val_samples), ncols=1, sharey=True)\n",
"ax=ensure_tuple(ax)\n",
"ax = ensure_tuple(ax)\n",
"fig.set_size_inches(18.5, 30.5)\n",
"for image_n in range(len(val_samples)):\n",
" reconstructions = torch.reshape(intermediary_images[image_n], (64 * n_example_images, 64)).T\n",
Expand Down

0 comments on commit f384232

Please sign in to comment.