We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, first I would like to say I am very new to using your software please forgive me if this is very obvious.
I have a model with two outputs:
I pull the layers and the 1 output I am interested in:
# Convolutional layers indices ixs = [10] # Create outputs of each convolutional layer outputs = [dcec.model.layers[i].output for i in ixs] # define model model_grad = Model(inputs=dcec.model.inputs, outputs=outputs)
resulting in:
I create the grad cam object:
# Create GradCAM++ object gradcam = GradcamPlusPlus(model_grad, model_modifier=ReplaceToLinear(), clone=True)
Then I try to get the cam:
cam = gradcam(CategoricalScore([0,1,2,3,4]), tf.expand_dims(x[1], axis=3))
but this results in an InvalidArgumentError:
InvalidArgumentError: slice index 1 of dimension 0 out of bounds. [Op:StridedSlice] name: strided_slice/
I am not sure what the error is trying to indicate. Any help will be greatly appreciated, thank you.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi, first I would like to say I am very new to using your software please forgive me if this is very obvious.
I have a model with two outputs:
I pull the layers and the 1 output I am interested in:
resulting in:
I create the grad cam object:
Then I try to get the cam:
but this results in an InvalidArgumentError:
I am not sure what the error is trying to indicate. Any help will be greatly appreciated, thank you.
The text was updated successfully, but these errors were encountered: