4
0
mirror of https://github.com/nerfstudio-project/nerfstudio.git synced 2026-11-11 02:24:38 +08:00

all colab changes

This commit is contained in:
Aaryan Chandna 2025-06-15 19:52:50 -07:00
parent 5003d0e271
commit 08b2dd71d0

View File

@ -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,
@ -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",