Skip to content
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

Visualisation for CIFAR-10 Tensorflow implementation #74

Open
gioCanelita opened this issue Oct 15, 2018 · 2 comments
Open

Visualisation for CIFAR-10 Tensorflow implementation #74

gioCanelita opened this issue Oct 15, 2018 · 2 comments

Comments

@gioCanelita
Copy link

Hi,

I am relatively new to tensorflow. I am trying to use your visualisation functions, but I am struggling with the input dictionary. The CIFAR-10 tensorflow implementation does not have an input placeholder. Would I need to modify the code by adding this input, retrain my model and then try the visualisation? Ay guidance on this will be very much appreciated.
The code I am using is ->
https://github.com/tensorflow/models/blob/master/tutorials/image/cifar10/cifar10_train.py

@falaktheoptimist
Copy link
Member

If you look at https://github.com/tensorflow/models/blob/master/tutorials/image/cifar10/cifar10.py - it has images and labels already defined. You will need to find the exact name of the input tensor from the graph and then using the tf.get_tensor_by_name you can get the input tensor. This should be specified as the input in the case of cifar10 for using tf_cnnvis.
Hope this helps.

@amers185
Copy link

amers185 commented Nov 9, 2018

Hello Falak! Thank you for doing such great work. I am an undergraduate student. My partner and I are interested in using your implementation for Mathew Zeiler paper. Specifically, on a set of images, we want to examine which part of pixel area in the original image contributes more toward the final classification probability, by occluding parts of the image for different positions. To that end, we have our own set of images. I was wondering how can we run your code on our images? Further, when I run your examples. Only example 2 seems to work. Others say that a file is missing. Thank you so much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants