Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add overriding of GroundingDINO bboxes with calculated masks bboxes #10

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Youho99
Copy link

@Youho99 Youho99 commented Apr 17, 2024

According to the pull request roboflow/supervision#1086

This modification makes it possible to recalculate the bboxes of the masks in order to have a bbox relating to the mask.

Basically, the bbox is the one predicted by autodistill_grounding_dino. Then autodistill_grounded_sam uses this bbox to predict a mask. But the bbox does not correspond directly to the mask.

I therefore use mask_to_xyxy() of supervision to recalculate the bboxes relating to the masks.

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.

1 participant