Skip to content

Commit

Permalink
Merge pull request #5301 from voxel51/bugfix/load-regression-eval-error
Browse files Browse the repository at this point in the history
fix load_evaluation bug with serialized_info
  • Loading branch information
Br2850 authored Dec 19, 2024
2 parents 4bcc45d + b92e747 commit f254567
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -308,13 +308,13 @@ def load_evaluation(self, ctx):
if evaluation_data is None:
info = ctx.dataset.get_evaluation_info(computed_eval_key)
evaluation_type = info.config.type
serialized_info = info.serialize()
if evaluation_type not in SUPPORTED_EVALUATION_TYPES:
ctx.panel.set_data(
f"evaluation_{computed_eval_key}_error",
{"error": "unsupported", "info": serialized_info},
)
return
serialized_info = info.serialize()
gt_field = info.config.gt_field
mask_targets = (
self.get_mask_targets(ctx.dataset, gt_field)
Expand Down

0 comments on commit f254567

Please sign in to comment.