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 7ad780b commit ba976a5
Showing 1 changed file with 1 addition and 1 deletion.
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",
"for image_n in range(num_inters):\n",
" reconstructions = torch.reshape(intermediary_images[image_n], (64 * n_example_images, 64)).T\n",
" ax[image_n].imshow(reconstructions.cpu(), cmap=\"gray\")\n",
Expand Down

0 comments on commit ba976a5

Please sign in to comment.