Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Before, explanations were working perfectly but the labels used were sorted leading to discrepancy between the bounding box annotations and dropdown options:
With the fix: (see dropdown options at the bottom)
This pull request includes changes to the
FlyoutObjectDetection
class and thegenerateSelectableObjectDetectionIndexes
function in thelibs/interpret-vision/src/lib/VisionExplanationDashboard
directory. The changes mainly involve the addition of a new parameter,class_names
, to enhance the functionality of object detection.The most important changes are:
libs/interpret-vision/src/lib/VisionExplanationDashboard/Controls/FlyoutObjectDetection.tsx
: In theFlyoutObjectDetection
class, theclass_names
property fromthis.props.dataset
is now passed as an additional argument to thegenerateSelectableObjectDetectionIndexes
function. This change is reflected in two places within the class. [1] [2]libs/interpret-vision/src/lib/VisionExplanationDashboard/utils/FlyoutUtils.tsx
: ThegenerateSelectableObjectDetectionIndexes
function now accepts an additional parameter,class_names
. This parameter is used to retrieve the class name for each object detected, enhancing the details provided in theselectableObjectIndexes
array.Description
Checklist