Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- packages.txt +2 -1
- visualisation/points2image-single.ipynb +14 -3
packages.txt
CHANGED
|
@@ -1 +1,2 @@
|
|
| 1 |
-
tree
|
|
|
|
|
|
| 1 |
+
tree
|
| 2 |
+
libgl1-mesa-glx
|
visualisation/points2image-single.ipynb
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
"cells": [
|
| 3 |
{
|
| 4 |
"cell_type": "code",
|
| 5 |
-
"execution_count":
|
| 6 |
"id": "caaa59e3",
|
| 7 |
"metadata": {},
|
| 8 |
"outputs": [],
|
|
@@ -21,13 +21,14 @@
|
|
| 21 |
"from utils.camera import ImageData\n",
|
| 22 |
"import utils.utils as utils\n",
|
| 23 |
"from natsort import natsorted\n",
|
|
|
|
| 24 |
"\n",
|
| 25 |
"cmap = plt.get_cmap(\"jet\")"
|
| 26 |
]
|
| 27 |
},
|
| 28 |
{
|
| 29 |
"cell_type": "code",
|
| 30 |
-
"execution_count":
|
| 31 |
"id": "77f72c72",
|
| 32 |
"metadata": {},
|
| 33 |
"outputs": [],
|
|
@@ -45,10 +46,20 @@
|
|
| 45 |
"# condition = 'dry'\n",
|
| 46 |
"camera_pos = 'front'\n",
|
| 47 |
"# root_directory = f\"../../Datasets/FRED/{condition}/KITTI-style\"\n",
|
| 48 |
-
"root_directory = f\"C:/Users/conno/Documents/data/FRED/{condition}/KITTI-style\"\n",
|
| 49 |
"# root_directory = f\"U:/Research/Projects/KVFPRA9190/FRED/{condition}/KITTI-style\"\n",
|
|
|
|
| 50 |
"# 01000000\n",
|
| 51 |
"\n",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
"############ Define filenames and directories ####################################\n",
|
| 53 |
"\n",
|
| 54 |
"image_dir = f\"{root_directory}/{location}_{sequence}/{camera_pos}-imgs/\"\n",
|
|
|
|
| 2 |
"cells": [
|
| 3 |
{
|
| 4 |
"cell_type": "code",
|
| 5 |
+
"execution_count": null,
|
| 6 |
"id": "caaa59e3",
|
| 7 |
"metadata": {},
|
| 8 |
"outputs": [],
|
|
|
|
| 21 |
"from utils.camera import ImageData\n",
|
| 22 |
"import utils.utils as utils\n",
|
| 23 |
"from natsort import natsorted\n",
|
| 24 |
+
"import huggingface_hub\n",
|
| 25 |
"\n",
|
| 26 |
"cmap = plt.get_cmap(\"jet\")"
|
| 27 |
]
|
| 28 |
},
|
| 29 |
{
|
| 30 |
"cell_type": "code",
|
| 31 |
+
"execution_count": null,
|
| 32 |
"id": "77f72c72",
|
| 33 |
"metadata": {},
|
| 34 |
"outputs": [],
|
|
|
|
| 46 |
"# condition = 'dry'\n",
|
| 47 |
"camera_pos = 'front'\n",
|
| 48 |
"# root_directory = f\"../../Datasets/FRED/{condition}/KITTI-style\"\n",
|
| 49 |
+
"# root_directory = f\"C:/Users/conno/Documents/data/FRED/{condition}/KITTI-style\"\n",
|
| 50 |
"# root_directory = f\"U:/Research/Projects/KVFPRA9190/FRED/{condition}/KITTI-style\"\n",
|
| 51 |
+
"root_directory = \"data/FRED/{condition}/KITTI-style\"\n",
|
| 52 |
"# 01000000\n",
|
| 53 |
"\n",
|
| 54 |
+
"from huggingface_hub import snapshot_download\n",
|
| 55 |
+
"\n",
|
| 56 |
+
"snapshot_download(\n",
|
| 57 |
+
" repo_id=\"CMalone-Jupiter/FRED\",\n",
|
| 58 |
+
" repo_type=\"dataset\",\n",
|
| 59 |
+
" local_dir=\"/data/FRED\",\n",
|
| 60 |
+
" allow_patterns=f\"{condition}/KITTI-style/{location}_{sequence}/**\"\n",
|
| 61 |
+
")\n",
|
| 62 |
+
"\n",
|
| 63 |
"############ Define filenames and directories ####################################\n",
|
| 64 |
"\n",
|
| 65 |
"image_dir = f\"{root_directory}/{location}_{sequence}/{camera_pos}-imgs/\"\n",
|