Skip to content

Commit

Permalink
fixing colmap installation to use apt-get since gdown on the URL unab…
Browse files Browse the repository at this point in the history
…le to download colmap (nerfstudio-project#2823)

fixing colmap installation to use apt-get since gdown on the URL was failing
  • Loading branch information
AntonioMacaronio authored Jan 25, 2024
1 parent 67b1005 commit 1aba4ea
Showing 1 changed file with 8 additions and 29 deletions.
37 changes: 8 additions & 29 deletions colab/demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
{
"cell_type": "markdown",
"metadata": {
"id": "view-in-github",
"colab_type": "text"
"colab_type": "text",
"id": "view-in-github"
},
"source": [
"<a href=\"https://colab.research.google.com/github/nerfstudio-project/nerfstudio/blob/alex%2Fcolab-logo-fix/colab/demo.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
Expand Down Expand Up @@ -65,8 +65,8 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "9oyLHl8QfYwP",
"cellView": "form"
"cellView": "form",
"id": "9oyLHl8QfYwP"
},
"outputs": [],
"source": [
Expand All @@ -83,28 +83,7 @@
"\n",
"# Installing COLMAP\n",
"%cd /content/\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",
"!apt-get install colmap\n",
"\n",
"# Install nerfstudio\n",
"%cd /content/\n",
Expand Down Expand Up @@ -350,8 +329,8 @@
"metadata": {
"accelerator": "GPU",
"colab": {
"provenance": [],
"include_colab_link": true
"include_colab_link": true,
"provenance": []
},
"gpuClass": "standard",
"kernelspec": {
Expand All @@ -371,4 +350,4 @@
},
"nbformat": 4,
"nbformat_minor": 0
}
}

0 comments on commit 1aba4ea

Please sign in to comment.