Spaces:
Build error
Build error
Merge branch 'main' of https://huggingface.co/spaces/SEA-AI/PanopticQuality
Browse files- PanopticQuality.py +2 -0
- 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@
|
| 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
|