Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -59,7 +59,7 @@ def show_cam_on_image(img: np.ndarray,
|
|
59 |
raise Exception(
|
60 |
"The input image should np.float32 in the range [0, 1]")
|
61 |
|
62 |
-
cam = 0.
|
63 |
# cam = heatmap
|
64 |
# cam = cam / np.max(cam)
|
65 |
return np.uint8(255 * cam)
|
|
|
59 |
raise Exception(
|
60 |
"The input image should np.float32 in the range [0, 1]")
|
61 |
|
62 |
+
cam = 0.5*heatmap + 0.5*img
|
63 |
# cam = heatmap
|
64 |
# cam = cam / np.max(cam)
|
65 |
return np.uint8(255 * cam)
|