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
Running the example for vanilla gradient caused error: ` TypeError Traceback (most recent call last) in () 58 from saliency import GradientSaliency ---> 59 vanilla = GradientSaliency(model) 60 61 mask = vanilla.get_mask(img)
TypeError: init() missing 3 required positional arguments: 'session', 'y', and 'x' `
from saliency import GradientSaliency model = load_model('some_model.hdf5', compile=False) model.compile(loss='mean_squared_error', optimizer='adam') vanilla = GradientSaliency(model) mask = vanilla.get_mask(img) show_image(mask, ax=plt.subplot('121'), title='vanilla gradient') mask = vanilla.get_smoothed_mask(img) show_image(mask, ax=plt.subplot('122'), title='smoothed vanilla gradient')
The text was updated successfully, but these errors were encountered:
@DawnMe Can I know the tensorflow version that you use? I use tensorflow 1.3.
Sorry, something went wrong.
@experiencor tensorflow 1.4.0.
No branches or pull requests
Running the example for vanilla gradient caused error:
`
TypeError Traceback (most recent call last)
in ()
58 from saliency import GradientSaliency
---> 59 vanilla = GradientSaliency(model)
60
61 mask = vanilla.get_mask(img)
TypeError: init() missing 3 required positional arguments: 'session', 'y', and 'x'
`
The text was updated successfully, but these errors were encountered: