MCPcopy Create free account
hub / github.com/Breakthrough/PySceneDetect / _load_scenes

Method _load_scenes

benchmark/evaluator.py:8–12  ·  view source on GitHub ↗
(self, scene_filename)

Source from the content-addressed store, hash-verified

6 pass
7
8 def _load_scenes(self, scene_filename):
9 with open(scene_filename) as f:
10 gt_scene_list = [x.strip().split("\t")[1] for x in f.readlines()]
11 gt_scene_list = [int(x) + 1 for x in gt_scene_list]
12 return gt_scene_list
13
14 def evaluate_performance(self, pred_scenes):
15 total_correct = 0

Callers 1

evaluate_performanceMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected