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

what is "treshold" work for? #20

Open
kjxcc opened this issue Nov 17, 2023 · 1 comment
Open

what is "treshold" work for? #20

kjxcc opened this issue Nov 17, 2023 · 1 comment

Comments

@kjxcc
Copy link

kjxcc commented Nov 17, 2023

No description provided.

@dnl13
Copy link
Contributor

dnl13 commented Nov 17, 2023

filt_mask = logits_filt.max(dim=1)[0] > threshold
The provided code filters out the boxes detected by GroundingDino (by prompt) before passing them to SAM for detailed masking. Specifically, it creates a binary mask (filt_mask) based on the condition that the maximum value along the second dimension of the logits_filt tensor is greater than the specified threshold. Boxes meeting this condition are retained in the filtering process.

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

No branches or pull requests

2 participants