PERF 片段选择改为随机数种子 模 片段数

This commit is contained in:
康宇佳 2025-02-17 15:10:04 +08:00
parent 5a7742e390
commit 8a8ffb4540
1 changed files with 1 additions and 2 deletions

View File

@ -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 = {}