From 8a8ffb4540133dc0647244287f154b2c3ea28fe4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=B7=E5=AE=87=E4=BD=B3?= Date: Mon, 17 Feb 2025 15:10:04 +0800 Subject: [PATCH] =?UTF-8?q?PERF=20=E7=89=87=E6=AE=B5=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E9=9A=8F=E6=9C=BA=E6=95=B0=E7=A7=8D=E5=AD=90?= =?UTF-8?q?=20=E6=A8=A1=20=E7=89=87=E6=AE=B5=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- __init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 = {}