-
Notifications
You must be signed in to change notification settings - Fork 45
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
Graph disconected: custom model with two inputs #48
Comments
Hi, @SergioG-M , Sorry for late reply. The cause of the problem is that your model is cascaded, that is, the model includes EfficientNet models. So you need to slightly devise to build such model.
... to like below:
Then, please try to GradCAM! Thanks! |
Hi! I also used transfer learning and your suggestion in the previous comment helped me to solve the issue.
The function builds model, but layerCam doesn't work if I apply data processing layers |
Hi, I'm getting an error when I try to get the grad-cam visualizations for a custom model with two inputs. A minimal working example follows
Then when I try to call to GradCam I get:
ValueError: Graph disconnected: cannot obtain value for tensor Tensor("input_1:0", shape=(None, 224, 224, 3), dtype=float32) at layer "rescaling". The following previous layers were accessed without issue: []
Any idea how can i solve this?
The text was updated successfully, but these errors were encountered: