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

Problem with segmentation model #191

Open
tombinic opened this issue Nov 29, 2024 · 0 comments
Open

Problem with segmentation model #191

tombinic opened this issue Nov 29, 2024 · 0 comments

Comments

@tombinic
Copy link

I want to use this package with my Unet for segmentation but I receive this error:

File "/usr/local/lib/python3.11/dist-packages/tf_explain/core/grad_cam.py", line 52, in explain layer_name = self.infer_grad_cam_target_layer(model) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/dist-packages/tf_explain/core/grad_cam.py", line 86, in infer_grad_cam_target_layer if len(layer.output_shape) == 4: ^^^^^^^^^^^^^^^^^^ AttributeError: 'Conv2D' object has no attribute 'output_shape'

How can I fix it?
Thank you!

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