You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'
The text was updated successfully, but these errors were encountered:
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.
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
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'
The text was updated successfully, but these errors were encountered: