"examples/vscode:/vscode.git/clone" did not exist on "aed3086aadd3dee31d17b2327e117d9f509cf63a"
Unverified Commit 037e2b17 authored by srihari-humbarwadi's avatar srihari-humbarwadi
Browse files

avoid redundant numpy conversion

parent 8f6fc266
......@@ -154,8 +154,6 @@ class PanopticQualityEvaluator:
ValueError: if the required prediction or groundtruth fields are not
present in the incoming `predictions` or `groundtruths`.
"""
groundtruths, predictions = self._convert_to_numpy(groundtruths,
predictions)
for k in self._required_prediction_fields:
if k not in predictions:
raise ValueError(
......@@ -191,4 +189,6 @@ class PanopticQualityEvaluator:
self._pq_metric_module.compare_and_accumulate(
_groundtruths, _predictions)
else:
groundtruths, predictions = self._convert_to_numpy(
groundtruths, predictions)
self._pq_metric_module.compare_and_accumulate(groundtruths, predictions)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment