MCPcopy Create free account
hub / github.com/WorldModelBench-Team/WorldModelBench / _load_video

Method _load_video

evaluation.py:130–137  ·  view source on GitHub ↗

Load a video file for evaluation.

(self, video_name: str)

Source from the content-addressed store, hash-verified

128 return llava.load(judge_path)
129
130 def _load_video(self, video_name: str) -> Optional['llava.Video']:
131 """Load a video file for evaluation."""
132 video_path = self.video_dir / f"{video_name}.mp4"
133 if not video_path.exists():
134 self.logger.warning(f"Video not found: {video_path}")
135 return None
136 import llava
137 return llava.Video(str(video_path))
138
139 def evaluate_video(self, video: 'llava.Video', prompt: str, cot: bool = True) -> str:
140 """Generate evaluation content for a video."""

Callers 1

mainFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected