OCD
Browse files
scripts/dronescapes_viewer.py
CHANGED
@@ -10,15 +10,15 @@ import random
|
|
10 |
|
11 |
def main():
|
12 |
sema_repr = partial(SemanticRepresentation, classes=8, color_map=[[0, 255, 0], [0, 127, 0], [255, 255, 0],
|
13 |
-
|
14 |
-
|
15 |
reader = MultiTaskDataset(sys.argv[1], handle_missing_data="fill_none",
|
16 |
-
|
17 |
-
|
18 |
min_depth=0, max_depth=300),
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
print(reader)
|
23 |
|
24 |
print("== Shapes ==")
|
|
|
10 |
|
11 |
def main():
|
12 |
sema_repr = partial(SemanticRepresentation, classes=8, color_map=[[0, 255, 0], [0, 127, 0], [255, 255, 0],
|
13 |
+
[255, 255, 255], [255, 0, 0], [0, 0, 255],
|
14 |
+
[0, 255, 255], [127, 127, 63]])
|
15 |
reader = MultiTaskDataset(sys.argv[1], handle_missing_data="fill_none",
|
16 |
+
task_types={"depth_dpt": DepthRepresentation("depth_dpt", min_depth=0, max_depth=0.999),
|
17 |
+
"depth_sfm_manual202204": DepthRepresentation("depth_sfm_manual202204",
|
18 |
min_depth=0, max_depth=300),
|
19 |
+
"opticalflow_rife": OpticalFlowRepresentation,
|
20 |
+
"semantic_segprop8": sema_repr,
|
21 |
+
"semantic_mask2former_swin_mapillary_converted": sema_repr})
|
22 |
print(reader)
|
23 |
|
24 |
print("== Shapes ==")
|