CNNGestureRecognizer icon indicating copy to clipboard operation
CNNGestureRecognizer copied to clipboard

GestureCNN.py file was outdated

Open yo-carthy opened this issue 1 year ago • 0 comments

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**

yo-carthy avatar Oct 12 '23 16:10 yo-carthy