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

Meaning of '8' and '4' #13

Open
phellonchen opened this issue Apr 16, 2024 · 1 comment
Open

Meaning of '8' and '4' #13

phellonchen opened this issue Apr 16, 2024 · 1 comment

Comments

@phellonchen
Copy link

phellonchen commented Apr 16, 2024

                    for j in range(8):
                        cur_image_features = image_features[cur_image_idx+j*4]
                        cur_new_input_embeds.append(cur_image_features)
                        cur_new_labels.append(torch.full((cur_image_features.shape[0],), IGNORE_INDEX, device=cur_labels.device, dtype=cur_labels.dtype))

what is the meaning of '8' and '4'?

@zyddnys
Copy link

zyddnys commented May 4, 2024

i got the same issue, if there's only one input image i then image_features shape is [8, 64, 5120], so cur_image_idx+j*4 will lead to out of bound

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

2 participants