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