mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-07 00:09:14 +08:00
Update colab links to use repo colab (#866)
This commit is contained in:
1 parent
b088e230f6
commit
e3e766c5ca
5 files changed
+228
-170
No files matched your search
@@ -46,7 +46,7 @@
|
|||||||
<a href="https://viewer.nerf.studio/">
|
<a href="https://viewer.nerf.studio/">
|
||||||
<img alt="viewer" src="https://user-images.githubusercontent.com/3310961/194022636-a9efb85a-14fd-4002-8ed4-4ca434898b5a.png" width="150">
|
<img alt="viewer" src="https://user-images.githubusercontent.com/3310961/194022636-a9efb85a-14fd-4002-8ed4-4ca434898b5a.png" width="150">
|
||||||
</a>
|
</a>
|
||||||
<a href="https://colab.research.google.com/drive/13ZUOVo9N4fjZcoS_R9N0BsYa2kV6ywuq?usp=sharing">
|
<a href="https://colab.research.google.com/github/nerfstudio-project/nerfstudio/blob/main/colab/demo.ipynb">
|
||||||
<img alt="colab" src="https://raw.githubusercontent.com/nerfstudio-project/nerfstudio/main/docs/_static/imgs/readme_colab.png" width="150">
|
<img alt="colab" src="https://raw.githubusercontent.com/nerfstudio-project/nerfstudio/main/docs/_static/imgs/readme_colab.png" width="150">
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
+172
-165
@@ -1,35 +1,20 @@
|
|||||||
{
|
{
|
||||||
"nbformat": 4,
|
|
||||||
"nbformat_minor": 0,
|
|
||||||
"metadata": {
|
|
||||||
"colab": {
|
|
||||||
"provenance": [],
|
|
||||||
"collapsed_sections": [],
|
|
||||||
"include_colab_link": true
|
|
||||||
},
|
|
||||||
"kernelspec": {
|
|
||||||
"name": "python3",
|
|
||||||
"display_name": "Python 3"
|
|
||||||
},
|
|
||||||
"language_info": {
|
|
||||||
"name": "python"
|
|
||||||
},
|
|
||||||
"accelerator": "GPU",
|
|
||||||
"gpuClass": "standard"
|
|
||||||
},
|
|
||||||
"cells": [
|
"cells": [
|
||||||
{
|
{
|
||||||
"cell_type": "markdown",
|
"cell_type": "markdown",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"id": "view-in-github",
|
"colab_type": "text",
|
||||||
"colab_type": "text"
|
"id": "view-in-github"
|
||||||
},
|
},
|
||||||
"source": [
|
"source": [
|
||||||
"<a href=\"https://colab.research.google.com/github/nerfstudio-project/nerfstudio/tree/main/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/main/colab/demo.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "markdown",
|
"cell_type": "markdown",
|
||||||
|
"metadata": {
|
||||||
|
"id": "SiiXJ7K_fePG"
|
||||||
|
},
|
||||||
"source": [
|
"source": [
|
||||||
"<p align=\"center\">\n",
|
"<p align=\"center\">\n",
|
||||||
" <picture>\n",
|
" <picture>\n",
|
||||||
@@ -50,13 +35,13 @@
|
|||||||
"\\\\\n",
|
"\\\\\n",
|
||||||
"\n",
|
"\n",
|
||||||
"Credit to [NeX](https://nex-mpi.github.io/) for Google Colab format."
|
"Credit to [NeX](https://nex-mpi.github.io/) for Google Colab format."
|
||||||
],
|
]
|
||||||
"metadata": {
|
|
||||||
"id": "SiiXJ7K_fePG"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "markdown",
|
"cell_type": "markdown",
|
||||||
|
"metadata": {
|
||||||
|
"id": "Yyx5h6kz5ga7"
|
||||||
|
},
|
||||||
"source": [
|
"source": [
|
||||||
"## Frequently Asked Questions\n",
|
"## Frequently Asked Questions\n",
|
||||||
"\n",
|
"\n",
|
||||||
@@ -70,32 +55,22 @@
|
|||||||
"\n",
|
"\n",
|
||||||
"* **Other problems?**\n",
|
"* **Other problems?**\n",
|
||||||
" * Feel free to create an issue on our [GitHub repo](https://github.com/nerfstudio-project/nerfstudio).\n"
|
" * Feel free to create an issue on our [GitHub repo](https://github.com/nerfstudio-project/nerfstudio).\n"
|
||||||
],
|
]
|
||||||
"metadata": {
|
|
||||||
"id": "Yyx5h6kz5ga7"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"source": [
|
"execution_count": null,
|
||||||
"#@title # Install Conda (requires runtime restart) { vertical-output: true, display-mode: \"form\" }\n",
|
|
||||||
"\n",
|
|
||||||
"!pip install -q condacolab\n",
|
|
||||||
"import condacolab\n",
|
|
||||||
"condacolab.install()"
|
|
||||||
],
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"id": "RGr33zHaHak0",
|
|
||||||
"colab": {
|
"colab": {
|
||||||
"base_uri": "https://localhost:8080/"
|
"base_uri": "https://localhost:8080/"
|
||||||
},
|
},
|
||||||
|
"id": "RGr33zHaHak0",
|
||||||
"outputId": "86df0e7f-35fe-4b79-8c0e-83692d42b124"
|
"outputId": "86df0e7f-35fe-4b79-8c0e-83692d42b124"
|
||||||
},
|
},
|
||||||
"execution_count": null,
|
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
{
|
||||||
"output_type": "stream",
|
|
||||||
"name": "stdout",
|
"name": "stdout",
|
||||||
|
"output_type": "stream",
|
||||||
"text": [
|
"text": [
|
||||||
"⏬ Downloading https://github.com/jaimergp/miniforge/releases/latest/download/Mambaforge-colab-Linux-x86_64.sh...\n",
|
"⏬ Downloading https://github.com/jaimergp/miniforge/releases/latest/download/Mambaforge-colab-Linux-x86_64.sh...\n",
|
||||||
"📦 Installing...\n",
|
"📦 Installing...\n",
|
||||||
@@ -105,10 +80,22 @@
|
|||||||
"🔁 Restarting kernel...\n"
|
"🔁 Restarting kernel...\n"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
"source": [
|
||||||
|
"#@title # Install Conda (requires runtime restart) { vertical-output: true, display-mode: \"form\" }\n",
|
||||||
|
"\n",
|
||||||
|
"!pip install -q condacolab\n",
|
||||||
|
"import condacolab\n",
|
||||||
|
"condacolab.install()"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
|
"execution_count": null,
|
||||||
|
"metadata": {
|
||||||
|
"id": "9oyLHl8QfYwP"
|
||||||
|
},
|
||||||
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"#@title # Install Nerfstudio and Dependencies (~10 min) { vertical-output: true, display-mode: \"form\" }\n",
|
"#@title # Install Nerfstudio and Dependencies (~10 min) { vertical-output: true, display-mode: \"form\" }\n",
|
||||||
"\n",
|
"\n",
|
||||||
@@ -128,15 +115,33 @@
|
|||||||
"# Install nerfstudio\n",
|
"# Install nerfstudio\n",
|
||||||
"%cd /content/\n",
|
"%cd /content/\n",
|
||||||
"!pip install nerfstudio"
|
"!pip install nerfstudio"
|
||||||
],
|
]
|
||||||
"metadata": {
|
|
||||||
"id": "9oyLHl8QfYwP"
|
|
||||||
},
|
|
||||||
"execution_count": null,
|
|
||||||
"outputs": []
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
|
"execution_count": null,
|
||||||
|
"metadata": {
|
||||||
|
"cellView": "form",
|
||||||
|
"colab": {
|
||||||
|
"base_uri": "https://localhost:8080/"
|
||||||
|
},
|
||||||
|
"id": "msVLprI4gRA4",
|
||||||
|
"outputId": "c5eb5997-37d9-4c9f-a3d2-7b67f4b6d346"
|
||||||
|
},
|
||||||
|
"outputs": [
|
||||||
|
{
|
||||||
|
"name": "stdout",
|
||||||
|
"output_type": "stream",
|
||||||
|
"text": [
|
||||||
|
"/content\n",
|
||||||
|
"Downloading...\n",
|
||||||
|
"From: https://drive.google.com/uc?id=1dmjWGXlJnUxwosN6MVooCDQe970PkD-1\n",
|
||||||
|
"To: /content/data/nerfstudio/poster.zip\n",
|
||||||
|
"100% 750M/750M [00:03<00:00, 218MB/s]\n",
|
||||||
|
"\u001b[0m"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"source": [
|
"source": [
|
||||||
"#@markdown <h1> Downloading Data</h1>\n",
|
"#@markdown <h1> Downloading Data</h1>\n",
|
||||||
"#@markdown <h3>Pick the preset scene or upload your own images/video</h3>\n",
|
"#@markdown <h3>Pick the preset scene or upload your own images/video</h3>\n",
|
||||||
@@ -175,33 +180,31 @@
|
|||||||
" !ns-process-data video --data $video_path --output-dir /content/data/nerfstudio/custom_data/\n",
|
" !ns-process-data video --data $video_path --output-dir /content/data/nerfstudio/custom_data/\n",
|
||||||
"\n",
|
"\n",
|
||||||
" scene = \"custom_data\""
|
" scene = \"custom_data\""
|
||||||
],
|
|
||||||
"metadata": {
|
|
||||||
"id": "msVLprI4gRA4",
|
|
||||||
"cellView": "form",
|
|
||||||
"colab": {
|
|
||||||
"base_uri": "https://localhost:8080/"
|
|
||||||
},
|
|
||||||
"outputId": "c5eb5997-37d9-4c9f-a3d2-7b67f4b6d346"
|
|
||||||
},
|
|
||||||
"execution_count": null,
|
|
||||||
"outputs": [
|
|
||||||
{
|
|
||||||
"output_type": "stream",
|
|
||||||
"name": "stdout",
|
|
||||||
"text": [
|
|
||||||
"/content\n",
|
|
||||||
"Downloading...\n",
|
|
||||||
"From: https://drive.google.com/uc?id=1dmjWGXlJnUxwosN6MVooCDQe970PkD-1\n",
|
|
||||||
"To: /content/data/nerfstudio/poster.zip\n",
|
|
||||||
"100% 750M/750M [00:03<00:00, 218MB/s]\n",
|
|
||||||
"\u001b[0m"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
|
"execution_count": null,
|
||||||
|
"metadata": {
|
||||||
|
"cellView": "form",
|
||||||
|
"colab": {
|
||||||
|
"base_uri": "https://localhost:8080/"
|
||||||
|
},
|
||||||
|
"id": "Eju-3p2hjcB2",
|
||||||
|
"outputId": "c9ff081c-2436-44c6-d292-f22dc3ef78b5"
|
||||||
|
},
|
||||||
|
"outputs": [
|
||||||
|
{
|
||||||
|
"name": "stdout",
|
||||||
|
"output_type": "stream",
|
||||||
|
"text": [
|
||||||
|
"/content\n",
|
||||||
|
"\u001b[K\u001b[?25h/tools/node/bin/lt -> /tools/node/lib/node_modules/localtunnel/bin/lt.js\n",
|
||||||
|
"+ localtunnel@2.0.2\n",
|
||||||
|
"added 22 packages from 22 contributors in 1.536s\n"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"source": [
|
"source": [
|
||||||
"#@title # Set Up Viewer\n",
|
"#@title # Set Up Viewer\n",
|
||||||
"\n",
|
"\n",
|
||||||
@@ -214,31 +217,51 @@
|
|||||||
"# Tunnel port 7007, the default for\n",
|
"# Tunnel port 7007, the default for\n",
|
||||||
"!rm url.txt 2> /dev/null\n",
|
"!rm url.txt 2> /dev/null\n",
|
||||||
"get_ipython().system_raw('lt --port 7007 >> url.txt 2>&1 &')"
|
"get_ipython().system_raw('lt --port 7007 >> url.txt 2>&1 &')"
|
||||||
],
|
|
||||||
"metadata": {
|
|
||||||
"id": "Eju-3p2hjcB2",
|
|
||||||
"cellView": "form",
|
|
||||||
"colab": {
|
|
||||||
"base_uri": "https://localhost:8080/"
|
|
||||||
},
|
|
||||||
"outputId": "c9ff081c-2436-44c6-d292-f22dc3ef78b5"
|
|
||||||
},
|
|
||||||
"execution_count": null,
|
|
||||||
"outputs": [
|
|
||||||
{
|
|
||||||
"output_type": "stream",
|
|
||||||
"name": "stdout",
|
|
||||||
"text": [
|
|
||||||
"/content\n",
|
|
||||||
"\u001b[K\u001b[?25h/tools/node/bin/lt -> /tools/node/lib/node_modules/localtunnel/bin/lt.js\n",
|
|
||||||
"+ localtunnel@2.0.2\n",
|
|
||||||
"added 22 packages from 22 contributors in 1.536s\n"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
|
"execution_count": null,
|
||||||
|
"metadata": {
|
||||||
|
"cellView": "form",
|
||||||
|
"colab": {
|
||||||
|
"base_uri": "https://localhost:8080/",
|
||||||
|
"height": 857
|
||||||
|
},
|
||||||
|
"id": "VoKDxqEcjmfC",
|
||||||
|
"outputId": "b966821b-7d18-43ee-ceb3-724ac2d0c022"
|
||||||
|
},
|
||||||
|
"outputs": [
|
||||||
|
{
|
||||||
|
"name": "stdout",
|
||||||
|
"output_type": "stream",
|
||||||
|
"text": [
|
||||||
|
"https://viewer.nerf.studio/?websocket_url=wss://good-ways-ask-34-83-255-230.loca.lt\n",
|
||||||
|
"You may need to click Refresh Page after you start training!\n"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"data": {
|
||||||
|
"text/html": [
|
||||||
|
"\n",
|
||||||
|
" <iframe\n",
|
||||||
|
" width=\"100%\"\n",
|
||||||
|
" height=\"800\"\n",
|
||||||
|
" src=\"https://viewer.nerf.studio/?websocket_url=wss://good-ways-ask-34-83-255-230.loca.lt\"\n",
|
||||||
|
" frameborder=\"0\"\n",
|
||||||
|
" allowfullscreen\n",
|
||||||
|
" ></iframe>\n",
|
||||||
|
" "
|
||||||
|
],
|
||||||
|
"text/plain": [
|
||||||
|
"<IPython.lib.display.IFrame at 0x7efe3a65e150>"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"execution_count": 4,
|
||||||
|
"metadata": {},
|
||||||
|
"output_type": "execute_result"
|
||||||
|
}
|
||||||
|
],
|
||||||
"source": [
|
"source": [
|
||||||
"#@title # Start Viewer\n",
|
"#@title # Start Viewer\n",
|
||||||
"\n",
|
"\n",
|
||||||
@@ -254,101 +277,38 @@
|
|||||||
"print(\"You may need to click Refresh Page after you start training!\")\n",
|
"print(\"You may need to click Refresh Page after you start training!\")\n",
|
||||||
"from IPython import display\n",
|
"from IPython import display\n",
|
||||||
"display.IFrame(src=url, height=800, width=\"100%\")"
|
"display.IFrame(src=url, height=800, width=\"100%\")"
|
||||||
],
|
|
||||||
"metadata": {
|
|
||||||
"id": "VoKDxqEcjmfC",
|
|
||||||
"cellView": "form",
|
|
||||||
"colab": {
|
|
||||||
"base_uri": "https://localhost:8080/",
|
|
||||||
"height": 857
|
|
||||||
},
|
|
||||||
"outputId": "b966821b-7d18-43ee-ceb3-724ac2d0c022"
|
|
||||||
},
|
|
||||||
"execution_count": null,
|
|
||||||
"outputs": [
|
|
||||||
{
|
|
||||||
"output_type": "stream",
|
|
||||||
"name": "stdout",
|
|
||||||
"text": [
|
|
||||||
"https://viewer.nerf.studio/?websocket_url=wss://good-ways-ask-34-83-255-230.loca.lt\n",
|
|
||||||
"You may need to click Refresh Page after you start training!\n"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"output_type": "execute_result",
|
|
||||||
"data": {
|
|
||||||
"text/plain": [
|
|
||||||
"<IPython.lib.display.IFrame at 0x7efe3a65e150>"
|
|
||||||
],
|
|
||||||
"text/html": [
|
|
||||||
"\n",
|
|
||||||
" <iframe\n",
|
|
||||||
" width=\"100%\"\n",
|
|
||||||
" height=\"800\"\n",
|
|
||||||
" src=\"https://viewer.nerf.studio/?websocket_url=wss://good-ways-ask-34-83-255-230.loca.lt\"\n",
|
|
||||||
" frameborder=\"0\"\n",
|
|
||||||
" allowfullscreen\n",
|
|
||||||
" ></iframe>\n",
|
|
||||||
" "
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"metadata": {},
|
|
||||||
"execution_count": 4
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
|
"execution_count": null,
|
||||||
|
"metadata": {
|
||||||
|
"cellView": "form",
|
||||||
|
"id": "m_N8_cLfjoXD"
|
||||||
|
},
|
||||||
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"#@title # Start Training { vertical-output: true }\n",
|
"#@title # Start Training { vertical-output: true }\n",
|
||||||
"\n",
|
"\n",
|
||||||
"%cd /content\n",
|
"%cd /content\n",
|
||||||
"!ns-train nerfacto --viewer.websocket-port 7007 nerfstudio-data --data data/nerfstudio/$scene --downscale-factor 4"
|
"!ns-train nerfacto --viewer.websocket-port 7007 nerfstudio-data --data data/nerfstudio/$scene --downscale-factor 4"
|
||||||
],
|
]
|
||||||
"metadata": {
|
|
||||||
"id": "m_N8_cLfjoXD",
|
|
||||||
"cellView": "form"
|
|
||||||
},
|
|
||||||
"execution_count": null,
|
|
||||||
"outputs": []
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"source": [
|
"execution_count": null,
|
||||||
"#@title # Render Video { vertical-output: true }\n",
|
|
||||||
"#@markdown <h3>Export the camera path from within the viewer, then run this cell.</h3>\n",
|
|
||||||
"#@markdown <h5>The rendered video should be at renders/output.mp4!</h5>\n",
|
|
||||||
"\n",
|
|
||||||
"\n",
|
|
||||||
"base_dir = \"/content/outputs/data-nerfstudio-\" + scene + \"/nerfacto/\"\n",
|
|
||||||
"training_run_dir = base_dir + os.listdir(base_dir)[0]\n",
|
|
||||||
"\n",
|
|
||||||
"from IPython.core.display import display, HTML\n",
|
|
||||||
"display(HTML('<h3>Upload the camera path JSON.</h3>'))\n",
|
|
||||||
"%cd $training_run_dir\n",
|
|
||||||
"uploaded = files.upload()\n",
|
|
||||||
"uploaded_camera_path_filename = list(uploaded.keys())[0]\n",
|
|
||||||
"\n",
|
|
||||||
"config_filename = training_run_dir + \"/config.yml\"\n",
|
|
||||||
"camera_path_filename = training_run_dir + \"/\" + uploaded_camera_path_filename\n",
|
|
||||||
"camera_path_filename = camera_path_filename.replace(\" \", \"\\\\ \").replace(\"(\", \"\\\\(\").replace(\")\", \"\\\\)\")\n",
|
|
||||||
"\n",
|
|
||||||
"%cd /content/\n",
|
|
||||||
"!ns-render --load-config $config_filename --traj filename --camera-path-filename $camera_path_filename --output-path renders/output.mp4"
|
|
||||||
],
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"id": "WGt8ukG6Htg3",
|
"cellView": "form",
|
||||||
"colab": {
|
"colab": {
|
||||||
"base_uri": "https://localhost:8080/"
|
"base_uri": "https://localhost:8080/"
|
||||||
},
|
},
|
||||||
"outputId": "fa946890-c7d8-4e46-a54e-7231bc5a2059",
|
"id": "WGt8ukG6Htg3",
|
||||||
"cellView": "form"
|
"outputId": "fa946890-c7d8-4e46-a54e-7231bc5a2059"
|
||||||
},
|
},
|
||||||
"execution_count": null,
|
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
{
|
||||||
"output_type": "stream",
|
|
||||||
"name": "stdout",
|
"name": "stdout",
|
||||||
|
"output_type": "stream",
|
||||||
"text": [
|
"text": [
|
||||||
"\u001b[2;36m[19:48:48]\u001b[0m\u001b[2;36m \u001b[0mSkipping \u001b[1;36m0\u001b[0m files in dataset split train. \u001b]8;id=527413;file:///content/nerfstudio/nerfstudio/data/dataparsers/nerfstudio_dataparser.py\u001b\\\u001b[2mnerfstudio_dataparser.py\u001b[0m\u001b]8;;\u001b\\\u001b[2m:\u001b[0m\u001b]8;id=243595;file:///content/nerfstudio/nerfstudio/data/dataparsers/nerfstudio_dataparser.py#91\u001b\\\u001b[2m91\u001b[0m\u001b]8;;\u001b\\\n",
|
"\u001b[2;36m[19:48:48]\u001b[0m\u001b[2;36m \u001b[0mSkipping \u001b[1;36m0\u001b[0m files in dataset split train. \u001b]8;id=527413;file:///content/nerfstudio/nerfstudio/data/dataparsers/nerfstudio_dataparser.py\u001b\\\u001b[2mnerfstudio_dataparser.py\u001b[0m\u001b]8;;\u001b\\\u001b[2m:\u001b[0m\u001b]8;id=243595;file:///content/nerfstudio/nerfstudio/data/dataparsers/nerfstudio_dataparser.py#91\u001b\\\u001b[2m91\u001b[0m\u001b]8;;\u001b\\\n",
|
||||||
"\u001b[2;36m \u001b[0m\u001b[2;36m \u001b[0mSkipping \u001b[1;36m0\u001b[0m files in dataset split test. \u001b]8;id=109270;file:///content/nerfstudio/nerfstudio/data/dataparsers/nerfstudio_dataparser.py\u001b\\\u001b[2mnerfstudio_dataparser.py\u001b[0m\u001b]8;;\u001b\\\u001b[2m:\u001b[0m\u001b]8;id=464675;file:///content/nerfstudio/nerfstudio/data/dataparsers/nerfstudio_dataparser.py#91\u001b\\\u001b[2m91\u001b[0m\u001b]8;;\u001b\\\n",
|
"\u001b[2;36m \u001b[0m\u001b[2;36m \u001b[0mSkipping \u001b[1;36m0\u001b[0m files in dataset split test. \u001b]8;id=109270;file:///content/nerfstudio/nerfstudio/data/dataparsers/nerfstudio_dataparser.py\u001b\\\u001b[2mnerfstudio_dataparser.py\u001b[0m\u001b]8;;\u001b\\\u001b[2m:\u001b[0m\u001b]8;id=464675;file:///content/nerfstudio/nerfstudio/data/dataparsers/nerfstudio_dataparser.py#91\u001b\\\u001b[2m91\u001b[0m\u001b]8;;\u001b\\\n",
|
||||||
@@ -371,7 +331,54 @@
|
|||||||
"\u001b[0m"
|
"\u001b[0m"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
"source": [
|
||||||
|
"#@title # Render Video { vertical-output: true }\n",
|
||||||
|
"#@markdown <h3>Export the camera path from within the viewer, then run this cell.</h3>\n",
|
||||||
|
"#@markdown <h5>The rendered video should be at renders/output.mp4!</h5>\n",
|
||||||
|
"\n",
|
||||||
|
"\n",
|
||||||
|
"base_dir = \"/content/outputs/data-nerfstudio-\" + scene + \"/nerfacto/\"\n",
|
||||||
|
"training_run_dir = base_dir + os.listdir(base_dir)[0]\n",
|
||||||
|
"\n",
|
||||||
|
"from IPython.core.display import display, HTML\n",
|
||||||
|
"display(HTML('<h3>Upload the camera path JSON.</h3>'))\n",
|
||||||
|
"%cd $training_run_dir\n",
|
||||||
|
"uploaded = files.upload()\n",
|
||||||
|
"uploaded_camera_path_filename = list(uploaded.keys())[0]\n",
|
||||||
|
"\n",
|
||||||
|
"config_filename = training_run_dir + \"/config.yml\"\n",
|
||||||
|
"camera_path_filename = training_run_dir + \"/\" + uploaded_camera_path_filename\n",
|
||||||
|
"camera_path_filename = camera_path_filename.replace(\" \", \"\\\\ \").replace(\"(\", \"\\\\(\").replace(\")\", \"\\\\)\")\n",
|
||||||
|
"\n",
|
||||||
|
"%cd /content/\n",
|
||||||
|
"!ns-render --load-config $config_filename --traj filename --camera-path-filename $camera_path_filename --output-path renders/output.mp4"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"metadata": {
|
||||||
|
"accelerator": "GPU",
|
||||||
|
"colab": {
|
||||||
|
"collapsed_sections": [],
|
||||||
|
"include_colab_link": true,
|
||||||
|
"provenance": []
|
||||||
|
},
|
||||||
|
"gpuClass": "standard",
|
||||||
|
"kernelspec": {
|
||||||
|
"display_name": "Python 3.8.12 ('nerfactory')",
|
||||||
|
"language": "python",
|
||||||
|
"name": "python3"
|
||||||
|
},
|
||||||
|
"language_info": {
|
||||||
|
"name": "python",
|
||||||
|
"version": "3.8.12"
|
||||||
|
},
|
||||||
|
"vscode": {
|
||||||
|
"interpreter": {
|
||||||
|
"hash": "34c28001ff35fb390494047002768a8182dcf55b1b11415165e62ea61557ab83"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nbformat": 4,
|
||||||
|
"nbformat_minor": 0
|
||||||
}
|
}
|
||||||
Vendored
+55
@@ -44,4 +44,59 @@ going well. :) -#}
|
|||||||
>
|
>
|
||||||
Github
|
Github
|
||||||
</a>
|
</a>
|
||||||
|
<br />
|
||||||
|
<a
|
||||||
|
href="https://colab.research.google.com/github/nerfstudio-project/nerfstudio/blob/main/colab/demo.ipynb"
|
||||||
|
style="
|
||||||
|
background-color: #ebf0f4;
|
||||||
|
background-image: linear-gradient(180deg, #f6f8fa, #ebf0f4 90%);
|
||||||
|
border-radius: 3px;
|
||||||
|
border: 1px solid #1b1f2426;
|
||||||
|
display: inline-flex;
|
||||||
|
cursor: pointer;
|
||||||
|
color: #0d0d0d;
|
||||||
|
font-family: Arial;
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: bold;
|
||||||
|
padding: 5px 41px;
|
||||||
|
line-height: 16px;
|
||||||
|
text-decoration: none;
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<svg
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
width="16"
|
||||||
|
height="16"
|
||||||
|
class="octicon octicon-mark-github"
|
||||||
|
>
|
||||||
|
<g>
|
||||||
|
<path
|
||||||
|
d="M4.54,9.46,2.19,7.1a6.93,6.93,0,0,0,0,9.79l2.36-2.36A3.59,3.59,0,0,1,4.54,9.46Z"
|
||||||
|
style=""
|
||||||
|
fill="#E8710A"
|
||||||
|
></path>
|
||||||
|
<path
|
||||||
|
d="M2.19,7.1,4.54,9.46a3.59,3.59,0,0,1,5.08,0l1.71-2.93h0l-.1-.08h0A6.93,6.93,0,0,0,2.19,7.1Z"
|
||||||
|
style=""
|
||||||
|
fill="#F9AB00"
|
||||||
|
></path>
|
||||||
|
<path
|
||||||
|
d="M11.34,17.46h0L9.62,14.54a3.59,3.59,0,0,1-5.08,0L2.19,16.9a6.93,6.93,0,0,0,9,.65l.11-.09"
|
||||||
|
style=""
|
||||||
|
fill="#F9AB00"
|
||||||
|
></path>
|
||||||
|
<path
|
||||||
|
d="M12,7.1a6.93,6.93,0,0,0,0,9.79l2.36-2.36a3.59,3.59,0,1,1,5.08-5.08L21.81,7.1A6.93,6.93,0,0,0,12,7.1Z"
|
||||||
|
style=""
|
||||||
|
fill="#F9AB00"
|
||||||
|
></path>
|
||||||
|
<path
|
||||||
|
d="M21.81,7.1,19.46,9.46a3.59,3.59,0,0,1-5.08,5.08L12,16.9A6.93,6.93,0,0,0,21.81,7.1Z"
|
||||||
|
style=""
|
||||||
|
fill="#E8710A"
|
||||||
|
></path>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
<span> colab</span></a
|
||||||
|
>
|
||||||
</div>
|
</div>
|
||||||
@@ -50,7 +50,6 @@ quickstart/installation
|
|||||||
quickstart/first_nerf
|
quickstart/first_nerf
|
||||||
quickstart/custom_dataset
|
quickstart/custom_dataset
|
||||||
quickstart/viewer_quickstart
|
quickstart/viewer_quickstart
|
||||||
quickstart/google_colab
|
|
||||||
Contributing<reference/contributing>
|
Contributing<reference/contributing>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
# Google Colab
|
|
||||||
|
|
||||||
Nerfstudio works in Google Colab using their hosted GPUs! Here is [the link](https://colab.research.google.com/drive/13ZUOVo9N4fjZcoS_R9N0BsYa2kV6ywuq?usp=sharing). Make a copy of this file and go from there!
|
|
||||||
Reference in new issue
Block a user