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

AttributeError: 'Conv2DLayer' object has no attribute 'num_groups' #4

Open
enniyasubbu opened this issue May 5, 2018 · 1 comment

Comments

@enniyasubbu
Copy link

Theano - v1.0.1
Lasagne - v0.2.dev1

Command:
python AED_test.py --filenames 'dataset/schreien_scream.wav' --modelname 'AED_Example_Run_model.pkl' --overlap 4 --results 5 --confidence 0.01

HANDLING IMPORTS...
Using cuDNN version 7103 on context None
Mapped name None to device cuda: GeForce GT 650M (0000:01:00.0)
...DONE!
IMPORTING MODEL... DONE!
Traceback (most recent call last):
  File "AED_test.py", line 159, in <module>
    TEST_NET = getPredictionFuntion(NET)
  File "AED_test.py", line 71, in getPredictionFuntion
    net_output = l.get_output(net, deterministic=True)
  File "/home/enniya/miniconda2/lib/python2.7/site-packages/lasagne/layers/helper.py", line 197, in get_output
    all_outputs[layer] = layer.get_output_for(layer_inputs, **kwargs)
  File "/home/enniya/miniconda2/lib/python2.7/site-packages/lasagne/layers/conv.py", line 352, in get_output_for
    conved = self.convolve(input, **kwargs)
  File "/home/enniya/miniconda2/lib/python2.7/site-packages/lasagne/layers/conv.py", line 643, in convolve
    if self.num_groups > 1:  # pragma: no cover
AttributeError: 'Conv2DLayer' object has no attribute 'num_groups'
@kahst
Copy link
Owner

kahst commented May 7, 2018

The reason for this the newest Lasagne release. num_groups is a new feature to the Conv2DLayer, unfortunately the downloadable snapshot of the net does not support this feature. There's only two options here: Use an older Lasagne version (which might not work well with the newest Theano release) or train your own model and use that snapshot instead.

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

2 participants