Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error loading CNN #232

Closed
LuArtur opened this issue Mar 4, 2020 · 6 comments
Closed

Error loading CNN #232

LuArtur opened this issue Mar 4, 2020 · 6 comments

Comments

@LuArtur
Copy link

LuArtur commented Mar 4, 2020

I have a model of a network trained on my laptop and I am trying to perform the classification of electrocardiogram signals on my android.
in the laptop everything works ok but in the mobile this error occurs.

This platform lacks a functioning sem_open implementation, therefore, the required synchronization primitives needed will not function, see issue 3770.

this is my error
error AS

`

@LuArtur
Copy link
Author

LuArtur commented Mar 4, 2020

as seen in the image the model is loaded but when starting with the evaluation crash the application

@mhsmith
Copy link
Member

mhsmith commented Mar 4, 2020

Are you still using keras 2.2.4 as you said in #221? The line number 372 in the stack trace doesn't seem to correspond to the source code of that version.

@LuArtur
Copy link
Author

LuArtur commented Mar 4, 2020

the libraries I use are keras 2.2.4, tensorflow 1.10.1, numpy 1.14.2 scipy 1.1.0, sklearn 0.0 and scikit-learn 0.19.1

@mhsmith
Copy link
Member

mhsmith commented Mar 4, 2020

Sorry, I was looking at the stack trace in the other issue.

There's a bug here: it's checking for OSError, but the actual exception is ImportError. Try working around it by adding the following lines before you use keras:

from keras.utils import data_utils
data_utils._SEQUENCE_COUNTER = 0

@LuArtur
Copy link
Author

LuArtur commented Mar 4, 2020

It already works, only on my laptop it takes less than a minute to complete and the android says it will take 9 minutes. I don't finish because the application was closed because I don't have the license.

I would like to obtain a free open source license, I am developing this non-profit application as part of my project to obtain the title of Biomedical Engineer

@mhsmith
Copy link
Member

mhsmith commented Mar 4, 2020

To apply for a license, please follow the instructions at https://chaquo.com/chaquopy/license/, then send me an email at the address on our website.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants