"mmdet3d/models/vscode:/vscode.git/clone" did not exist on "8c4c9aee4fff9dd4072f1c7e174592cc3d2a2052"
Commit dfb41835 authored by lintangsutawika's avatar lintangsutawika
Browse files

revert

parent 2054c2e6
......@@ -1186,7 +1186,9 @@ class ConfigurableTask(Task):
predictions=[result],
**self._metric_fn_kwargs[metric],
)
except TypeError: # needed for now in order to use a different interface between our own metrics and HF Evaluate metrics
except (
TypeError
): # needed for now in order to use a different interface between our own metrics and HF Evaluate metrics
result_score = self._metric_fn_list[metric]([gold, result])
if isinstance(result_score, dict):
# TODO: this handles the case where HF evaluate returns a dict.
......
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