junyanz / iGAN

Interactive Image Generation via Generative Adversarial Networks
MIT License
3.97k stars 587 forks source link

ImportError in train_predict_z.py #9

Closed AtlantixJJ closed 7 years ago

AtlantixJJ commented 7 years ago

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.

junyanz commented 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

AtlantixJJ commented 7 years ago

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.

junyanz commented 7 years ago

I am glad that you resolved the issue.