3v324v23's picture
files_per_repr_overwrites and and hsv support. Other backports too (opticalflow/ndims)
f755e76
raw
history blame
1.38 kB
"""init file"""
from .multitask_dataset import MultiTaskDataset, NpzRepresentation
from .dronescapes_representations import DepthRepresentation, OpticalFlowRepresentation, SemanticRepresentation, \
ColorRepresentation, EdgesRepresentation, NormalsRepresentation, HSVRepresentation
_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 = { # some pre-baked representations
"rgb": ColorRepresentation("rgb", 3),
"hsv": HSVRepresentation("hsv", 3),
"edges_dexined": ColorRepresentation("edges_dexined", 1),
"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),
"normals_sfm_manual202204": NormalsRepresentation("normals_sfm_manual202204"),
"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", 3),
"edges_gb": EdgesRepresentation("edges_gb"),
}