Spaces:
Runtime error
Runtime error
Commit
·
e9a350b
1
Parent(s):
f75b454
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ def greet(input_img, input_model_name, input_tile_mode):
|
|
13 |
# y = int(math.sqrt(256*256/input_img.size[0]*input_img.size[1]))
|
14 |
# x = int(input_img.size[0]/input_img.size[1]*y)
|
15 |
# input_img = ImageOps.fit(input_img, (x, y))
|
16 |
-
|
17 |
if input_model_name not in model_cache:
|
18 |
t1 = time.time()
|
19 |
upscaler = RealWaifuUpScaler(input_model_name[2], ModelPath + input_model_name, half=False, device="cpu")
|
|
|
13 |
# y = int(math.sqrt(256*256/input_img.size[0]*input_img.size[1]))
|
14 |
# x = int(input_img.size[0]/input_img.size[1]*y)
|
15 |
# input_img = ImageOps.fit(input_img, (x, y))
|
16 |
+
input_img = np.array(input_img)
|
17 |
if input_model_name not in model_cache:
|
18 |
t1 = time.time()
|
19 |
upscaler = RealWaifuUpScaler(input_model_name[2], ModelPath + input_model_name, half=False, device="cpu")
|