Skip to content

Commit

Permalink
Merge branch 'release/v1.1.0' of https://github.com/voxel51/fiftyone
Browse files Browse the repository at this point in the history
…into develop
  • Loading branch information
voxel51-bot committed Nov 26, 2024
2 parents a82749d + 0c51930 commit 5e32142
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions fiftyone/operators/builtins/panels/model_evaluation/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,12 @@ def on_load(self, ctx):
view_state = ctx.panel.get_state("view") or {}
evaluations = []
for key in ctx.dataset.list_evaluations():
evaluation = {
"key": key,
"id": self.get_evaluation_id(ctx.dataset, key),
}
evaluations.append(evaluation)
if self.has_evaluation_results(ctx.dataset, key):
evaluation = {
"key": key,
"id": self.get_evaluation_id(ctx.dataset, key),
}
evaluations.append(evaluation)
ctx.panel.set_state("evaluations", evaluations)
initialized = view_state.get("init", False)
if not initialized:
Expand All @@ -93,8 +94,6 @@ def on_load(self, ctx):
ctx.panel.set_data("notes", notes)
ctx.panel.set_data("permissions", permissions)
self.load_pending_evaluations(ctx)
# keys = ctx.dataset.list_evaluations()
# ctx.panel.set_state("keys", keys)

def get_avg_confidence(self, per_class_metrics):
count = 0
Expand Down

0 comments on commit 5e32142

Please sign in to comment.