PERF 片段选择改为随机数种子 模 片段数
This commit is contained in:
parent
5a7742e390
commit
8a8ffb4540
|
|
@ -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 = {}
|
||||
|
|
|
|||
Loading…
Reference in New Issue