mirror of
https://github.com/k4yt3x/video2x.git
synced 2026-02-21 14:24:53 +08:00
basic functions online
This commit is contained in:
@@ -17,8 +17,8 @@ import os
|
||||
|
||||
class WAIFU2X:
|
||||
|
||||
def __init__(self):
|
||||
pass
|
||||
def __init__(self, waifu2x_path):
|
||||
self.waifu2x_path = waifu2x_path
|
||||
|
||||
def upscale(self, factor, folderin, folderout):
|
||||
os.system("waifu2x-caffe-cui.exe -i {} -o {}".format(folderin, folderout))
|
||||
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))
|
||||
|
||||
Reference in New Issue
Block a user