|
61 | 61 | " * Feel free to create an issue on our [GitHub repo](https://github.com/nerfstudio-project/nerfstudio).\n" |
62 | 62 | ] |
63 | 63 | }, |
| 64 | + { |
| 65 | + "cell_type": "code", |
| 66 | + "execution_count": null, |
| 67 | + "metadata": {}, |
| 68 | + "outputs": [], |
| 69 | + "source": [ |
| 70 | + "# Sequence of installations required for notebook to run with Python 3.10\n", |
| 71 | + "!pip install colab-xterm\n", |
| 72 | + "%reload_ext colabxterm\n", |
| 73 | + "!apt-get update -y\n", |
| 74 | + "!apt-get install python3.10 python3.10-distutils\n", |
| 75 | + "!update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10\n", |
| 76 | + "!update-alternatives --config python3\n", |
| 77 | + "!apt-get install python3-pip\n", |
| 78 | + "!python3 -m pip install --upgrade pip --user\n", |
| 79 | + "!sudo apt remove python3-blinker\n", |
| 80 | + "!pip install --force-reinstall \"numpy<2.0.0\"" |
| 81 | + ] |
| 82 | + }, |
64 | 83 | { |
65 | 84 | "cell_type": "code", |
66 | 85 | "execution_count": null, |
|
253 | 272 | "# @title # Render Video { vertical-output: true }\n", |
254 | 273 | "# @markdown <h3>Export the camera path from within the viewer, then run this cell.</h3>\n", |
255 | 274 | "# @markdown <h5>The rendered video should be at renders/output.mp4!</h5>\n", |
256 | | - "\n", |
| 275 | + "from IPython.core.display import HTML, display\n", |
257 | 276 | "\n", |
258 | 277 | "base_dir = \"/content/outputs/unnamed/nerfacto/\"\n", |
259 | 278 | "training_run_dir = base_dir + os.listdir(base_dir)[0]\n", |
260 | 279 | "\n", |
261 | | - "from IPython.core.display import HTML, display\n", |
262 | | - "\n", |
263 | 280 | "display(HTML(\"<h3>Upload the camera path JSON.</h3>\"))\n", |
264 | 281 | "%cd $training_run_dir\n", |
265 | 282 | "uploaded = files.upload()\n", |
|
0 commit comments