Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 20 additions & 3 deletions colab/demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,25 @@
" * Feel free to create an issue on our [GitHub repo](https://github.com/nerfstudio-project/nerfstudio).\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# Sequence of installations required for notebook to run with Python 3.10\n",
"!pip install colab-xterm\n",
"%reload_ext colabxterm\n",
"!apt-get update -y\n",
"!apt-get install python3.10 python3.10-distutils\n",
"!update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10\n",
"!update-alternatives --config python3\n",
"!apt-get install python3-pip\n",
"!python3 -m pip install --upgrade pip --user\n",
"!sudo apt remove python3-blinker\n",
"!pip install --force-reinstall \"numpy<2.0.0\""
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -253,13 +272,11 @@
"# @title # Render Video { vertical-output: true }\n",
"# @markdown <h3>Export the camera path from within the viewer, then run this cell.</h3>\n",
"# @markdown <h5>The rendered video should be at renders/output.mp4!</h5>\n",
"\n",
"from IPython.core.display import HTML, display\n",
"\n",
"base_dir = \"/content/outputs/unnamed/nerfacto/\"\n",
"training_run_dir = base_dir + os.listdir(base_dir)[0]\n",
"\n",
"from IPython.core.display import HTML, display\n",
"\n",
"display(HTML(\"<h3>Upload the camera path JSON.</h3>\"))\n",
"%cd $training_run_dir\n",
"uploaded = files.upload()\n",
Expand Down