Spaces:
Runtime error
Runtime error
DongfuJiang
commited on
Commit
•
cb5c689
1
Parent(s):
03b5d97
update
Browse files- app_regression.py +14 -16
app_regression.py
CHANGED
@@ -37,26 +37,24 @@ for item in hd_examples:
|
|
37 |
examples = hd_examples + examples
|
38 |
|
39 |
VIDEO_EVAL_PROMPT = """
|
40 |
-
Suppose you are an expert in judging and evaluating the quality of AI-generated videos,
|
41 |
-
please watch the following frames of a given video and see the text prompt for generating the video,
|
42 |
-
then give scores from
|
43 |
(1) visual quality: the quality of the video in terms of clearness, resolution, brightness, and color
|
44 |
-
(2)
|
45 |
(3) dynamic degree, the degree of dynamic changes
|
46 |
-
(4)
|
47 |
-
(5)
|
48 |
-
(6) factual consistency, the consistency of the video content with the common-sense and factual knowledge
|
49 |
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
Here is an output example:
|
54 |
-
visual quality:
|
55 |
-
|
56 |
-
dynamic degree:
|
57 |
-
|
58 |
-
|
59 |
-
factual consistency: 1.8
|
60 |
|
61 |
For this video, the text prompt is "{text_prompt}",
|
62 |
all the frames of video are as follows:
|
|
|
37 |
examples = hd_examples + examples
|
38 |
|
39 |
VIDEO_EVAL_PROMPT = """
|
40 |
+
Suppose you are an expert in judging and evaluating the quality of AI-generated videos,
|
41 |
+
please watch the following frames of a given video and see the text prompt for generating the video,
|
42 |
+
then give scores from 5 different dimensions:
|
43 |
(1) visual quality: the quality of the video in terms of clearness, resolution, brightness, and color
|
44 |
+
(2) temporal consistency, the consistency of objects or humans in video
|
45 |
(3) dynamic degree, the degree of dynamic changes
|
46 |
+
(4) text-to-video alignment, the alignment between the text prompt and the video content
|
47 |
+
(5) factual consistency, the consistency of the video content with the common-sense and factual knowledge
|
|
|
48 |
|
49 |
+
For each dimension, output a number from [1,2,3,4],
|
50 |
+
in which ‘1’ means ‘Bad’, ‘2’ means ‘Average’, ‘3’ means ‘Good’,
|
51 |
+
'4' means ‘Real’ or ‘Perfect’ (the video is like a real video)
|
52 |
Here is an output example:
|
53 |
+
visual quality: 4
|
54 |
+
temporal consistency: 4
|
55 |
+
dynamic degree: 3
|
56 |
+
text-to-video alignment: 1
|
57 |
+
factual consistency: 2
|
|
|
58 |
|
59 |
For this video, the text prompt is "{text_prompt}",
|
60 |
all the frames of video are as follows:
|