MCPcopy Index your code
hub / github.com/showlab/Code2Video / evaluate_main

Function evaluate_main

src/eval_AES.py:331–348  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

329
330
331def evaluate_main():
332 json_file = "XXX/json_files/long_video_topics_list.json"
333 with open(json_file, "r", encoding="utf-8") as f:
334 knowledge_points = json.load(f)
335
336 evaluator = VideoEvaluator(request_gemini_with_video)
337
338 # ----------------------------------------------------------------------------------------
339 # TODO: target folder
340 video_list = eva_video_list(
341 knowledge_points=knowledge_points,
342 base_dir="XXX/CASES/Sep_ACL_Gemini",
343 )
344
345 batch_results = evaluator.evaluate_video_batch(video_list, max_workers=3, use_parallel=True)
346
347 report = evaluator.generate_evaluation_report(batch_results, output_path=None)
348 print(report)
349
350
351if __name__ == "__main__":

Callers 1

eval_AES.pyFile · 0.85

Calls 4

evaluate_video_batchMethod · 0.95
eva_video_listFunction · 0.90
VideoEvaluatorClass · 0.85

Tested by

no test coverage detected