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

gt_mask shape is (0, x, y) while pred_mask shape is (some number, x, y), which raise assertion error for vqa and reason seg datasets #120

Open
Jefferyy-Peng opened this issue Mar 26, 2024 · 0 comments

Comments

@Jefferyy-Peng
Copy link

Hi, In utils/vqa_datasets.py, at line 122. masks = torch.rand(0, *ori_size). This code create mask of shape (0, *ori_size). While in the LISAForCausalLM's model_forward function, it asserts assert ( gt_mask.shape[0] == pred_mask.shape[0]), "gt_mask.shape: {}, pred_mask.shape: {}".format(gt_mask.shape, pred_mask.shape). pred_mask have shape (some number, *ori_size) where some number depends on the offset, which raise assertion error.

Could you explain why this error raises and also what does offset represents?

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

1 participant