Spaces:
Sleeping
Sleeping
franzi2505
commited on
Commit
•
193d419
1
Parent(s):
b23c6fe
again adapt to renaiming of segmentation folder
Browse files- PanopticQuality.py +1 -1
PanopticQuality.py
CHANGED
@@ -166,7 +166,7 @@ class PQMetric(evaluate.Metric):
|
|
166 |
def add_payload(self, payload: Payload, model_name: str = None):
|
167 |
"""Converts the payload to the format expected by the metric"""
|
168 |
# import only if needed since fiftyone is not a direct dependency
|
169 |
-
from seametrics.
|
170 |
|
171 |
predictions, references, label2id = payload_to_seg_metric(payload, model_name, self.label2id)
|
172 |
self.label2id = label2id
|
|
|
166 |
def add_payload(self, payload: Payload, model_name: str = None):
|
167 |
"""Converts the payload to the format expected by the metric"""
|
168 |
# import only if needed since fiftyone is not a direct dependency
|
169 |
+
from seametrics.panoptic.utils import payload_to_seg_metric
|
170 |
|
171 |
predictions, references, label2id = payload_to_seg_metric(payload, model_name, self.label2id)
|
172 |
self.label2id = label2id
|