yuvalkirstainmeta
commited on
Commit
•
1374d00
1
Parent(s):
9cdfe7c
Update README.md
Browse files
README.md
CHANGED
@@ -58,17 +58,19 @@ We are releasing two versions of the benchmark:
|
|
58 |
from datasets import load_dataset
|
59 |
|
60 |
# to download only the prompts
|
61 |
-
dataset = load_dataset("meta-ai-for-media-research/movie_gen_video_bench", split="test")
|
62 |
-
|
|
|
|
|
63 |
|
64 |
# to download the prompts and movie gen generations
|
65 |
-
dataset = load_dataset("meta-ai-for-media-research/movie_gen_video_bench", split="test_with_generations")
|
66 |
-
|
|
|
67 |
|
68 |
-
# to display
|
69 |
import mediapy
|
70 |
|
71 |
-
example = dataset[0]
|
72 |
with open("tmp.mp4", "wb") as f:
|
73 |
f.write(example["video"])
|
74 |
|
|
|
58 |
from datasets import load_dataset
|
59 |
|
60 |
# to download only the prompts
|
61 |
+
dataset = load_dataset("meta-ai-for-media-research/movie_gen_video_bench", split="test", streaming=True)
|
62 |
+
for example in dataset:
|
63 |
+
print(example)
|
64 |
+
break
|
65 |
|
66 |
# to download the prompts and movie gen generations
|
67 |
+
dataset = load_dataset("meta-ai-for-media-research/movie_gen_video_bench", split="test_with_generations", streaming=True)
|
68 |
+
for example in dataset:
|
69 |
+
break
|
70 |
|
71 |
+
# to display Movie Gen generated video and the prompt on jupyter notebook
|
72 |
import mediapy
|
73 |
|
|
|
74 |
with open("tmp.mp4", "wb") as f:
|
75 |
f.write(example["video"])
|
76 |
|