Skip to content

Commit

Permalink
npz_to_clip: Don't shadow builtin
Browse files Browse the repository at this point in the history
  • Loading branch information
LightArrowsEXE committed Sep 18, 2024
1 parent 598946d commit 7849b43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lvsfunc/nn/func.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,9 @@ def npz_to_clip(file_paths: list[SPathLike] | SPathLike = []) -> vs.VideoNode:
first_frame = np.load(file_paths[0], allow_pickle=True)[0]
height, width = first_frame['Y'].shape

format = get_format_from_npz(first_frame)
fmt = get_format_from_npz(first_frame)

blank_clip = core.std.BlankClip(None, width, height, format, length=len(file_paths), keep=True)
blank_clip = core.std.BlankClip(None, width, height, fmt, length=len(file_paths), keep=True)

def _read_frame(n: int, f: vs.VideoFrame) -> vs.VideoNode:
loaded_frame = np.load(file_paths[n], allow_pickle=True)[0]
Expand Down

0 comments on commit 7849b43

Please sign in to comment.