You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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'smodel_forward
function, it assertsassert ( 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?
The text was updated successfully, but these errors were encountered: