ReFocus_Code icon indicating copy to clipboard operation
ReFocus_Code copied to clipboard

Reproduction of LLaVA-NeXT + ReFocus

Open wuhang03 opened this issue 1 year ago • 1 comments

Thank you for your excellent work and clean codes! It's really insightful and makes great contribution to VLM research.

I'm also impressed by the performance of LLaVA-NeXT + ReFocus as shown in the paper. However, it seems that the LLaVA-NeXT codes are not in the repo.

Would you please provide the codes or give me some tips about how to repoduct the LLaVA-NeXT + ReFocus results? Thank you for your assistance!

wuhang03 avatar Apr 02 '25 04:04 wuhang03

Thanks for your interest!

Basically, we used GPT4o + ReFocus to solve the Chart and Table VQA problems. Then, in this analysis experiment with LLaVa-NeXT, we feed the original image + QA to the LLaVa-NeXT model, and compare with the result of feeding the edited image from GPT4o + ReFocus and original QA to the LLaVa-NeXT model. The LLaVa-NeXT model is only used for inference. So you should be able to use any code to call and inference with LLaVa-NeXT.

The edited images are output of running GPT4o + ReFocus and should be auto-saved with commands such as python src/main_chartQA.py. Let us know if you meet any questions!

zeyofu avatar Apr 09 '25 01:04 zeyofu