Closed AtlantixJJ closed 7 years ago
I haven't tested the code with the latest theano and lasagne. Here is my version information: theano: '0.9.0dev4.dev-RELEASE'; lasagne: 0.2.dev1
I think I figured out what the problem is. The pip seems to install an old version of lasagne. I reinstall lasagne from git repository and the problem is gone.
I am glad that you resolved the issue.
When I run this script, the following error happens: File "train_predict_z.py", line 19, in
from lib import AlexNet
File "../lib/AlexNet.py", line 1, in
from lasagne.layers import InputLayer, Conv2DLayer
File "/home/atlantix/.local/lib/python2.7/site-packages/lasagne/init.py", line 19, in
from . import layers
File "/home/atlantix/.local/lib/python2.7/site-packages/lasagne/layers/init.py", line 7, in
from .pool import *
File "/home/atlantix/.local/lib/python2.7/site-packages/lasagne/layers/pool.py", line 6, in
from theano.tensor.signal import downsample
ImportError: cannot import name downsample
I'm sure the version of theano and lasagne is the latest. And I have tried to reinstall lasagne but the error is still there. Is lasagne not working? Thanks.