asingh33 / CNNGestureRecognizer

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

label in gestureCNN uses integer inputs #32

Closed ashishgupta1350 closed 5 years ago

ashishgupta1350 commented 5 years ago

Replace lines 297 to 303 in gestureCNN with these. Other wise, training won't work on windows, python 3.6

s = 0
    r = samples_per_class

    for classIndex in range(nb_classes):
        label[int(s):int(r)] = classIndex
        s = r
        r = s + samples_per_class
asingh33 commented 5 years ago

Thanks. Can you send a pull request. Will take a look