paolo626 / 3DCNN-with-keras

This is code for 3DCNN model base UCF101 dataset. it fix other project min error: https://github.com/kcct-fujimotolab/3DCNN
38 stars 6 forks source link

请问怎么测试模型 #1

Open maziyao opened 4 years ago

paolo626 commented 4 years ago

Hello, Thanks for your replay. Please using .5 file to predict. Here is a demo. It needs to notice that the test file should regular as format as the training file.


from keras.models import load_model
model = load_model('my_model.h5')
print('test after load: ', model.predict(X_test[0:2]))
maziyao commented 4 years ago

ok,thanks