mirror of
https://github.com/zebrajr/faceswap.git
synced 2025-12-06 00:20:09 +01:00
bugfix: Patch writer - handle filenames which are only numeric
This commit is contained in:
parent
2a3845152b
commit
b25f48431d
|
|
@ -95,6 +95,8 @@ class Writer(Output):
|
|||
"""
|
||||
face_idx = str(face_index).rjust(2, "0")
|
||||
fname, ext = os.path.splitext(filename)
|
||||
fname = os.path.basename(fname)
|
||||
|
||||
split_fname = fname.rsplit("_", 1)
|
||||
if split_fname[-1].isdigit():
|
||||
i_frame_no = (int(split_fname[-1]) +
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user