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

Exception when running bash eval_res.sh #15

Open
juxingyiwan opened this issue Mar 22, 2024 · 0 comments
Open

Exception when running bash eval_res.sh #15

juxingyiwan opened this issue Mar 22, 2024 · 0 comments

Comments

@juxingyiwan
Copy link

Dear author, NExT-Chat's capability of fine-grained image comprehension is really fascinating. But when I run bash eval_res.sh with param --per_device_eval_batch_size 2, an exception was raised. Here it is:

  File "NExT-Chat/./mllm/models/sam/modeling_sam.py", line 1006, in forward
    sparse_embeddings = torch.cat([sparse_embeddings, box_embeddings], dim=1)
RuntimeError: Sizes of tensors must match except in dimension 1. Expected size 2 but got size 4 for tensor number 1 in the list.

Sorry for its length, but I discovered that dimensions of sparse_embeddings and box_embeddings do not match. Any suggestion?

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