{
"cells": [
{
"cell_type": "markdown",
"metadata": {
"colab_type": "text",
"id": "view-in-github"
},
"source": [
""
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "SiiXJ7K_fePG"
},
"source": [
"
\n",
"
\n",
"
\"))\n", " display(\n", " HTML(\n", " \"
Note: This may take time, especially on higher resolution inputs, so we recommend to download dataset after creation.\"\n", " )\n", " )\n", " !mkdir -p /content/data/nerfstudio/custom_data\n", " if scene == \"upload your images\":\n", " !mkdir -p /content/data/nerfstudio/custom_data/raw_images\n", " %cd /content/data/nerfstudio/custom_data/raw_images\n", " uploaded = files.upload()\n", " dir = os.getcwd()\n", " else:\n", " %cd /content/data/nerfstudio/custom_data/\n", " uploaded = files.upload()\n", " dir = os.getcwd()\n", " preupload_datasets = [os.path.join(dir, f) for f in uploaded.keys()]\n", " del uploaded\n", " %cd /content/\n", "\n", " if scene == \"upload your images\":\n", " !ns-process-data images --data /content/data/nerfstudio/custom_data/raw_images --output-dir /content/data/nerfstudio/custom_data/\n", " else:\n", " video_path = preupload_datasets[0]\n", " !ns-process-data video --data $video_path --output-dir /content/data/nerfstudio/custom_data/\n", "\n", " scene = \"custom_data\"\n", "else:\n", " %cd /content/\n", " !ns-download-data nerfstudio --capture-name=$scene\n", "\n", "print(\"Data Processing Succeeded!\")" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "cellView": "form", "id": "m_N8_cLfjoXD" }, "outputs": [], "source": [ "# @markdown