DongfuJiang commited on
Commit
d0b096f
1 Parent(s): e02bc9d
Files changed (1) hide show
  1. app_regression.py +42 -19
app_regression.py CHANGED
@@ -62,6 +62,20 @@ all the frames of video are as follows:
62
  """
63
 
64
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
65
  aspect_mapping= [
66
  "visual quality",
67
  "temporal consistency",
@@ -148,10 +162,15 @@ def eval_video(prompt, video:str):
148
 
149
  def build_demo():
150
  with gr.Blocks() as demo:
151
- gr.Markdown("""
152
- ## Video Evaluation
153
- upload a video along with a text prompt when generating the video, this model will evaluate the video's quality from 7 different dimensions.
154
- """)
 
 
 
 
 
155
  with gr.Row():
156
  video = gr.Video(width=500, label="Video")
157
  with gr.Column():
@@ -169,31 +188,35 @@ def build_demo():
169
  )
170
 
171
  dummy_id = gr.Textbox("id", label="id", visible=False, min_width=50)
172
- dummy_output = gr.Textbox("reference score", label="reference scores", visible=False, lines=7)
173
 
174
  gr.Examples(
175
  examples=
176
  [
177
  [
178
- item['id'],
179
  item['prompt'],
180
  item['video'],
181
- item['conversations'][1]['value']
182
- ] for item in examples
183
  ],
184
- inputs=[dummy_id, video_prompt, video, dummy_output],
 
 
185
  )
186
 
187
- # gr.Markdown("""
188
- # ## Citation
189
- # ```
190
- # @article{jiang2024mantis,
191
- # title={MANTIS: Interleaved Multi-Image Instruction Tuning},
192
- # author={Jiang, Dongfu and He, Xuan and Zeng, Huaye and Wei, Con and Ku, Max and Liu, Qian and Chen, Wenhu},
193
- # journal={arXiv preprint arXiv:2405.01483},
194
- # year={2024}
195
- # }
196
- # ```""")
 
 
197
  return demo
198
 
199
 
 
62
  """
63
 
64
 
65
+
66
+ space_description="""\
67
+ [📃Paper](https://arxiv.org/abs/2406.15252) | [🌐Website](https://tiger-ai-lab.github.io/VideoScore/) | [💻Github](https://github.com/TIGER-AI-Lab/VideoScore) | [🛢️Datasets](https://huggingface.co/datasets/TIGER-Lab/VideoFeedback) | [🤗Model](https://huggingface.co/TIGER-Lab/VideoScore) | [🤗Demo](https://huggingface.co/spaces/TIGER-Lab/VideoScore)
68
+
69
+ - VideoScore is a video quality evaluation model, taking [Mantis-8B-Idefics2](https://huggingface.co/TIGER-Lab/Mantis-8B-Idefics2) as base-model
70
+ and trained on [VideoFeedback](https://huggingface.co/datasets/TIGER-Lab/VideoFeedback),
71
+ a large video evaluation dataset with multi-aspect human scores.
72
+
73
+ - VideoScore can reach 75+ Spearman correlation with humans on VideoEval-test, surpassing all the MLLM-prompting methods and feature-based metrics.
74
+
75
+ - VideoScore also beat the best baselines on other three benchmarks EvalCrafter, GenAI-Bench and VBench, showing high alignment with human evaluations.
76
+ """
77
+
78
+
79
  aspect_mapping= [
80
  "visual quality",
81
  "temporal consistency",
 
162
 
163
  def build_demo():
164
  with gr.Blocks() as demo:
165
+
166
+ gr.Markdown("## VideoScore: Building Automatic Metrics to Simulate Fine-grained Human Feedback for Video Generation")
167
+ with gr.Row():
168
+ gr.Markdown(space_description)
169
+ gr.Image("https://tiger-ai-lab.github.io/VideoScore/static/images/teaser.png", label="Teaser")
170
+
171
+ gr.Markdown("---")
172
+
173
+ gr.Markdown("### Try VideoScore (Regression) with your own text prompt and videos.")
174
  with gr.Row():
175
  video = gr.Video(width=500, label="Video")
176
  with gr.Column():
 
188
  )
189
 
190
  dummy_id = gr.Textbox("id", label="id", visible=False, min_width=50)
191
+ # dummy_output = gr.Textbox("reference score", label="reference scores", visible=False, lines=7)
192
 
193
  gr.Examples(
194
  examples=
195
  [
196
  [
197
+ # item['id'],
198
  item['prompt'],
199
  item['video'],
200
+ # item['conversations'][1]['value']
201
+ ] for item in examples if item['prompt']
202
  ],
203
+ inputs=[video_prompt, video],
204
+ # inputs=[dummy_id, video_prompt, video, dummy_output],
205
+
206
  )
207
 
208
+ gr.Markdown("""
209
+ ## Citation
210
+ ```
211
+ @article{he2024videoscore,
212
+ title = {VideoScore: Building Automatic Metrics to Simulate Fine-grained Human Feedback for Video Generation},
213
+ author = {He, Xuan and Jiang, Dongfu and Zhang, Ge and Ku, Max and Soni, Achint and Siu, Sherman and Chen, Haonan and Chandra, Abhranil and Jiang, Ziyan and Arulraj, Aaran and Wang, Kai and Do, Quy Duc and Ni, Yuansheng and Lyu, Bohan and Narsupalli, Yaswanth and Fan, Rongqi and Lyu, Zhiheng and Lin, Yuchen and Chen, Wenhu},
214
+ journal = {ArXiv},
215
+ year = {2024},
216
+ volume={abs/2406.15252},
217
+ url = {https://arxiv.org/abs/2406.15252},
218
+ }
219
+ ```""")
220
  return demo
221
 
222