asingh33 / CNNGestureRecognizer

Gesture recognition via CNN. Implemented in Keras + Tensorflow/Theano + OpenCV
MIT License
977 stars 357 forks source link

GestureCNN.py file was outdated #94

Open yo-carthy opened 11 months ago

yo-carthy commented 11 months ago

When we ran the GestureCCN.py file, we faced 2 errors in the imports:

  1. ImportError: cannot import name 'adam' from 'keras.optimizers'
  2. ImportError: cannot import name np_utils So we updated the 2 import requests to:
from keras.models import Sequential
from keras.layers import Dense, Dropout, Activation, Flatten
from keras.layers import Conv2D, MaxPooling2D, ZeroPadding2D
from keras.optimizers import SGD,RMSprop,**Adam**
from keras.utils import **to_categorical**