keplr-io / quiver

Interactive convnet features visualization for Keras
https://keplr-io.github.io/quiver/
MIT License
1.75k stars 223 forks source link

wrong number of feature maps? #65

Closed lesley9309 closed 6 years ago

lesley9309 commented 6 years ago

Hello,

Recently, I used the Quiver to visualized my simple ConvNet. However, I got weird output images. For example, my network has 64 filters in the first conv layer. In my opinion, it should show 64 feature maps using the Quiver when I choose that layer, no? But I got 28 images when I train the mnist dataset, which is the height of the image. I check the size and I got (28,28,64). At the same time, when I use the imagenet, it shows 224 images for the conv1 layer instead of 64 feature maps, where the size of this layer is (224,224,64). Therefore, I'm just wondering if the app takes the wrong number as the number of images. Otherwise, what do the images shows using Quiver for each layer? If someone knows the reason, it will be a great appreciate ! Thank you.

model = VGG16(include_top=True, weights='imagenet') server.launch( model, top=5, temp_folder='./tmp', input_folder='imgs/', port=5000)

jakebian commented 6 years ago

May help if you link to your model code, have seen similar issues with input preprocessing but not with middle layers.

lesley9309 commented 6 years ago

Hi, I installed the Quiver in the same way. And it works for me. I think you should install the gevent library which is not included inside the Quiver.

FYI

Copyright (c) 2009-2012 Denis Bilenko. See LICENSE for details.

""" gevent is a coroutine-based Python networking library that uses greenlet to provide a high-level synchronous API on top of libev event loop.

See http://www.gevent.org/ for the documentation. """

May it could help!

2018-05-28 3:39 GMT+02:00 sodaGH notifications@github.com:

@lesley9309 https://github.com/lesley9309 @jakebian https://github.com/jakebian Sorry to bother you. I want to do the visualization on my own model, but now I have problem running the demo. I first create an environment of python 3.5 by anaconda, and then get into the directory and installed the quiver by pip install quiver_engine . After that, I open the python and imported keras, when I run from quiver_engine import server, an error exist, it tells that: [image: selection_014] https://user-images.githubusercontent.com/18156614/40593417-fe29a0a6-6217-11e8-888e-3d4bd4fd1bf2.png

I can't find the 'gevent.wsgi' file under the quiver_master directory. Could you please tell me how you run the demo and your own model? Do thanks a lot !!!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/keplr-io/quiver/issues/65#issuecomment-392397243, or mute the thread https://github.com/notifications/unsubscribe-auth/AkXIpXhTqBS5phQKnHYGr7EIuHe5SEktks5t21VogaJpZM4TPl8o .

lesley9309 commented 6 years ago

@jakebian I set the data_format='channels_last' for all layers, then it works for me now. The input layer has 3 features with 224x224 resolution