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

Quick fix to avoid error when not enough proposals post augmentation #346

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

artemisp
Copy link

artemisp added 2 commits July 16, 2024 18:57
Quick patch to avoid index out of bounds error for some images.
Repeat pad logits in case there are not enough features.
Copy link

@kusstox kusstox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If missing is longer than topk_logits.shape[-1], you will run in the same issue again. To fix it, we should embed it into a while clause

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