diff --git a/__init__.py b/__init__.py index 829f0d7..f2d60ea 100644 --- a/__init__.py +++ b/__init__.py @@ -91,8 +91,7 @@ class FaceDetect: image, image_selected, cls, prob, nums, period = test_node(image, length=length, thres=threshold, model_name=model) print("全部帧序列", period) if len(period) > 0: - random.seed(main_seed) - start, end = random.choice(period) + start, end = period[main_seed % len(period)] config = {"start": start, "end": end} else: config = {}