MCPcopy Index your code
hub / github.com/Breakthrough/PySceneDetect / run_benchmark

Function run_benchmark

benchmark/__main__.py:64–74  ·  view source on GitHub ↗
(detector: str, dataset: str, detailed: bool)

Source from the content-addressed store, hash-verified

62
63
64def run_benchmark(detector: str, dataset: str, detailed: bool):
65 print(f"Evaluating {detector} on dataset {dataset}...\n")
66 pred_scenes = _detect_scenes(detector=detector, dataset=dataset, detailed=detailed)
67 result = Evaluator().evaluate_performance(pred_scenes)
68 # Print extra separators in detailed output to identify overall results vs individual videos.
69 if detailed:
70 print("------------------------------------------------------------")
71 print(f"\nOverall Results for {detector} on dataset {dataset}:")
72 print(_RESULT_PRINT_FORMAT.format(**result))
73 if detailed:
74 print("------------------------------------------------------------")
75
76
77def create_parser():

Callers 2

run_all_benchmarksFunction · 0.85
mainFunction · 0.85

Calls 4

EvaluatorClass · 0.90
_detect_scenesFunction · 0.85
evaluate_performanceMethod · 0.80
formatMethod · 0.80

Tested by

no test coverage detected