draw_convnet's Issues
Vector image
I guess saving figures as vector graphics would have a better resolution:
fig_ext = '.eps'
fig.savefig(os.path.join(fig_dir, 'convnet_fig' + fig_ext),
bbox_inches='tight', pad_inches=0, format='eps')
Not able to add layers
I need to add more convolution layers in my model. But I am not able to understand the code to do so. Can you please help me to do so?
Below is the visualization of model which I want to make. Please help.
Layer (type) Output Shape Param #
conv2d_11 (Conv2D) (None, 126, 126, 16) 448
conv2d_12 (Conv2D) (None, 124, 124, 32) 4640
max_pooling2d_9 (MaxPooling2 (None, 62, 62, 32) 0
conv2d_13 (Conv2D) (None, 60, 60, 32) 9248
max_pooling2d_10 (MaxPooling (None, 30, 30, 32) 0
conv2d_14 (Conv2D) (None, 28, 28, 32) 9248
max_pooling2d_11 (MaxPooling (None, 14, 14, 32) 0
conv2d_15 (Conv2D) (None, 12, 12, 32) 9248
max_pooling2d_12 (MaxPooling (None, 6, 6, 32) 0
dropout_5 (Dropout) (None, 6, 6, 32) 0
flatten_3 (Flatten) (None, 1152) 0
dense_5 (Dense) (None, 32) 36896
dropout_6 (Dropout) (None, 32) 0
dense_6 (Dense) (None, 3) 99
Total params: 69,827
Trainable params: 69,827
Non-trainable params: 0
Needs a more comprehensive use of the library in the README
Issues arising from the lack of examples on how to use in the README file
TypeError: 'map' object is not subscriptable
runfile('S:/draw_convnet-master/draw_convnet.py', wdir='S:/draw_convnet-master')
Traceback (most recent call last):
File "", line 1, in
runfile('S:/draw_convnet-master/draw_convnet.py', wdir='S:/draw_convnet-master')
File "C:\Anaconda3\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 714, in runfile
execfile(filename, namespace)
File "C:\Anaconda3\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 89, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)
File "S:/draw_convnet-master/draw_convnet.py", line 128, in
num=num_show_list[ind],
TypeError: 'map' object is not subscriptable
I use python 3.5.2
How to use the code?
Need more examples or ideas on how to use the code to make a new visualization from an existing model in our hand
How to make 3 Fully connected layer
Hi, thanks for the code. However for my problem I have 3 fully connected layer, however when change
size_list = [(fc_unit_size, fc_unit_size)] * 4
, num_list = [4500, 4500,4500, 1148]
I have this error _IndexError: index 3 is out of bounds for axis 0 with size 3
Do you know how to overcome this ?
Thanks !
Modifying for 1-D convolutions
Hi @gwding
Firstly, thanks for the code! I am trying to modify it for 1-D layers. I am able to get the layers in thin rectangles in order to represent, but I am not able to shift the mappings for these new layers. Could you please guide me about how to do it?
Attached is what I am able to get.
Thanks.
Other architectures?
Hi and thanks a lot for your effort !
It would be nice if other contributors add other examples (other than convnet) based on the code.
I was looking for someone who has a code for drawing a sketch of convolutional autoencoders, in the end, I decided to do it starting from draw_convnet.py
Regards.
Layer Overlap
Layer overlap
Hi, I have a problem, maybe you can answer me, thanks
How do I increase picture size
How to remove one fully connected layer?
I only have one fully connected layer in my conv net. However, when I try to remove it from list num_list = [1, 500]
I get add_layer(patches, colors, size=size_list[ind], num=num_show_list[ind], IndexError: list index out of range
How do I solve this problem?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.