piyushgrover commited on
Commit
17e2ed9
·
1 Parent(s): f202322

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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(image, (416, 416))
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
 
 
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