-
Notifications
You must be signed in to change notification settings - Fork 121
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
lasagne and nolearn version #8
Comments
Are you using the nolearn and lasagne versions specified in the |
@sveitser thanks,it seems to be coming from some other direction.I used your requirements.txt after your suggestion and still got this error.Actually I'm trying this program on some other pictures after changing the necessary parameters in config.So seems like it's not version issue. File "", line 1, in File "/home/tanay/anaconda/lib/python2.7/site-packages/spyderlib/widgets/externalshell/sitecustomize.py", line 699, in runfile File "/home/tanay/anaconda/lib/python2.7/site-packages/spyderlib/widgets/externalshell/sitecustomize.py", line 81, in execfile File "/home/tanay/Documents/kaggle_diabetic/train_nn.py", line 50, in File "/home/tanay/anaconda/lib/python2.7/site-packages/click/core.py", line 610, in call File "/home/tanay/anaconda/lib/python2.7/site-packages/click/core.py", line 590, in main File "/home/tanay/anaconda/lib/python2.7/site-packages/click/core.py", line 782, in invoke File "/home/tanay/anaconda/lib/python2.7/site-packages/click/core.py", line 416, in invoke File "/home/tanay/Documents/Calscan/kaggle_diabetic/train_nn.py", line 41, in main File "/home/tanay/Documents/kaggle_diabetic/src/nolearn-master/nolearn/lasagne/base.py", line 487, in load_params_from File "nn.py", line 131, in initialize File "/home/tanay/Documents/kaggle_diabetic/src/nolearn-master/nolearn/lasagne/base.py", line 270, in initialize_layers File "/home/tanay/Documents/kaggle_diabetic/src/nolearn-master/nolearn/_compat.py", line 12, in chain_exception File "/home/tanay/Documents/kaggle_diabetic/src/nolearn-master/nolearn/lasagne/base.py", line 265, in initialize_layers File "/home/tanay/Documents/kaggle_diabetic/src/lasagne-master/lasagne/layers/conv.py", line 375, in init TypeError: Failed to instantiate <class 'lasagne.layers.conv.Conv2DLayer'> with args {'b': <lasagne.init.Constant object at 0x7f1582c81b50>, 'incoming': <lasagne.layers.conv.Conv2DLayer object at 0x7f1582c27ed0>, 'name': 'conv2d2', 'nonlinearity': <lasagne.nonlinearities.LeakyRectify object at 0x7f158274f5d0>, 'filter_size': (4, 4), 'pad': 2, 'W': <lasagne.init.Orthogonal object at 0x7f1582c81b10>, 'num_filters': 32, 'untie_biases': True, 'border_mode': None}. |
The master branch requires a GPU and CuDNN (see the readme). If you'd like to run the code on the CPU the |
Will it be possible for you guys to point out what all are the modifications be required to handle lasagne.objectives.Objective deprication.For example I've changed the code in get_objective from loss = super(RegularizedObjective, self).get_loss( to However that doesn't seem to be sufficient. |
Sorry for the late reply. Have you tried the https://github.com/sveitser/kaggle_diabetic/blob/deterministic/nn.py#L55-L73 |
After many years, I have a question regarding dependencies. I hope there is still someone active here. I am trying to run I installed the dependencies by using requirements.txt, however, I get an error with numpy The solution for this numpy error is to update the numpy library. However, if I update it, then I get an error with lasagne If I update lasagne, theano, nolearn libraries, this is what I am getting... Thank you very much for your help. |
When I run this code I get following error which I believe is happening because of version conflict of lasagne or nolearn between build and present version. Could you tell me what version or commit-point of lasagne and nolearn you have used in this project.
File "/home/tanay/src/lasagne/lasagne/layers/conv.py", line 391, in init
super(Conv2DLayer, self).init(incoming, **kwargs)
TypeError: Failed to instantiate <class 'lasagne.layers.conv.Conv2DLayer'> with args {'b': <lasagne.init.Constant object at 0x7fab337e74d0>, 'incoming': <lasagne.layers.input.InputLayer object at 0x7fab31f54390>, 'name': 'conv2d1', 'nonlinearity': <lasagne.nonlinearities.LeakyRectify object at 0x7fab3b5e0250>, 'filter_size': (4, 4), 'stride': (2, 2), 'W': <lasagne.init.Orthogonal object at 0x7fab337e7450>, 'num_filters': 32, 'untie_biases': True, 'border_mode': 'same'}.
Maybe parameter names have changed?
The text was updated successfully, but these errors were encountered: