import gradio as gr import pandas as pd block = gr.Blocks(title="Q-Bench Leaderboard") LEADERBORAD_INTRODUCTION = """# Q-Bench Leaderboard **[ICLR 2024 Spotlight]** *"How do multi-modaility LLMs perform on low-level computer vision?"* 🏆 Welcome to the leaderboard of the **Q-Bench**! *A Comprehensive Benchmark Suite for General-purpose Foundation Models on Low-level Vision*
- **Low-level Visual Perception (A1):** Open-range multi-choice questions on low-level visual perception. Dataset: [LLVisionQA](https://huggingface.co/datasets/teowu/LLVisionQA-QBench) - **Low-level Visual Description (A2):** Detailed description on low-level visual attributes. Dataset: [LLDescribe](https://huggingface.co/datasets/teowu/LLDescribe-QBench) - **Visual Quality Assessment (A3):** MLLMs can give a *precise visual quality score* via *logprobs*! Right now we only include results validated in our paper. We will allow user submission soon. """ with block: gr.Markdown( LEADERBORAD_INTRODUCTION ) with gr.Tab("Perception (A1-Single, dev)"): gr.DataFrame(pd.read_csv("qbench_a1_single_dev.csv")) with gr.Tab("Perception (A1-Single, test)"): gr.DataFrame(pd.read_csv("qbench_a1_single_test.csv")) with gr.Tab("Perception (A1-Pair, dev)"): gr.DataFrame(pd.read_csv("qbench_a1_pair_dev.csv")) with gr.Tab("Perception (A1-Pair, test)"): gr.DataFrame(pd.read_csv("qbench_a1_pair_test.csv")) with gr.Tab("Description (A2-Single)"): gr.DataFrame(pd.read_csv("qbench_a2_single.csv")) with gr.Tab("Description (A2-Pair)"): gr.DataFrame(pd.read_csv("qbench_a2_pair.csv")) with gr.Tab("Assessment (A3)"): gr.DataFrame(pd.read_csv("qbench_a3_single.csv")) with gr.Tab("Submit to Q-Bench (coming soon!)"): gr.Markdown( "We will release the submission guidance here soon!" ) block.launch(share=True)