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

Question about external memory construction #6

Open
Penation opened this issue Aug 1, 2024 · 3 comments
Open

Question about external memory construction #6

Penation opened this issue Aug 1, 2024 · 3 comments

Comments

@Penation
Copy link

Penation commented Aug 1, 2024

Hello, could you provide the code for forming external memory? I would like to know how to form the query when using Q-Former to encode external data. Thanks!

@Jiaxuan-Li
Copy link
Owner

Hi, we use Q-Former to encode the images in external data, which is the same process as encoding input images in EVCap.

            query_outputs_img = self.Qformer.bert(
                query_embeds=query_tokens,
                encoder_hidden_states=image_embeds,
                encoder_attention_mask=image_atts,
                return_dict=True,
            )
            query_output_img = query_outputs_img.last_hidden_state

@Penation
Copy link
Author

Penation commented Oct 2, 2024

Thanks for providing the code! I have an additional request. Could you provide the original images of EVCap's External memory( 14596 (8581 + 5 × 1203) images) instead of tensors? I want to try different operations on RAG images and evaluate the quality of the final generated captioning. Sincerely look forward to your reply!

@emptykk
Copy link

emptykk commented Oct 25, 2024

哥们能交流下吗

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

3 participants