Skip to content

Commit

Permalink
branching for explain mode
Browse files Browse the repository at this point in the history
  • Loading branch information
eugene123tw committed Jan 20, 2025
1 parent c3ce361 commit 7a6da22
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/otx/algo/detection/rtdetr.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ def _customize_inputs(
)
targets.append({"boxes": scaled_bboxes, "labels": ll})

if self.explain_mode:
return {"entity": entity}

return {
"images": entity.images,
"targets": targets,
Expand Down

0 comments on commit 7a6da22

Please sign in to comment.