Skip to content

Commit 605dddd

Browse files
tolgacangozCopilot
andauthored
Update src/diffusers/utils/loading_utils.py
Co-authored-by: Copilot <[email protected]>
1 parent 95c9b04 commit 605dddd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/diffusers/utils/loading_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,10 @@ def load_video(
155155
# Generate sampling indices
156156
sampled_indices = []
157157
for i in range(n_frames):
158-
indice = start_frame + i * interval
159-
if indice >= total_frames:
158+
index = start_frame + i * interval
159+
if index >= total_frames:
160160
break
161-
sampled_indices.append(int(indice))
161+
sampled_indices.append(int(index))
162162

163163
# Read specific frames
164164
for idx in sampled_indices:

0 commit comments

Comments
 (0)