Run black on ipynb (#80)

This commit is contained in:
Matthew Tancik authored and GitHub committed 2022-05-18 09:36:38 -07:00
1 parent fb440fedf3
commit 443fdef553
6 files changed
+69 -76

No files matched your search

+5 -5
View File
@@ -26,7 +26,7 @@
"source": [
"import torch\n",
"import mediapy as media\n",
"from mattport.nerf.field_modules import encoding\n"
"from mattport.nerf.field_modules import encoding"
]
},
{
@@ -114,7 +114,7 @@
"print(\"Input Values:\")\n",
"media.show_images(torch.moveaxis(grid, 2, 0), cmap=\"plasma\", border=True)\n",
"print(\"Encoded Values:\")\n",
"media.show_images(torch.moveaxis(encoded_values, 2, 0), cmap=\"plasma\", border=True)\n"
"media.show_images(torch.moveaxis(encoded_values, 2, 0), cmap=\"plasma\", border=True)"
]
},
{
@@ -194,7 +194,7 @@
"print(\"Input Values:\")\n",
"media.show_images(torch.moveaxis(grid, 2, 0), cmap=\"plasma\", border=True)\n",
"print(\"Encoded Values:\")\n",
"media.show_images(torch.moveaxis(encoded_values, 2, 0), cmap=\"plasma\", border=True)\n"
"media.show_images(torch.moveaxis(encoded_values, 2, 0), cmap=\"plasma\", border=True)"
]
},
{
@@ -296,7 +296,7 @@
"encoded_images = torch.moveaxis(encoded_images, 2, 0)\n",
"encoded_images -= torch.min(encoded_images)\n",
"encoded_images /= torch.max(encoded_images)\n",
"media.show_images(encoded_images.detach().numpy(), cmap=\"plasma\", border=True)\n"
"media.show_images(encoded_images.detach().numpy(), cmap=\"plasma\", border=True)"
]
},
{
@@ -418,7 +418,7 @@
"\n",
"for level in range(levels):\n",
" print(f\"Level: {level+1}\")\n",
" media.show_images(encoded_values[level**2 : (level + 1) ** 2, ...], cmap=\"plasma\", border=True)\n"
" media.show_images(encoded_values[level**2 : (level + 1) ** 2, ...], cmap=\"plasma\", border=True)"
]
},
{