mirror of
https://github.com/k4yt3x/video2x.git
synced 2025-01-04 04:39:10 +00:00
fixing support for waifu2x_ncnn_vulkan
This commit is contained in:
parent
f42a8ab71f
commit
9be46f7d62
@ -4,7 +4,7 @@
|
|||||||
Name: Video2X FFmpeg Controller
|
Name: Video2X FFmpeg Controller
|
||||||
Author: K4YT3X
|
Author: K4YT3X
|
||||||
Date Created: Feb 24, 2018
|
Date Created: Feb 24, 2018
|
||||||
Last Modified: July 27, 2019
|
Last Modified: August 3, 2019
|
||||||
|
|
||||||
Description: This class handles all FFmpeg related operations.
|
Description: This class handles all FFmpeg related operations.
|
||||||
"""
|
"""
|
||||||
@ -159,8 +159,7 @@ class Ffmpeg:
|
|||||||
# Dev: SAT3LL
|
# Dev: SAT3LL
|
||||||
# rename all .png.png suffixes to .png
|
# rename all .png.png suffixes to .png
|
||||||
import re
|
import re
|
||||||
import shutil
|
regex = re.compile(r'\.png\.png$', re.IGNORECASE)
|
||||||
regex = re.compile(r'\.png\.png$')
|
|
||||||
for frame_name in upscaled_frames.iterdir():
|
for frame_name in upscaled_frames.iterdir():
|
||||||
(upscaled_frames / frame_name).rename(upscaled_frames / regex.sub('.png', str(frame_name)))
|
(upscaled_frames / frame_name).rename(upscaled_frames / regex.sub('.png', str(frame_name)))
|
||||||
# END WORKAROUND
|
# END WORKAROUND
|
||||||
|
Loading…
Reference in New Issue
Block a user