pytorch-grad-cam icon indicating copy to clipboard operation
pytorch-grad-cam copied to clipboard

Address cv2.resize float16 issue in scale_cam_image

Open Christophe-Foyer opened this issue 11 months ago • 1 comments

https://github.com/jacobgil/pytorch-grad-cam/issues/198 https://github.com/jacobgil/pytorch-grad-cam/issues/493

Putting in a PR to go along with my issue post.

cv2.resize doesn't support float16 which causes this step to break. This fixes the issue with not downstream consequences that I can identify since the resulting image gets converted to lfoat32 anyways.

Christophe-Foyer avatar Mar 15 '24 16:03 Christophe-Foyer

any chance we can merge and release? @Christophe-Foyer

giorgiop avatar May 16 '24 13:05 giorgiop

Merged. Thank you for the contribution.

jacobgil avatar May 28 '24 11:05 jacobgil