Spaces:
Runtime error
Runtime error
Update gradio_utils.py
Browse files- gradio_utils.py +1 -1
gradio_utils.py
CHANGED
|
@@ -215,7 +215,7 @@ def upload_image_inference(img, transparency):
|
|
| 215 |
|
| 216 |
img_copy= np.float32(img_copy) / 255
|
| 217 |
renormalized_cam = scale_cam_image(renormalized_cam)
|
| 218 |
-
eigencam_image_renormalized = show_cam_on_image(img_copy, renormalized_cam, use_rgb=
|
| 219 |
|
| 220 |
return([[img_copy, annotations],
|
| 221 |
[grayscale_cam, eigencam_image_renormalized]])
|
|
|
|
| 215 |
|
| 216 |
img_copy= np.float32(img_copy) / 255
|
| 217 |
renormalized_cam = scale_cam_image(renormalized_cam)
|
| 218 |
+
eigencam_image_renormalized = show_cam_on_image(img_copy, renormalized_cam, use_rgb=True)
|
| 219 |
|
| 220 |
return([[img_copy, annotations],
|
| 221 |
[grayscale_cam, eigencam_image_renormalized]])
|