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

keras_network: problems with dropout layers #1

Open
krumnack opened this issue Sep 5, 2017 · 0 comments
Open

keras_network: problems with dropout layers #1

krumnack opened this issue Sep 5, 2017 · 0 comments
Assignees

Comments

@krumnack
Copy link
Member

krumnack commented Sep 5, 2017

when requesting the layer_weights of a dropout layer, the method get_weights() throws an IndexError: list index out of range. Pressing the "Dropout" Button in the Network widget results in:

  File "/net/store/cv/users/krumnack/projects/github/qtpyvis/qtgui/panels/activations.py", line 186, in setLayer
    self.networkinfo.setLayer(self.layer)
  File "/net/store/cv/users/krumnack/projects/github/qtpyvis/qtgui/widgets/networkview.py", line 193, in setLayer
    self.layerText += self._layerInfoString(self.layer_id)
  File "/net/store/cv/users/krumnack/projects/github/qtpyvis/qtgui/widgets/networkview.py", line 211, in _layerInfoString
    if self.network.layer_is_convolutional(layer_id):
  File "/net/store/cv/users/krumnack/projects/github/qtpyvis/network/network.py", line 110, in layer_is_convolutional
    layer_shape = self._get_layer_weights_shape(layer_id)
  File "/net/store/cv/users/krumnack/projects/github/qtpyvis/network/network.py", line 176, in _get_layer_weights_shape
    weights = self.get_layer_weights(layer_id)
  File "/net/store/cv/users/krumnack/projects/github/qtpyvis/network/keras_network.py", line 82, in get_layer_weights
    return self._model.get_layer(layer_id).get_weights()[0]
IndexError: list index out of range
Aborted
@krumnack krumnack assigned krumnack and unassigned JarnoRFB and Petr-By Mar 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants