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

image_hidden_state = hidden_state[start_idx:end_idx-1, :] #9

Open
Ryann-Ran opened this issue Dec 4, 2024 · 0 comments
Open

image_hidden_state = hidden_state[start_idx:end_idx-1, :] #9

Ryann-Ran opened this issue Dec 4, 2024 · 0 comments

Comments

@Ryann-Ran
Copy link

Hi, thanks for your excellent work!
I would like to ask about the extraction of image_hidden_state. start_idx is the index of <im_start>, and end_idx is the index of <im_end>. According to the code:

image_hidden_state = hidden_state[start_idx:end_idx-1, :]  

Why is image_hidden_state extracted from start_idx to end_idx-2 instead of from start_idx+1 to end_idx-1 (i.e., [start_idx+1:end_idx, :])?

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