Determine the number of output neurons #36
Replies: 4 comments 2 replies
-
Hey @davy-blavette, thank you so much for using CNN Explainer! Currently the visualization is hardcoded to fit the architecture of tiny-vgg (number of layers and number of neurons at each layer). Therefore, to Use CNN Explainer on a different model architecture, you would need to manually modify the visualization code. You can check out these related issues: #2, #8, #15, #34, #35. Some functions you want to look into are listed in this comment. If you want to change the number of output neurons, you would also need to modify how the flatten layer and logit layer are drawn. cnn-explainer/src/overview/flatten-draw.js Lines 990 to 998 in b9c1759 cnn-explainer/src/overview/flatten-draw.js Lines 216 to 233 in b9c1759 |
Beta Was this translation helpful? Give feedback.
-
Hooray! That's nice @davy-blavette! Thanks for using the GitHub discussion feature. I believe there will be users having similar questions in the future. I will point them to your thread. (๑•̀ㅂ•́)و✧ |
Beta Was this translation helpful? Give feedback.
-
Hey @xiaohk, so I have integrate cnnExplainer into my datatrainx project. I adapted it to read my own model on a FER2013 base on a single gray channel. You can see it in action on https://datatrainx.akairnet.fr/ via the menu, choose cnnExplainer. The server is on a home network so bad...I tried as much as possible to quote you, but if I've forgotten something, don't hesitate to tell me. Thank you for your work. |
Beta Was this translation helpful? Give feedback.
-
Hello @davy-blavette! Wow, your demo looks great!! It seems the simple model can classify emotions fairly well. I really like this figure too: |
Beta Was this translation helpful? Give feedback.
-
Thanks for this work. I am trying to customize the number of output neurons to 7 instead of 10 to test another classification but without success. I have a compatibility problem between the trained model and CNN explainer.
I have customized the number of class on tiny-vgg.py, line 257, NUM_CLASS = 7 and adapted the classLists on config.js but it does not seem sufficient. Can you help me ?
Beta Was this translation helpful? Give feedback.
All reactions