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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -234,7 +234,7 @@ with gr.Blocks() as app:
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]
 
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]