-
Notifications
You must be signed in to change notification settings - Fork 216
ValueError #7
Comments
Can you provide a code sample? |
It seems like keras-RetinaNet uses a DenseNet object to build the network. Our library only supports Sequential objects at this time. |
I run into the same issue. It says ValueError: invalid literal for int() with base 10: ''. I think it is because you try to parse the input shape using the following command: |
@ZZHAOatEESI Are you passing the ann_viz() function a Model or a Sequential object? |
@Prodicode
I have tried various methods to make it visualise but nothing helps. Any help is appreciated. Model Summary -
|
@shivam-deepcompute Can you provide the piece of code where you build the keras Sequential model? (Layer by layer) |
@Prodicode
This is my base sequential network, which accepts two inputs, as mentioned in the model summary. I hope this what you asked. |
@Prodicode hello, i use your example , but i met this error below, can you help me ? thanks firstly. OSError Traceback (most recent call last) C:\ProgramData\Anaconda3\lib\site-packages\ann_visualizer\visualize.py in ann_viz(model, view, filename, title) C:\ProgramData\Anaconda3\lib\site-packages\graphviz\files.py in view(self, filename, directory, cleanup) C:\ProgramData\Anaconda3\lib\site-packages\graphviz\files.py in render(self, filename, directory, view, cleanup) C:\ProgramData\Anaconda3\lib\site-packages\graphviz\files.py in _view(self, filepath, format) C:\ProgramData\Anaconda3\lib\site-packages\graphviz\backend.py in view_windows(filepath) OSError: [WinError -2147221003] Application not found: 'network.gv.pdf' import keras; def build_cnn_model(): model.add( model.add( model.add( model.add( model.add(Flatten()) model.add(Dense(10, activation="softmax")) return model model = build_cnn_model() |
Hi! I am using ANN Visualizer to display concatenated/merged layers but get errors, could you direct me how to properly visualize concatenated layers? Here is my code: import keras; network = Sequential(); network.add(Dense(units=6, another_network = Sequential(); #result = Sequential(); #result.add(Dense(units=1, activation='sigmoid',kernel_initializer='uniform'));from ann_visualizer.visualize import ann_viz; ann_viz(result, title = "", view = True); and here is the error: ValueError Traceback (most recent call last) ~/miniconda3/lib/python3.6/site-packages/ann_visualizer/visualize.py in ann_viz(model, view, filename, title) ValueError: ANN Visualizer: Layer not supported for visualizing |
Same error:
|
I am also having the same issue with the following model. Do you know how to fix this? :)
|
sorry, i cant kill this problem.
…On Wed, Nov 14, 2018 at 5:58 PM Simon Olsen ***@***.***> wrote:
I am also having the same issue with the following model. Do you know how
to fix this? :)
self.base_model = Sequential()
self.base_model.add(Conv2D(20, input_shape=(5, 25, 1), kernel_size=(3, 3), strides=(1, 1), padding='same', activation='relu'))
self.base_model.add(Flatten())
self.base_model.add(Dropout(.4))
self.base_model.add(Dense(1))
# Compile model
# self.base_model.summary()
self.base_model.compile(loss='mse', optimizer='adam')
self.base_model.fit(X1, y1, epochs=500, batch_size=128)
ann_viz(self.base_model, title="ANN Topology")
File "...\venv\lib\site-packages\ann_visualizer\visualize.py", line 42, in ann_viz
input_layer = int(str(layer.input_shape).split(",")[1][1:-1]);
ValueError: invalid literal for int() with base 10: ''
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#7 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Adqn8eqYqnmCjsh00gONa4hdcE1VRsnlks5uu-kwgaJpZM4TX-_G>
.
|
@shivam05011996 Did you get the solution? |
|
Hi ! Thanks for this contribution :)
I'm trying to run ann-visualizer on keras-RetinaNet, but I get this error :
ValueError: invalid literal for int() with base 10: 'Non'
Any idea of how to solve it ?
The text was updated successfully, but these errors were encountered: