franzi2505 commited on
Commit
a4a7457
2 Parent(s): 7f8f99a fc34022

Merge branch 'main' of https://huggingface.co/spaces/SEA-AI/PanopticQuality

Browse files
Files changed (2) hide show
  1. PanopticQuality.py +2 -0
  2. requirements.txt +1 -1
PanopticQuality.py CHANGED
@@ -87,6 +87,7 @@ class PQMetric(evaluate.Metric):
87
  (6**2, 12**2),
88
  (12**2, 1e5**2)],
89
  method: Literal["iou", "hungarian"] = "iou",
 
90
  class_agnostic: bool = False,
91
  **kwargs
92
  ):
@@ -146,6 +147,7 @@ class PQMetric(evaluate.Metric):
146
  return_per_class=per_class,
147
  return_sq_and_rq=split_sq_rq,
148
  areas=area_rng,
 
149
  #method=method
150
  )
151
  self.cont_to_cat = {label:key for key, label in self.pq_metric.metric.cat_id_to_continuous_id.items()}
 
87
  (6**2, 12**2),
88
  (12**2, 1e5**2)],
89
  method: Literal["iou", "hungarian"] = "iou",
90
+ device: str = None,
91
  class_agnostic: bool = False,
92
  **kwargs
93
  ):
 
147
  return_per_class=per_class,
148
  return_sq_and_rq=split_sq_rq,
149
  areas=area_rng,
150
+ device=device
151
  #method=method
152
  )
153
  self.cont_to_cat = {label:key for key, label in self.pq_metric.metric.cat_id_to_continuous_id.items()}
requirements.txt CHANGED
@@ -1,4 +1,4 @@
1
  git+https://github.com/huggingface/evaluate@main
2
- git+https://github.com/SEA-AI/seametrics@develop
3
  fiftyone
4
  torchmetrics
 
1
  git+https://github.com/huggingface/evaluate@main
2
+ git+https://github.com/SEA-AI/seametrics@feature/ps_unit_tests
3
  fiftyone
4
  torchmetrics