-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Open
Description
Hi,I find a bug in gradcam.py
The Image package use w,h mode. However, the precessed image is a tensor with 1,c,h,w. So,the order of w and h need to be switched when using Image.resize.
Line 88,change
cam = np.uint8(Image.fromarray(cam).resize((input_image.shape[2],
input_image.shape[3]), Image.ANTIALIAS))
to
cam = np.uint8(Image.fromarray(cam).resize((input_image.shape[3],
input_image.shape[2]), Image.ANTIALIAS))
nianjieZhang and pake001
Metadata
Metadata
Assignees
Labels
No labels