Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
lidar_postprocessing/create_range_imgs.ipynb
CHANGED
|
@@ -7,12 +7,26 @@
|
|
| 7 |
"metadata": {},
|
| 8 |
"outputs": [
|
| 9 |
{
|
| 10 |
-
"
|
| 11 |
-
"
|
| 12 |
-
"
|
| 13 |
-
|
| 14 |
-
"[
|
| 15 |
-
"[
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
]
|
| 17 |
}
|
| 18 |
],
|
|
@@ -31,7 +45,13 @@
|
|
| 31 |
"import utils.utils as utils\n",
|
| 32 |
"from natsort import natsorted\n",
|
| 33 |
"\n",
|
| 34 |
-
"cmap = plt.get_cmap(\"jet\")"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
]
|
| 36 |
},
|
| 37 |
{
|
|
@@ -48,7 +68,7 @@
|
|
| 48 |
"camera_pos = 'front'\n",
|
| 49 |
"root_directory = f\"/data/FRED/{condition}/KITTI-style\"\n",
|
| 50 |
"\n",
|
| 51 |
-
"if not os.path.exists(root_directory):\n",
|
| 52 |
" snapshot_download(\n",
|
| 53 |
" repo_id=\"CMalone-Jupiter/FRED\",\n",
|
| 54 |
" repo_type=\"dataset\",\n",
|
|
|
|
| 7 |
"metadata": {},
|
| 8 |
"outputs": [
|
| 9 |
{
|
| 10 |
+
"ename": "KeyboardInterrupt",
|
| 11 |
+
"evalue": "",
|
| 12 |
+
"output_type": "error",
|
| 13 |
+
"traceback": [
|
| 14 |
+
"\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
|
| 15 |
+
"\u001b[1;31mKeyboardInterrupt\u001b[0m Traceback (most recent call last)",
|
| 16 |
+
"Cell \u001b[1;32mIn[1], line 7\u001b[0m\n\u001b[0;32m 5\u001b[0m \u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;21;01mnumpy\u001b[39;00m \u001b[38;5;28;01mas\u001b[39;00m \u001b[38;5;21;01mnp\u001b[39;00m\n\u001b[0;32m 6\u001b[0m \u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;21;01mcv2\u001b[39;00m\n\u001b[1;32m----> 7\u001b[0m \u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;21;01mopen3d\u001b[39;00m \u001b[38;5;28;01mas\u001b[39;00m \u001b[38;5;21;01mo3d\u001b[39;00m\n\u001b[0;32m 8\u001b[0m \u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;21;01mmatplotlib\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mpyplot\u001b[39;00m \u001b[38;5;28;01mas\u001b[39;00m \u001b[38;5;21;01mplt\u001b[39;00m\n\u001b[0;32m 9\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mscipy\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mspatial\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mtransform\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m Rotation\n",
|
| 17 |
+
"File \u001b[1;32mc:\\Users\\conno\\anaconda3\\envs\\CADRRA\\lib\\site-packages\\open3d\\__init__.py:127\u001b[0m\n\u001b[0;32m 123\u001b[0m submodules[subname] \u001b[38;5;241m=\u001b[39m sys\u001b[38;5;241m.\u001b[39mmodules[modname]\n\u001b[0;32m 124\u001b[0m sys\u001b[38;5;241m.\u001b[39mmodules\u001b[38;5;241m.\u001b[39mupdate(submodules)\n\u001b[1;32m--> 127\u001b[0m \u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;21;01mopen3d\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mvisualization\u001b[39;00m\n\u001b[0;32m 129\u001b[0m _insert_pybind_names(skip_names\u001b[38;5;241m=\u001b[39m(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mml\u001b[39m\u001b[38;5;124m\"\u001b[39m,))\n\u001b[0;32m 131\u001b[0m __version__ \u001b[38;5;241m=\u001b[39m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124m0.19.0\u001b[39m\u001b[38;5;124m\"\u001b[39m\n",
|
| 18 |
+
"File \u001b[1;32mc:\\Users\\conno\\anaconda3\\envs\\CADRRA\\lib\\site-packages\\open3d\\visualization\\__init__.py:19\u001b[0m\n\u001b[0;32m 16\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mopen3d\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mcpu\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mpybind\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mvisualization\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;241m*\u001b[39m\n\u001b[0;32m 18\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01m_external_visualizer\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;241m*\u001b[39m\n\u001b[1;32m---> 19\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mdraw_plotly\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m draw_plotly\n\u001b[0;32m 20\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mdraw_plotly\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m draw_plotly_server\n\u001b[0;32m 21\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mto_mitsuba\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m to_mitsuba\n",
|
| 19 |
+
"File \u001b[1;32mc:\\Users\\conno\\anaconda3\\envs\\CADRRA\\lib\\site-packages\\open3d\\visualization\\draw_plotly.py:12\u001b[0m\n\u001b[0;32m 9\u001b[0m \u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;21;01mnumpy\u001b[39;00m \u001b[38;5;28;01mas\u001b[39;00m \u001b[38;5;21;01mnp\u001b[39;00m\n\u001b[0;32m 10\u001b[0m \u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;21;01mplotly\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mgraph_objects\u001b[39;00m \u001b[38;5;28;01mas\u001b[39;00m \u001b[38;5;21;01mgo\u001b[39;00m\n\u001b[1;32m---> 12\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mdash\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m html\n\u001b[0;32m 13\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mdash\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m dcc\n\u001b[0;32m 14\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mdash\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m Dash\n",
|
| 20 |
+
"File \u001b[1;32mc:\\Users\\conno\\anaconda3\\envs\\CADRRA\\lib\\site-packages\\dash\\__init__.py:18\u001b[0m\n\u001b[0;32m 16\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01m.\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m resources \u001b[38;5;66;03m# noqa: F401,E402\u001b[39;00m\n\u001b[0;32m 17\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01m.\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m dcc \u001b[38;5;66;03m# noqa: F401,E402\u001b[39;00m\n\u001b[1;32m---> 18\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01m.\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m html \u001b[38;5;66;03m# noqa: F401,E402\u001b[39;00m\n\u001b[0;32m 19\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01m.\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m dash_table \u001b[38;5;66;03m# noqa: F401,E402\u001b[39;00m\n\u001b[0;32m 20\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mversion\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m __version__ \u001b[38;5;66;03m# noqa: F401,E402\u001b[39;00m\n",
|
| 21 |
+
"File \u001b[1;32mc:\\Users\\conno\\anaconda3\\envs\\CADRRA\\lib\\site-packages\\dash\\html\\__init__.py:3\u001b[0m\n\u001b[0;32m 1\u001b[0m \u001b[38;5;124;03m\"\"\"Vanilla HTML components for Dash\"\"\"\u001b[39;00m\n\u001b[1;32m----> 3\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01m_imports_\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;241m*\u001b[39m \u001b[38;5;66;03m# noqa: E402, F401, F403\u001b[39;00m\n\u001b[0;32m 4\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01m_imports_\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m __all__ \u001b[38;5;66;03m# noqa: E402\u001b[39;00m\n\u001b[0;32m 6\u001b[0m \u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;21;01mjson\u001b[39;00m\n",
|
| 22 |
+
"File \u001b[1;32m<frozen importlib._bootstrap>:1027\u001b[0m, in \u001b[0;36m_find_and_load\u001b[1;34m(name, import_)\u001b[0m\n",
|
| 23 |
+
"File \u001b[1;32m<frozen importlib._bootstrap>:1002\u001b[0m, in \u001b[0;36m_find_and_load_unlocked\u001b[1;34m(name, import_)\u001b[0m\n",
|
| 24 |
+
"File \u001b[1;32m<frozen importlib._bootstrap>:945\u001b[0m, in \u001b[0;36m_find_spec\u001b[1;34m(name, path, target)\u001b[0m\n",
|
| 25 |
+
"File \u001b[1;32m<frozen importlib._bootstrap_external>:1439\u001b[0m, in \u001b[0;36mfind_spec\u001b[1;34m(cls, fullname, path, target)\u001b[0m\n",
|
| 26 |
+
"File \u001b[1;32m<frozen importlib._bootstrap_external>:1411\u001b[0m, in \u001b[0;36m_get_spec\u001b[1;34m(cls, fullname, path, target)\u001b[0m\n",
|
| 27 |
+
"File \u001b[1;32m<frozen importlib._bootstrap_external>:1548\u001b[0m, in \u001b[0;36mfind_spec\u001b[1;34m(self, fullname, target)\u001b[0m\n",
|
| 28 |
+
"File \u001b[1;32m<frozen importlib._bootstrap_external>:1591\u001b[0m, in \u001b[0;36m_fill_cache\u001b[1;34m(self)\u001b[0m\n",
|
| 29 |
+
"\u001b[1;31mKeyboardInterrupt\u001b[0m: "
|
| 30 |
]
|
| 31 |
}
|
| 32 |
],
|
|
|
|
| 45 |
"import utils.utils as utils\n",
|
| 46 |
"from natsort import natsorted\n",
|
| 47 |
"\n",
|
| 48 |
+
"cmap = plt.get_cmap(\"jet\")\n",
|
| 49 |
+
"\n",
|
| 50 |
+
"# Toggle the following boolean to False if not using HuggingFace App\n",
|
| 51 |
+
"hf_app = True\n",
|
| 52 |
+
"\n",
|
| 53 |
+
"if hf_app:\n",
|
| 54 |
+
" from huggingface_hub import snapshot_download\n"
|
| 55 |
]
|
| 56 |
},
|
| 57 |
{
|
|
|
|
| 68 |
"camera_pos = 'front'\n",
|
| 69 |
"root_directory = f\"/data/FRED/{condition}/KITTI-style\"\n",
|
| 70 |
"\n",
|
| 71 |
+
"if (not os.path.exists(root_directory)) and (hf_app):\n",
|
| 72 |
" snapshot_download(\n",
|
| 73 |
" repo_id=\"CMalone-Jupiter/FRED\",\n",
|
| 74 |
" repo_type=\"dataset\",\n",
|
localisation/groundtruth_utm-single.ipynb
CHANGED
|
@@ -19,7 +19,12 @@
|
|
| 19 |
"from utils.camera import ImageData\n",
|
| 20 |
"import utils.utils as utils\n",
|
| 21 |
"from natsort import natsorted\n",
|
| 22 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
]
|
| 24 |
},
|
| 25 |
{
|
|
@@ -37,7 +42,7 @@
|
|
| 37 |
"qry_camera_pos = 'front'\n",
|
| 38 |
"qry_root_directory = f\"/data/FRED/{qry_condition}/KITTI-style\"\n",
|
| 39 |
"\n",
|
| 40 |
-
"if not os.path.exists(qry_root_directory):\n",
|
| 41 |
" snapshot_download(\n",
|
| 42 |
" repo_id=\"CMalone-Jupiter/FRED\",\n",
|
| 43 |
" repo_type=\"dataset\",\n",
|
|
@@ -56,7 +61,7 @@
|
|
| 56 |
"ref_camera_pos = 'front'\n",
|
| 57 |
"ref_root_directory = f\"/data/FRED/{ref_condition}/KITTI-style\"\n",
|
| 58 |
"\n",
|
| 59 |
-
"if not os.path.exists(ref_root_directory):\n",
|
| 60 |
" snapshot_download(\n",
|
| 61 |
" repo_id=\"CMalone-Jupiter/FRED\",\n",
|
| 62 |
" repo_type=\"dataset\",\n",
|
|
|
|
| 19 |
"from utils.camera import ImageData\n",
|
| 20 |
"import utils.utils as utils\n",
|
| 21 |
"from natsort import natsorted\n",
|
| 22 |
+
"\n",
|
| 23 |
+
"# Toggle the following boolean to False if not using HuggingFace App\n",
|
| 24 |
+
"hf_app = True\n",
|
| 25 |
+
"\n",
|
| 26 |
+
"if hf_app:\n",
|
| 27 |
+
" from huggingface_hub import snapshot_download"
|
| 28 |
]
|
| 29 |
},
|
| 30 |
{
|
|
|
|
| 42 |
"qry_camera_pos = 'front'\n",
|
| 43 |
"qry_root_directory = f\"/data/FRED/{qry_condition}/KITTI-style\"\n",
|
| 44 |
"\n",
|
| 45 |
+
"if (not os.path.exists(qry_root_directory)) and (hf_app):\n",
|
| 46 |
" snapshot_download(\n",
|
| 47 |
" repo_id=\"CMalone-Jupiter/FRED\",\n",
|
| 48 |
" repo_type=\"dataset\",\n",
|
|
|
|
| 61 |
"ref_camera_pos = 'front'\n",
|
| 62 |
"ref_root_directory = f\"/data/FRED/{ref_condition}/KITTI-style\"\n",
|
| 63 |
"\n",
|
| 64 |
+
"if (not os.path.exists(ref_root_directory)) and (hf_app):\n",
|
| 65 |
" snapshot_download(\n",
|
| 66 |
" repo_id=\"CMalone-Jupiter/FRED\",\n",
|
| 67 |
" repo_type=\"dataset\",\n",
|
localisation/plot_utm_traj.ipynb
CHANGED
|
@@ -29,9 +29,14 @@
|
|
| 29 |
"from utils.camera import ImageData\n",
|
| 30 |
"import utils.utils as utils\n",
|
| 31 |
"from natsort import natsorted\n",
|
| 32 |
-
"from huggingface_hub import snapshot_download\n",
|
| 33 |
"\n",
|
| 34 |
-
"cmap = plt.get_cmap(\"jet\")"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
]
|
| 36 |
},
|
| 37 |
{
|
|
@@ -58,7 +63,7 @@
|
|
| 58 |
"qry_camera_pos = 'front'\n",
|
| 59 |
"qry_root_directory = f\"/data/FRED/{qry_condition}/KITTI-style\"\n",
|
| 60 |
"\n",
|
| 61 |
-
"if not os.path.exists(qry_root_directory):\n",
|
| 62 |
" snapshot_download(\n",
|
| 63 |
" repo_id=\"CMalone-Jupiter/FRED\",\n",
|
| 64 |
" repo_type=\"dataset\",\n",
|
|
@@ -78,7 +83,7 @@
|
|
| 78 |
"ref_camera_pos = 'front'\n",
|
| 79 |
"ref_root_directory = f\"/data/FRED/{ref_condition}/KITTI-style\"\n",
|
| 80 |
"\n",
|
| 81 |
-
"if not os.path.exists(ref_root_directory):\n",
|
| 82 |
" snapshot_download(\n",
|
| 83 |
" repo_id=\"CMalone-Jupiter/FRED\",\n",
|
| 84 |
" repo_type=\"dataset\",\n",
|
|
|
|
| 29 |
"from utils.camera import ImageData\n",
|
| 30 |
"import utils.utils as utils\n",
|
| 31 |
"from natsort import natsorted\n",
|
|
|
|
| 32 |
"\n",
|
| 33 |
+
"cmap = plt.get_cmap(\"jet\")\n",
|
| 34 |
+
"\n",
|
| 35 |
+
"# Toggle the following boolean to False if not using HuggingFace App\n",
|
| 36 |
+
"hf_app = True\n",
|
| 37 |
+
"\n",
|
| 38 |
+
"if hf_app:\n",
|
| 39 |
+
" from huggingface_hub import snapshot_download"
|
| 40 |
]
|
| 41 |
},
|
| 42 |
{
|
|
|
|
| 63 |
"qry_camera_pos = 'front'\n",
|
| 64 |
"qry_root_directory = f\"/data/FRED/{qry_condition}/KITTI-style\"\n",
|
| 65 |
"\n",
|
| 66 |
+
"if (not os.path.exists(qry_root_directory)) and (hf_app):\n",
|
| 67 |
" snapshot_download(\n",
|
| 68 |
" repo_id=\"CMalone-Jupiter/FRED\",\n",
|
| 69 |
" repo_type=\"dataset\",\n",
|
|
|
|
| 83 |
"ref_camera_pos = 'front'\n",
|
| 84 |
"ref_root_directory = f\"/data/FRED/{ref_condition}/KITTI-style\"\n",
|
| 85 |
"\n",
|
| 86 |
+
"if (not os.path.exists(ref_root_directory)) and (hf_app):\n",
|
| 87 |
" snapshot_download(\n",
|
| 88 |
" repo_id=\"CMalone-Jupiter/FRED\",\n",
|
| 89 |
" repo_type=\"dataset\",\n",
|
segmentation/show_labels-single.ipynb
CHANGED
|
@@ -19,7 +19,12 @@
|
|
| 19 |
"from utils.camera import ImageData\n",
|
| 20 |
"import utils.utils as utils\n",
|
| 21 |
"from natsort import natsorted\n",
|
| 22 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
]
|
| 24 |
},
|
| 25 |
{
|
|
@@ -37,7 +42,7 @@
|
|
| 37 |
"camera_pos = 'front'\n",
|
| 38 |
"root_directory = f\"/data/FRED/{condition}/KITTI-style\"\n",
|
| 39 |
"\n",
|
| 40 |
-
"if not os.path.exists(root_directory):\n",
|
| 41 |
" snapshot_download(\n",
|
| 42 |
" repo_id=\"CMalone-Jupiter/FRED\",\n",
|
| 43 |
" repo_type=\"dataset\",\n",
|
|
|
|
| 19 |
"from utils.camera import ImageData\n",
|
| 20 |
"import utils.utils as utils\n",
|
| 21 |
"from natsort import natsorted\n",
|
| 22 |
+
"\n",
|
| 23 |
+
"# Toggle the following boolean to False if not using HuggingFace App\n",
|
| 24 |
+
"hf_app = True\n",
|
| 25 |
+
"\n",
|
| 26 |
+
"if hf_app:\n",
|
| 27 |
+
" from huggingface_hub import snapshot_download"
|
| 28 |
]
|
| 29 |
},
|
| 30 |
{
|
|
|
|
| 42 |
"camera_pos = 'front'\n",
|
| 43 |
"root_directory = f\"/data/FRED/{condition}/KITTI-style\"\n",
|
| 44 |
"\n",
|
| 45 |
+
"if (not os.path.exists(root_directory)) and (hf_app):\n",
|
| 46 |
" snapshot_download(\n",
|
| 47 |
" repo_id=\"CMalone-Jupiter/FRED\",\n",
|
| 48 |
" repo_type=\"dataset\",\n",
|
visualisation/points2image-single.ipynb
CHANGED
|
@@ -20,9 +20,14 @@
|
|
| 20 |
"from utils.camera import ImageData\n",
|
| 21 |
"import utils.utils as utils\n",
|
| 22 |
"from natsort import natsorted\n",
|
| 23 |
-
"from huggingface_hub import snapshot_download\n",
|
| 24 |
"\n",
|
| 25 |
-
"cmap = plt.get_cmap(\"jet\")"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
]
|
| 27 |
},
|
| 28 |
{
|
|
@@ -39,7 +44,7 @@
|
|
| 39 |
"camera_pos = 'front'\n",
|
| 40 |
"root_directory = f\"/data/FRED/{condition}/KITTI-style\"\n",
|
| 41 |
"\n",
|
| 42 |
-
"if not os.path.exists(root_directory):\n",
|
| 43 |
" snapshot_download(\n",
|
| 44 |
" repo_id=\"CMalone-Jupiter/FRED\",\n",
|
| 45 |
" repo_type=\"dataset\",\n",
|
|
|
|
| 20 |
"from utils.camera import ImageData\n",
|
| 21 |
"import utils.utils as utils\n",
|
| 22 |
"from natsort import natsorted\n",
|
|
|
|
| 23 |
"\n",
|
| 24 |
+
"cmap = plt.get_cmap(\"jet\")\n",
|
| 25 |
+
"\n",
|
| 26 |
+
"# Toggle the following boolean to False if not using HuggingFace App\n",
|
| 27 |
+
"hf_app = True\n",
|
| 28 |
+
"\n",
|
| 29 |
+
"if hf_app:\n",
|
| 30 |
+
" from huggingface_hub import snapshot_download"
|
| 31 |
]
|
| 32 |
},
|
| 33 |
{
|
|
|
|
| 44 |
"camera_pos = 'front'\n",
|
| 45 |
"root_directory = f\"/data/FRED/{condition}/KITTI-style\"\n",
|
| 46 |
"\n",
|
| 47 |
+
"if (not os.path.exists(root_directory)) and (hf_app):\n",
|
| 48 |
" snapshot_download(\n",
|
| 49 |
" repo_id=\"CMalone-Jupiter/FRED\",\n",
|
| 50 |
" repo_type=\"dataset\",\n",
|