Skip to content

Commit 08b2dd7

Browse files
author
Aaryan Chandna
committed
all colab changes
1 parent 5003d0e commit 08b2dd7

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

colab/demo.ipynb

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,25 @@
6161
" * Feel free to create an issue on our [GitHub repo](https://github.com/nerfstudio-project/nerfstudio).\n"
6262
]
6363
},
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+
},
6483
{
6584
"cell_type": "code",
6685
"execution_count": null,
@@ -253,13 +272,11 @@
253272
"# @title # Render Video { vertical-output: true }\n",
254273
"# @markdown <h3>Export the camera path from within the viewer, then run this cell.</h3>\n",
255274
"# @markdown <h5>The rendered video should be at renders/output.mp4!</h5>\n",
256-
"\n",
275+
"from IPython.core.display import HTML, display\n",
257276
"\n",
258277
"base_dir = \"/content/outputs/unnamed/nerfacto/\"\n",
259278
"training_run_dir = base_dir + os.listdir(base_dir)[0]\n",
260279
"\n",
261-
"from IPython.core.display import HTML, display\n",
262-
"\n",
263280
"display(HTML(\"<h3>Upload the camera path JSON.</h3>\"))\n",
264281
"%cd $training_run_dir\n",
265282
"uploaded = files.upload()\n",

0 commit comments

Comments
 (0)