Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Target Layer for YOLOv8-X Model #28

Open
Eric-L-Manibardo opened this issue Feb 4, 2025 · 1 comment
Open

Target Layer for YOLOv8-X Model #28

Eric-L-Manibardo opened this issue Feb 4, 2025 · 1 comment

Comments

@Eric-L-Manibardo
Copy link

Hello,

thanks for your amazing work, there are not many implementations for EigenCAM.

I am currently working on a project where I am using the YOLOv8-X model and I would like to apply EigenCAM for visualizing important regions in the images. However, I am unsure about which layer would be the most appropriate to target for this purpose.

Could you please provide guidance on which target layer should be set when using EigenCAM with the YOLOv8-X model? Specifically, I am looking for the layer that would provide the most informative and accurate visualizations.

Thank you for your assistance!

Additional Context:

Model: YOLOv8-X
Framework: Ultralytics YOLO

@Eric-L-Manibardo
Copy link
Author

When using yolov8-X, the model outputs the following

Image

However, if I do not apply the following line of code and I keep the original image size, explanations are good again (better/ more accurate regarding using yolov8-nano, which makes sense since it is smaller)

img = cv2.resize(img, (640, 640))

Image

Still, I would like to keep the issue open for further discussion and explanation on why the resize impacts on EigenCAM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant