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

Deepdream for Mobilenet V2 COCO model #58

Closed
endeepak opened this issue Jul 17, 2018 · 4 comments
Closed

Deepdream for Mobilenet V2 COCO model #58

endeepak opened this issue Jul 17, 2018 · 4 comments

Comments

@endeepak
Copy link

I'm trying deepdream_visualization on ssdlite_mobilenet_v2_coco model by modifying the tf_cnnvis_Example3.ipynb. I have set the input layer to FeatureExtractor/MobilenetV2/MobilenetV2/input and visualisation layer to import/FeatureExtractor/MobilenetV2/layer_19_2_Conv2d_5_3x3_s2_128/BatchNorm/batchnorm/add_1

Given these layers, deepdream_visualization generated uninterpretable image as shown below
image_1

I'm not sure if I have chosen the correct layers for input and visualization. Any pointers on this would be very useful

Thanks

@endeepak
Copy link
Author

Modified notebook for ssdlite_mobilenet_v2_coco model can be found in https://github.com/endeepak/tf_cnnvis/blob/master/examples/tf_cnnvis_Example3.ipynb

Changes can be found in commit endeepak@96d7a45#diff-3d2ac2a68d31d5613fd599622217b371

@endeepak
Copy link
Author

I was able to figure out the correct input and output layers using tools/graph_transforms:summarize_graph from tensorflow docs. I'm currently stuck with issue #26

Layer name changes can be found here endeepak@93d4d2e

@falaktheoptimist
Copy link
Member

Hi @endeepak
Sorry for the late reply. Thanks to your model, we were able to figure out the cause for the NoneType error in issue #26. It occurs when one of the layers/ operations in the model does not have a gradient defined for it. In this case, forward pass and hence activation visualization would work fine but back propagation or de convolution would not work and hence gives the NoneType error.

@falaktheoptimist
Copy link
Member

Closing this for lack of activity. Reopen if needed.

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

2 participants