diff --git a/colab/demo.ipynb b/colab/demo.ipynb index d9f5ed9826..bbb3557ab3 100644 --- a/colab/demo.ipynb +++ b/colab/demo.ipynb @@ -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

Export the camera path from within the viewer, then run this cell.

\n", "# @markdown
The rendered video should be at renders/output.mp4!
\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(\"

Upload the camera path JSON.

\"))\n", "%cd $training_run_dir\n", "uploaded = files.upload()\n",