mirror of
https://github.com/k4yt3x/video2x.git
synced 2025-11-01 13:11:26 +01:00
2.0.2 showing thread exiting information
This commit is contained in:
parent
7da46ef76d
commit
c7fe16ecb9
10
waifu2x.py
10
waifu2x.py
@ -9,12 +9,14 @@ Last Modified: May 19, 2018
|
|||||||
Description: This class controls waifu2x
|
Description: This class controls waifu2x
|
||||||
engine
|
engine
|
||||||
|
|
||||||
Version 2.0.1
|
Version 2.0.2
|
||||||
"""
|
"""
|
||||||
|
from avalon_framework import Avalon
|
||||||
import subprocess
|
import subprocess
|
||||||
|
import threading
|
||||||
|
|
||||||
|
|
||||||
class WAIFU2X:
|
class Waifu2x:
|
||||||
"""This class communicates with waifu2x cui engine
|
"""This class communicates with waifu2x cui engine
|
||||||
|
|
||||||
An object will be created for this class, containing information
|
An object will be created for this class, containing information
|
||||||
@ -37,6 +39,8 @@ class WAIFU2X:
|
|||||||
width {int} -- output video width
|
width {int} -- output video width
|
||||||
height {int} -- output video height
|
height {int} -- output video height
|
||||||
"""
|
"""
|
||||||
execute = "{} -p {} -I png -i {} -e png -o {} -w {} -h {} -n 3 -m noise_scale -y {}".format(
|
Avalon.debug_info('[upscaler] Thread {} started'.format(threading.current_thread().name))
|
||||||
|
execute = '{} -p {} -I png -i {} -e png -o {} -w {} -h {} -n 3 -m noise_scale -y {}'.format(
|
||||||
self.waifu2x_path, self.method, folderin, folderout, width, height, self.model_type)
|
self.waifu2x_path, self.method, folderin, folderout, width, height, self.model_type)
|
||||||
subprocess.call(execute)
|
subprocess.call(execute)
|
||||||
|
Avalon.debug_info('[upscaler] Thread {} exiting'.format(threading.current_thread().name))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user