mirror of
https://github.com/k4yt3x/video2x.git
synced 2026-05-23 04:37:31 +08:00
updates processing unit selection option
This commit is contained in:
@@ -17,8 +17,9 @@ import os
|
||||
|
||||
class WAIFU2X:
|
||||
|
||||
def __init__(self, waifu2x_path):
|
||||
def __init__(self, waifu2x_path, method):
|
||||
self.waifu2x_path = waifu2x_path
|
||||
self.method = method
|
||||
|
||||
def upscale(self, folderin, folderout, width, height):
|
||||
os.system("{} -p cpu -I png -i {} -e png -o {} -w {} -h {}".format(self.waifu2x_path, folderin, folderout, width, height))
|
||||
os.system("{} -p {} -I png -i {} -e png -o {} -w {} -h {}".format(self.waifu2x_path, self.method, folderin, folderout, width, height))
|
||||
|
||||
Reference in New Issue
Block a user