-
Notifications
You must be signed in to change notification settings - Fork 663
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
Custom model with grad-CAM #216
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a custom model that takes two input images and decides whether images are the same or different. I am facing problem to pass multiple inputs. My model architecture is as follows:
The model takes two inputs and extract features using the encoder network. Both features merged and then the rest of the network decides the images are the same or not. I have tried the following code:
I am receiving the following error:
ValueError: slice index 1 of dimension 2 out of bounds. for 'strided_slice' (op: 'StridedSlice') with input shapes: [?,1,1], [3], [3], [3] and with computed input tensors: input[1] = <0 0 1>, input[2] = <0 0 2>, input[3] = <1 1 1>
I am looking for a way to pass two images and plot the heatmaps on both images. Or even, if possible, modify the network architecture to process images one by one. I just want to visualize for a given image, where the network is focusing.
The text was updated successfully, but these errors were encountered: