Update app.py
Browse files
app.py
CHANGED
@@ -15,10 +15,11 @@ if not os.path.exists("results"):
|
|
15 |
def infer(img):
|
16 |
#img = ImageOps.contain(img, (700, 700))
|
17 |
width, height = img.size
|
18 |
-
res=np.ones_like(
|
19 |
print(res.shape)
|
20 |
print(width)
|
21 |
img.save("./data/data.png")
|
|
|
22 |
os.system('python main_test_swinir.py')
|
23 |
res=Image.open("./results/data.png")
|
24 |
return res
|
|
|
15 |
def infer(img):
|
16 |
#img = ImageOps.contain(img, (700, 700))
|
17 |
width, height = img.size
|
18 |
+
res=np.ones_like((width, height,3))
|
19 |
print(res.shape)
|
20 |
print(width)
|
21 |
img.save("./data/data.png")
|
22 |
+
img.save("./results/data.png")
|
23 |
os.system('python main_test_swinir.py')
|
24 |
res=Image.open("./results/data.png")
|
25 |
return res
|