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

importing errors? #6

Open
icecloud-dcp opened this issue Oct 6, 2017 · 3 comments
Open

importing errors? #6

icecloud-dcp opened this issue Oct 6, 2017 · 3 comments

Comments

@icecloud-dcp
Copy link

AT the very first code of AlexNet_Experiments.ipynb I just rub cell[1] and got the followig errors.
Plz help me.
---int[1]---
from keras.preprocessing.image import ImageDataGenerator
from keras.optimizers import SGD

from alexnet_base import *
from utils import *

---error message---
Using Theano backend.
ImportError Traceback (most recent call last)
in ()
2 from keras.optimizers import SGD
3
----> 4 from alexnet_base import *
5 from utils import *

~\DeepLeanviaKreasTheano\Code\alexnet_base.py in ()
11 Input, merge, Lambda
12 from keras.layers.convolutional import Convolution2D, MaxPooling2D, ZeroPadding2D
---> 13 from convnetskeras.customlayers import convolution2Dgroup, crosschannelnormalization,
14 splittensor, Softmax4D
15

~\DeepLeanviaKreasTheano\convnets-keras\convnetskeras\customlayers.py in ()
1 import numpy as np
----> 2 from keras.layers.core import Lambda, Merge
3 from keras.layers.convolutional import Convolution2D
4 from keras import backend as K
5

ImportError: cannot import name 'Merge'

@Gokkulnath
Copy link

Gokkulnath commented Oct 6, 2017

Check you Keras Version. This Repo requires a older version of Keras ( I guess Keras 1.2 Mentioned in the other issues by duggalrahul). The Merge thing has been deprecated from Version 2.0. Please consider downgrading to Keras 1.2 if u want to experiment with the repo. Hope it helps.

@icecloud-dcp
Copy link
Author

Thanks. I downgraded keras. It was OK. But another minor error occurred in alexnet.symmary() as
File "", line 3
print alexnet.summary()
^
SyntaxError: invalid syntax

Is there any getting around this?

@icecloud-dcp
Copy link
Author

Sorry because I am using python 3.5. It resolved. thanks.

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