rigvedrs / YOLO-V8-CAM

Wanna know what your model sees? Here's a package for applying EigenCAM on the new YOLO V8 model
MIT License
100 stars 17 forks source link

Confused width and height #6

Closed kolibriks closed 9 months ago

kolibriks commented 9 months ago

yolo_cam/base_cam.py def get_target_width_height

code: width, height = np.shape(input_tensor)[0],np.shape(input_tensor)[1] problem: np.shape returns the height first, then the width

fix: height, width = np.shape(input_tensor)[0],np.shape(input_tensor)[1]

kolibriks commented 9 months ago

created pull request to fix this issue https://github.com/rigvedrs/YOLO-V8-CAM/pull/7#issue-1912152498