Skip to content

fix demo confidence filter not to remove mask predictions - #156

Merged
rentainhe merged 1 commit into
IDEA-Research:mainfrom
jasam-sheja:fix-confidence-filter
Dec 3, 2022
Merged

fix demo confidence filter not to remove mask predictions#156
rentainhe merged 1 commit into
IDEA-Research:mainfrom
jasam-sheja:fix-confidence-filter

Conversation

@jasam-sheja

Copy link
Copy Markdown
Contributor

The function filter_predictions_with_confidence under demo/predictors.py destroys all info other than instances' image_size, pred_boxes, scores, and pred_classes. Because of that, the demo doesn't visualize the mask.

Fix it by allowing filter_predictions_with_confidence to modify the instances only and apply it to all fields under instances.

@rentainhe

Copy link
Copy Markdown
Collaborator

Thank you so much for your contribution!

@rentainhe
rentainhe merged commit 43dbe84 into IDEA-Research:main Dec 3, 2022
Lontoone pushed a commit to Lontoone/detrex that referenced this pull request Jan 8, 2024
…rch#156)

Co-authored-by: jasam-sheja <jasam-sheja@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants