vahidrezanezhad commited on
Commit
6d3987f
1 Parent(s): d91337f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -38,11 +38,13 @@ def visualize_model_output(prediction, img):
38
  output[:,:,1][prediction[:,:,0]==unq_class] = rgb_class_unique[1]
39
  output[:,:,2][prediction[:,:,0]==unq_class] = rgb_class_unique[2]
40
 
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)
 
38
  output[:,:,1][prediction[:,:,0]==unq_class] = rgb_class_unique[1]
39
  output[:,:,2][prediction[:,:,0]==unq_class] = rgb_class_unique[2]
40
 
41
+
 
42
 
43
  img = resize_image(img, output.shape[0], output.shape[1])
44
 
45
+ output = output.astype(np.int32)
46
+ img = img.astype(np.int32)
47
+
48
  print(output.shape, img.shape,'shapes')
49
 
50
  added_image = cv2.addWeighted(img,1.,output,1.,0)