MA-LMM icon indicating copy to clipboard operation
MA-LMM copied to clipboard

some confusion

Open lien99 opened this issue 1 year ago • 2 comments

In the Blip2VicunaInstruct_MALMM class, the 235 and 237 lines of code did not calculate the image embeds in advance. Did you miss it by mistake?

lien99 avatar May 11 '24 02:05 lien99

Another question:I didn't understand how query memory bank is reflected in the code. I noticed that there is the apply_memory_bank function, but query_memory_bank is not defined in the code like self.visual_memory_bank. Is it possible to achieve memory bank-like results just through the attention layer?Thank you very much if you can take the time to answer my questions.

lien99 avatar May 11 '24 07:05 lien99

Thanks for pointing out this bug. I fixed this error and updated it in the latest commit. For the query memory bank, you can check the detailed code here https://github.com/boheumd/MA-LMM/blob/main/lavis/models/blip2_models/blip2.py#L166

boheumd avatar May 12 '24 02:05 boheumd