-1
Browse files
scripts/dronescapes_viewer.ipynb
CHANGED
@@ -110,7 +110,7 @@
|
|
110 |
],
|
111 |
"source": [
|
112 |
"print(\"== Random loaded item ==\")\n",
|
113 |
-
"rand_ix = random.randint(0, len(reader))\n",
|
114 |
"data, name, repr_names = reader[rand_ix] # get a random item\n",
|
115 |
"print(name)\n",
|
116 |
"img_data = {}\n",
|
@@ -143,7 +143,7 @@
|
|
143 |
],
|
144 |
"metadata": {
|
145 |
"kernelspec": {
|
146 |
-
"display_name": "
|
147 |
"language": "python",
|
148 |
"name": "python3"
|
149 |
},
|
@@ -157,7 +157,7 @@
|
|
157 |
"name": "python",
|
158 |
"nbconvert_exporter": "python",
|
159 |
"pygments_lexer": "ipython3",
|
160 |
-
"version": "3.
|
161 |
}
|
162 |
},
|
163 |
"nbformat": 4,
|
|
|
110 |
],
|
111 |
"source": [
|
112 |
"print(\"== Random loaded item ==\")\n",
|
113 |
+
"rand_ix = random.randint(0, len(reader) - 1)\n",
|
114 |
"data, name, repr_names = reader[rand_ix] # get a random item\n",
|
115 |
"print(name)\n",
|
116 |
"img_data = {}\n",
|
|
|
143 |
],
|
144 |
"metadata": {
|
145 |
"kernelspec": {
|
146 |
+
"display_name": "ml",
|
147 |
"language": "python",
|
148 |
"name": "python3"
|
149 |
},
|
|
|
157 |
"name": "python",
|
158 |
"nbconvert_exporter": "python",
|
159 |
"pygments_lexer": "ipython3",
|
160 |
+
"version": "3.11.9"
|
161 |
}
|
162 |
},
|
163 |
"nbformat": 4,
|
scripts/dronescapes_viewer.py
CHANGED
@@ -20,7 +20,7 @@ def main():
|
|
20 |
pprint(reader.data_shape)
|
21 |
|
22 |
print("== Random loaded item ==")
|
23 |
-
rand_ix = random.randint(0, len(reader))
|
24 |
data, name, repr_names = reader[rand_ix] # get a random item
|
25 |
pprint({k: v for k, v in data.items()})
|
26 |
|
|
|
20 |
pprint(reader.data_shape)
|
21 |
|
22 |
print("== Random loaded item ==")
|
23 |
+
rand_ix = random.randint(0, len(reader) - 1)
|
24 |
data, name, repr_names = reader[rand_ix] # get a random item
|
25 |
pprint({k: v for k, v in data.items()})
|
26 |
|
scripts/semantic_mapper.ipynb
CHANGED
@@ -157,7 +157,7 @@
|
|
157 |
],
|
158 |
"source": [
|
159 |
"print(\"== Random loaded item ==\")\n",
|
160 |
-
"rand_ix = random.randint(0, len(reader))\n",
|
161 |
"data, name, repr_names = reader[rand_ix] # get a random item\n",
|
162 |
"print(name)\n",
|
163 |
"img_data = {}\n",
|
@@ -183,7 +183,7 @@
|
|
183 |
],
|
184 |
"metadata": {
|
185 |
"kernelspec": {
|
186 |
-
"display_name": "
|
187 |
"language": "python",
|
188 |
"name": "python3"
|
189 |
},
|
@@ -197,7 +197,7 @@
|
|
197 |
"name": "python",
|
198 |
"nbconvert_exporter": "python",
|
199 |
"pygments_lexer": "ipython3",
|
200 |
-
"version": "3.
|
201 |
}
|
202 |
},
|
203 |
"nbformat": 4,
|
|
|
157 |
],
|
158 |
"source": [
|
159 |
"print(\"== Random loaded item ==\")\n",
|
160 |
+
"rand_ix = random.randint(0, len(reader) - 1)\n",
|
161 |
"data, name, repr_names = reader[rand_ix] # get a random item\n",
|
162 |
"print(name)\n",
|
163 |
"img_data = {}\n",
|
|
|
183 |
],
|
184 |
"metadata": {
|
185 |
"kernelspec": {
|
186 |
+
"display_name": "ml",
|
187 |
"language": "python",
|
188 |
"name": "python3"
|
189 |
},
|
|
|
197 |
"name": "python",
|
198 |
"nbconvert_exporter": "python",
|
199 |
"pygments_lexer": "ipython3",
|
200 |
+
"version": "3.11.9"
|
201 |
}
|
202 |
},
|
203 |
"nbformat": 4,
|