vahidrezanezhad commited on
Commit
d91337f
·
verified ·
1 Parent(s): 07ad194

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -41,6 +41,8 @@ def visualize_model_output(prediction, img):
41
  output = output.astype(np.float64)
42
  img = img.astype(np.float64)
43
 
 
 
44
  print(output.shape, img.shape,'shapes')
45
 
46
  added_image = cv2.addWeighted(img,1.,output,1.,0)
 
41
  output = output.astype(np.float64)
42
  img = img.astype(np.float64)
43
 
44
+ img = resize_image(img, output.shape[0], output.shape[1])
45
+
46
  print(output.shape, img.shape,'shapes')
47
 
48
  added_image = cv2.addWeighted(img,1.,output,1.,0)