Closed joe-hu closed 5 years ago
The dataset is a available, but you are trying to evaluate a model without first training it, so it cannot find the weight file.
You need to uncomment the train function and train a model first.
Thank you for your help! i uncommented hte train function in arem_model , however i got the same error: Train on 43 samples, validate on 39 samples Epoch 1/600
Epoch 00001: loss improved from inf to 2.13436, saving model to ./weights/AReM_weights.h5
Traceback (most recent call last):
File "E:/program/MLSTM-FCN-master/arem_model.py", line 195, in
i am looking forward for your help
Try creating a directory called weights and training a model then.
thank you for your kind reply. i am a newbie in Python. Could you please point me to create a directory called weights in detail. i have no ideal about it.
The weights cannot be created because there is no weights folder at the root of the project. Just create a new folder called weights.
it worked for me! thank you very much!
Hello, First of all, thank you for your sharing ,it's a nice job. I was trying to run the action_3d_model but I'm getting the following error: Traceback (most recent call last): File "E:/program/MLSTM-FCN-master/action_3d_model.py", line 199, in
evaluate_model(model, DATASET_INDEX, dataset_prefix='action_3d', batch_size=128)
File "E:\program\MLSTM-FCN-master\utils\keras_utils.py", line 195, in evaluate_model
model.load_weights(weight_fn)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\keras\engine\network.py", line 1157, in load_weights
with h5py.File(filepath, mode='r') as f:
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\h5py_hl\files.py", line 394, in init
swmr=swmr)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\h5py_hl\files.py", line 170, in make_fid
fid = h5f.open(name, flags, fapl=fapl)
File "h5py_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "h5py\h5f.pyx", line 85, in h5py.h5f.open
OSError: Unable to open file (unable to open file: name = './weights/action_3d_weights.h5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0)
By the way, I am not sure that I added data in a right way. i download the data from the release tab, and copied it to "MLSTM-FCN-master\data\Action3D", as shown as below:
Could you please help me out with this? Thanks in Advance!