nicknochnack / ActionDetectionforSignLanguage

A practical implementation of sign language estimation using an LSTM NN built on TF Keras.
410 stars 253 forks source link

AttributeError: 'str' object has no attribute 'decode' #2

Closed 007rohitSaini closed 3 years ago

007rohitSaini commented 3 years ago

i am getting his error on model.load_weights('action.h5")

SutirthaChakraborty commented 3 years ago

Add this block :

model = Sequential()
model.add(LSTM(64, return_sequences=True, activation='relu', input_shape=(30,1662)))
model.add(LSTM(128, return_sequences=True, activation='relu'))
model.add(LSTM(64, return_sequences=False, activation='relu'))
model.add(Dense(64, activation='relu'))
model.add(Dense(32, activation='relu'))
model.add(Dense(actions.shape[0], activation='softmax'))
model.compile(optimizer='Adam', loss='categorical_crossentropy', metrics=['categorical_accuracy'])
model.load_weights('action.h5')

This will load the weight

007rohitSaini commented 3 years ago

Thanks