Spaces:
Sleeping
Sleeping
Commit
·
17e2ed9
1
Parent(s):
f202322
Update app.py
Browse files
app.py
CHANGED
@@ -234,9 +234,9 @@ with gr.Blocks() as app:
|
|
234 |
return [plotted_img, None]
|
235 |
|
236 |
grayscale_cam = cam(transformed_image)[0, :, :]
|
237 |
-
img = cv2.resize(
|
238 |
-
img = np.float32(img) / 255
|
239 |
-
cam_image = show_cam_on_image(
|
240 |
return [plotted_img, cam_image]
|
241 |
|
242 |
|
|
|
234 |
return [plotted_img, None]
|
235 |
|
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(transformed_image, grayscale_cam, use_rgb=True, image_weight=transparency)
|
240 |
return [plotted_img, cam_image]
|
241 |
|
242 |
|