franzi2505 commited on
Commit
9add542
1 Parent(s): 4cdf035
Files changed (1) hide show
  1. PanopticQuality.py +3 -5
PanopticQuality.py CHANGED
@@ -12,9 +12,7 @@
12
  # See the License for the specific language governing permissions and
13
  # limitations under the License.
14
  """TODO: Add a description here."""
15
-
16
- from typing import Set
17
- from deprecated import deprecated
18
 
19
  import evaluate
20
  import datasets
@@ -80,8 +78,8 @@ Examples:
80
  class PQMetric(evaluate.Metric):
81
  def __init__(
82
  self,
83
- label2id: dict = None,
84
- stuff: list = None,
85
  **kwargs
86
  ):
87
  super().__init__(**kwargs)
 
12
  # See the License for the specific language governing permissions and
13
  # limitations under the License.
14
  """TODO: Add a description here."""
15
+ from typing import Dict, List
 
 
16
 
17
  import evaluate
18
  import datasets
 
78
  class PQMetric(evaluate.Metric):
79
  def __init__(
80
  self,
81
+ label2id: Dict[str, int] = None,
82
+ stuff: List[str] = None,
83
  **kwargs
84
  ):
85
  super().__init__(**kwargs)