Skip to content

Commit

Permalink
Update scenedetectNode.py
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowcz007 committed Sep 12, 2024
1 parent 49b750a commit da4dcf9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nodes/scenedetectNode.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ def calculate_sample_range(start_frame, middle_frame, end_frame, number_of_sampl
# 初始化采样帧列表
samples = [middle_frame]

if number_of_sample_frames==1:
return samples

# 计算间隔
interval_before = (middle_frame - start_frame) // half_samples
interval_after = (end_frame - middle_frame) // half_samples
Expand Down

0 comments on commit da4dcf9

Please sign in to comment.