djl234 commited on
Commit
aaf297a
·
1 Parent(s): 0a31ff1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -105,7 +105,16 @@ 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(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):
 
105
  #result.convert('L').save('0.png')
106
  print('done')
107
  return result
108
+
109
+ img_lst=[(torch.rand(352,352,3)*255).numpy().astype(np.uint8) for i in range(100)]
110
+
111
+
112
+
113
+
114
+
115
+
116
+ #simly test
117
+ res=test('cpu',net,img_lst,5,224)
118
  '''for i in range(5):
119
  assert res[i].shape[0]==352 and res[i].shape[1]==352 and res[i].shape[2]==3'''
120
  def sepia(img1,img2,img3,img4,img5):