keras2cpp icon indicating copy to clipboard operation
keras2cpp copied to clipboard

run binary error

Open tonycui0401 opened this issue 8 years ago • 4 comments

Hi when I run binary, I have got the following error:

Reading model from ./dumped.nnet Layers 221 Layer 0 InputLayer Layer is empty, maybe it is not defined? Cannot define network. Segmentation fault (core dumped)

could you please let me know what is the problem.

tonycui0401 avatar Jul 25 '17 04:07 tonycui0401

Hi! Maybe there was some problem during network dump. Please check the dumped file if it looks ok. Which version of keras are you using?

pplonski avatar Jul 25 '17 07:07 pplonski

Hi, I think it's heras 2, can I send you my network dump file to check and my hdf5 and model.json file, do you have an email address? Also if I run binary file successfully, how can I do a prediction in C++, I want to read a input image file and predict it in C++

tonycui0401 avatar Jul 26 '17 03:07 tonycui0401

there are problems with keras 2. Please try to train your network in keras 1.2.2 and it should work.

pplonski avatar Jul 26 '17 08:07 pplonski

hi I installed keras 1.2.2, but still the same error, also after this error? How can I write a predict function to predict images based on my model in c++

tonycui0401 avatar Jul 26 '17 18:07 tonycui0401