-
Notifications
You must be signed in to change notification settings - Fork 235
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
Can I "load_model"? #10
Comments
Same issue on the Pytorch version: grads_val = self.extractor.get_gradients()[-1].cpu().data.numpy() IndexError: list index out of range |
Probably too late, but change l.name is layer_name to l.name == layer_name: conv_output = [l for l in model.layers if l.name == layer_name][0].output |
Hi, Have you found the solution? Thanks. |
您好按照您发的代码修改后仍然报错: conv_output = [l for l in model.layers if l.name == layer_name][0].output |
Thank you for your great code! I'm trying to use it for other keras classifier models.
However, I got an error shown below with other models than VGG16 as it is.
How can I load model and weights? Is it possible to use "load_model"?
IndexError: list index out of range
The text was updated successfully, but these errors were encountered: