Skip to content

Conversation

@nvbinh15
Copy link
Contributor

Fixes #26099.

Precompute box_bias at initialization using the number of ViT patches and move it to the correct device at inference.

Appreciate your review @amyeroberts @5hadytru!

@nvbinh15
Copy link
Contributor Author

Also update the OWLv2 model with a similar speed-up.

@amyeroberts
Copy link
Contributor

Hi @nvbinh15, thanks for opening this PR! As per the contributing guidelines, we give priority to PRs opened, vs comments on issues. As #29712 was opened first, that will be reviewed before this PR.

@github-actions
Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.

@github-actions github-actions bot closed this Apr 26, 2024
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.

OWL-ViT box_predictor is wildly inefficient since box bias is not precomputed

2 participants