keras-team / keras

Deep Learning for humans
http://keras.io/
Apache License 2.0
61.88k stars 19.45k forks source link

mnist_siamese_graph.py gives an error #2125

Closed xpact closed 7 years ago

xpact commented 8 years ago

Updated theano and keras to latest version from github. Running python mnist_siamese_graph.py gives following error: Traceback (most recent call last): File "mnist_siamese_graph.py", line 111, in g.compile(loss={'output': contrastive_loss}, optimizer=rms) File "~/anaconda/lib/python2.7/site-packages/keras/models.py", line 1265, in compile if self.outputs[self.output_order[0]].output_shape[-1] == 1: TypeError: 'NoneType' object has no attribute 'getitem'

PhyloStar commented 8 years ago

Got the same error with Keras 0.3.3. Works with Keras 0.3.2