franzi2505 commited on
Commit
73dd662
1 Parent(s): c41e19f

update label2id

Browse files
Files changed (1) hide show
  1. PanopticQuality.py +9 -1
PanopticQuality.py CHANGED
@@ -83,6 +83,7 @@ class PQMetric(evaluate.Metric):
83
  **kwargs
84
  ):
85
  super().__init__(**kwargs)
 
86
  DEFAULT_LABEL2ID = {'WATER': 0,
87
  'SKY': 1,
88
  'LAND': 2,
@@ -96,8 +97,15 @@ class PQMetric(evaluate.Metric):
96
  'FLOTSAM': 10,
97
  'SAILING_BOAT_WITH_OPEN_SAILS': 11,
98
  'CONTAINER': 12,
99
- 'PILLAR_BUOY': 13}
 
 
 
 
 
 
100
  DEFAULT_STUFF = ["WATER", "SKY", "LAND", "CONSTRUCTION", "ICE", "OWN_BOAT"]
 
101
  self.label2id = label2id if label2id is not None else DEFAULT_LABEL2ID
102
  self.stuff = stuff if stuff is not None else DEFAULT_STUFF
103
  self.pq_metric = PanopticQuality(
 
83
  **kwargs
84
  ):
85
  super().__init__(**kwargs)
86
+
87
  DEFAULT_LABEL2ID = {'WATER': 0,
88
  'SKY': 1,
89
  'LAND': 2,
 
97
  'FLOTSAM': 10,
98
  'SAILING_BOAT_WITH_OPEN_SAILS': 11,
99
  'CONTAINER': 12,
100
+ 'PILLAR_BUOY': 13,
101
+ 'AERIAL_ANIMAL': 14,
102
+ 'HUMAN_IN_WATER': 15,
103
+ 'OWN_BOAT': 16,
104
+ 'WOODEN_LOG': 17,
105
+ 'MARITIME_ANIMAL': 18}
106
+
107
  DEFAULT_STUFF = ["WATER", "SKY", "LAND", "CONSTRUCTION", "ICE", "OWN_BOAT"]
108
+
109
  self.label2id = label2id if label2id is not None else DEFAULT_LABEL2ID
110
  self.stuff = stuff if stuff is not None else DEFAULT_STUFF
111
  self.pq_metric = PanopticQuality(