yu4u / convnet-drawer

Python script for illustrating Convolutional Neural Networks (CNN) using Keras-like model definitions
MIT License
594 stars 99 forks source link

TypeError: super() takes at least 1 argument (0 given) #3

Open gracecalvertyoung opened 6 years ago

gracecalvertyoung commented 6 years ago

Running the example (AlexNet.py) I get the error "TypeError: super() takes at least 1 argument (0 given" from the line "model = Model(input_shape=(224, 224, 3))." Any ideas?

yu4u commented 6 years ago

It is because Python 2.x had not been supported at that time. I modified my code to support Python 2.x, and thus now you should not get the error.