Spaces:
Sleeping
Sleeping
Commit
·
d246538
1
Parent(s):
b440ae6
Update app.py
Browse files
app.py
CHANGED
@@ -236,7 +236,7 @@ with gr.Blocks() as app:
|
|
236 |
grayscale_cam = cam(transformed_image)[0, :, :]
|
237 |
img = cv2.resize(transformed_image, (cfg.IMAGE_SIZE, cfg.IMAGE_SIZE))
|
238 |
#img = np.float32(img) / 255
|
239 |
-
cam_image = show_cam_on_image(
|
240 |
return [plotted_img, cam_image]
|
241 |
|
242 |
|
|
|
236 |
grayscale_cam = cam(transformed_image)[0, :, :]
|
237 |
img = cv2.resize(transformed_image, (cfg.IMAGE_SIZE, cfg.IMAGE_SIZE))
|
238 |
#img = np.float32(img) / 255
|
239 |
+
cam_image = show_cam_on_image(img, grayscale_cam, use_rgb=True, image_weight=transparency)
|
240 |
return [plotted_img, cam_image]
|
241 |
|
242 |
|