Closed dragen1860 closed 5 months ago
Dear all: I noticed that you use d get_context_emb_sim() in demo.py but used get_context_emb() in demo_gradio.py. I wonder both the two function are embedding the image&text tokens, what is the difference? thank you.
get_context_emb_sim()
demo.py
get_context_emb()
Both demo and demo_gradio use get_context_emb_sim. get_context_emb_sim is suitable for InstructBLIP, while get_context_emb is suitable for MiniGPT-4.
Dear all: I noticed that you use d
get_context_emb_sim()
indemo.py
but usedget_context_emb()
in demo_gradio.py. I wonder both the two function are embedding the image&text tokens, what is the difference? thank you.