mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-14 20:03:49 +08:00
Updated Colab to Python3.9 and added colmap install speedup. (#1587)
This commit is contained in:
1 parent
44ad94073d
commit
e25c39e1c0
1 file changed
+29
-41
+29
-41
@@ -7,7 +7,7 @@
|
||||
"colab_type": "text"
|
||||
},
|
||||
"source": [
|
||||
"<a href=\"https://colab.research.google.com/github/nerfstudio-project/nerfstudio/blob/alex%2Fcolab_tinycuda_update/colab/demo.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
|
||||
"<a href=\"https://colab.research.google.com/github/nerfstudio-project/nerfstudio/blob/alex%2Fcolab_py3.9/colab/demo.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -65,43 +65,12 @@
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {
|
||||
"colab": {
|
||||
"base_uri": "https://localhost:8080/"
|
||||
},
|
||||
"id": "RGr33zHaHak0",
|
||||
"outputId": "6ad38334-22d2-4675-bffb-0bae91b17577"
|
||||
},
|
||||
"outputs": [
|
||||
{
|
||||
"output_type": "stream",
|
||||
"name": "stdout",
|
||||
"text": [
|
||||
"⏬ Downloading https://github.com/jaimergp/miniforge/releases/latest/download/Mambaforge-colab-Linux-x86_64.sh...\n",
|
||||
"📦 Installing...\n",
|
||||
"📌 Adjusting configuration...\n",
|
||||
"🩹 Patching environment...\n",
|
||||
"⏲ Done in 0:00:18\n",
|
||||
"🔁 Restarting kernel...\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"#@markdown <h1>Install Conda (requires runtime restart)</h1>\n",
|
||||
"\n",
|
||||
"!pip install -q condacolab\n",
|
||||
"import condacolab\n",
|
||||
"condacolab.install()"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {
|
||||
"id": "9oyLHl8QfYwP"
|
||||
"id": "9oyLHl8QfYwP",
|
||||
"cellView": "form"
|
||||
},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"#@markdown <h1>Install Nerfstudio and Dependencies (~15 min)</h1>\n",
|
||||
"#@markdown <h1>Install Nerfstudio and Dependencies (~8 min)</h1>\n",
|
||||
"\n",
|
||||
"%cd /content/\n",
|
||||
"!pip install --upgrade pip\n",
|
||||
@@ -109,18 +78,37 @@
|
||||
"\n",
|
||||
"# Installing TinyCuda\n",
|
||||
"%cd /content/\n",
|
||||
"!gdown \"https://drive.google.com/u/1/uc?id=12RL_NVgE9WGvr_fEsXEiuaJ1QESvQCPl&confirm=t\" \n",
|
||||
"!pip install tinycudann-1.7-cp38-cp38-linux_x86_64.whl\n",
|
||||
"!gdown \"https://drive.google.com/u/1/uc?id=1LlL2ofrViALsqE789MFGZeJyxkNu84cT&confirm=t\" \n",
|
||||
"!pip install tinycudann-1.7-cp39-cp39-linux_x86_64.whl\n",
|
||||
"\n",
|
||||
"# Installing COLMAP\n",
|
||||
"%cd /content/\n",
|
||||
"!conda install -c conda-forge colmap\n",
|
||||
"!gdown \"https://drive.google.com/u/0/uc?id=15WngFRNar_b8CaPR5R-hvQ3eAnlyk_SL&confirm=t\"\n",
|
||||
"!sudo apt-get install \\\n",
|
||||
" build-essential \\\n",
|
||||
" libboost-program-options-dev \\\n",
|
||||
" libboost-filesystem-dev \\\n",
|
||||
" libboost-graph-dev \\\n",
|
||||
" libboost-system-dev \\\n",
|
||||
" libboost-test-dev \\\n",
|
||||
" libeigen3-dev \\\n",
|
||||
" libflann-dev \\\n",
|
||||
" libfreeimage-dev \\\n",
|
||||
" libmetis-dev \\\n",
|
||||
" libgoogle-glog-dev \\\n",
|
||||
" libgflags-dev \\\n",
|
||||
" libsqlite3-dev \\\n",
|
||||
" libglew-dev \\\n",
|
||||
" qtbase5-dev \\\n",
|
||||
" libqt5opengl5-dev \\\n",
|
||||
" libcgal-dev \\\n",
|
||||
" libceres-dev\n",
|
||||
"!unzip local.zip -d /usr/\n",
|
||||
"!chmod +x /usr/local/bin/colmap\n",
|
||||
"\n",
|
||||
"# Install nerfstudio\n",
|
||||
"%cd /content/\n",
|
||||
"# !pip install nerfstudio\n",
|
||||
"!pip install git+https://github.com/nerfstudio-project/nerfstudio.git\n",
|
||||
"!conda remove --force qt-main"
|
||||
"!pip install git+https://github.com/nerfstudio-project/nerfstudio.git"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user