Meehai commited on
Commit
63e886a
·
1 Parent(s): 61fd3f3

init file update

Browse files
Files changed (1) hide show
  1. dronescapes_reader/__init__.py +8 -5
dronescapes_reader/__init__.py CHANGED
@@ -1,13 +1,16 @@
1
  """init file"""
2
- from .multitask_dataset import MultiTaskDataset
3
  from .dronescapes_representations import DepthRepresentation, OpticalFlowRepresentation, SemanticRepresentation
4
 
5
- _color_map=[[0, 255, 0], [0, 127, 0], [255, 255, 0], [255, 255, 255],
6
- [255, 0, 0], [0, 0, 255], [0, 255, 255], [127, 127, 63]]
 
7
  dronescapes_task_types = { # some pre-baked representations
 
 
8
  "depth_dpt": DepthRepresentation("depth_dpt", min_depth=0, max_depth=0.999),
9
  "depth_sfm_manual202204": DepthRepresentation("depth_sfm_manual202204", min_depth=0, max_depth=300),
10
  "opticalflow_rife": OpticalFlowRepresentation,
11
  "semantic_segprop8": SemanticRepresentation("semantic_segprop8", classes=8, color_map=_color_map),
12
- "semantic_mask2former_swin_mapillary_converted":
13
- SemanticRepresentation("semantic_mask2former_swin_mapillary_converted", classes=8, color_map=_color_map)}
 
1
  """init file"""
2
+ from .multitask_dataset import MultiTaskDataset, NpzRepresentation
3
  from .dronescapes_representations import DepthRepresentation, OpticalFlowRepresentation, SemanticRepresentation
4
 
5
+ _color_map = [[0, 255, 0], [0, 127, 0], [255, 255, 0], [255, 255, 255],
6
+ [255, 0, 0], [0, 0, 255], [0, 255, 255], [127, 127, 63]]
7
+ _m2f_name = "semantic_mask2former_swin_mapillary_converted"
8
  dronescapes_task_types = { # some pre-baked representations
9
+ "rgb": NpzRepresentation("rgb"),
10
+ "edges_dexined": NpzRepresentation("edges_dexined"),
11
  "depth_dpt": DepthRepresentation("depth_dpt", min_depth=0, max_depth=0.999),
12
  "depth_sfm_manual202204": DepthRepresentation("depth_sfm_manual202204", min_depth=0, max_depth=300),
13
  "opticalflow_rife": OpticalFlowRepresentation,
14
  "semantic_segprop8": SemanticRepresentation("semantic_segprop8", classes=8, color_map=_color_map),
15
+ _m2f_name: SemanticRepresentation(_m2f_name, classes=8, color_map=_color_map),
16
+ }