Spaces:
Running
Running
Update app.py
Browse files
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)
|