|
"""init file""" |
|
from .multitask_dataset import MultiTaskDataset, NpzRepresentation |
|
from .dronescapes_representations import DepthRepresentation, OpticalFlowRepresentation, SemanticRepresentation, \ |
|
ColorRepresentation, EdgesRepresentation |
|
|
|
_color_map = [[0, 255, 0], [0, 127, 0], [255, 255, 0], [255, 255, 255], |
|
[255, 0, 0], [0, 0, 255], [0, 255, 255], [127, 127, 63]] |
|
_m2f_name = "semantic_mask2former_swin_mapillary_converted" |
|
dronescapes_task_types = { |
|
"rgb": ColorRepresentation("rgb"), |
|
"edges_dexined": ColorRepresentation("edges_dexined"), |
|
"depth_dpt": DepthRepresentation("depth_dpt", min_depth=0, max_depth=0.999), |
|
"depth_sfm_manual202204": DepthRepresentation("depth_sfm_manual202204", min_depth=0, max_depth=300), |
|
"depth_ufo": DepthRepresentation("depth_ufo", min_depth=0, max_depth=1), |
|
"opticalflow_rife": OpticalFlowRepresentation, |
|
"semantic_segprop8": SemanticRepresentation("semantic_segprop8", classes=8, color_map=_color_map), |
|
_m2f_name: SemanticRepresentation(_m2f_name, classes=8, color_map=_color_map), |
|
"softseg_gb": ColorRepresentation("softseg_gb"), |
|
"edges_gb": EdgesRepresentation("edges_gb"), |
|
} |
|
|