Update app.py
Browse files
app.py
CHANGED
@@ -105,7 +105,7 @@ def test(gpu_id, net, img_list, group_size, img_size):
|
|
105 |
#result.convert('L').save('0.png')
|
106 |
print('done')
|
107 |
return result
|
108 |
-
res=test('cpu',net,[(torch.rand(352,352,3)*255).numpy().astype(np.uint8) for i in range(
|
109 |
'''for i in range(5):
|
110 |
assert res[i].shape[0]==352 and res[i].shape[1]==352 and res[i].shape[2]==3'''
|
111 |
def sepia(img1,img2,img3,img4,img5):
|
|
|
105 |
#result.convert('L').save('0.png')
|
106 |
print('done')
|
107 |
return result
|
108 |
+
res=test('cpu',net,[(torch.rand(352,352,3)*255).numpy().astype(np.uint8) for i in range(100)],5,224)
|
109 |
'''for i in range(5):
|
110 |
assert res[i].shape[0]==352 and res[i].shape[1]==352 and res[i].shape[2]==3'''
|
111 |
def sepia(img1,img2,img3,img4,img5):
|