This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
Timeout on second predict #15891
Unanswered
AssassinTee
asked this question in
Q&A
Replies: 3 comments
-
@zachgk @AssassinTee Any updates on this? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I have the same problem.My mxnet version is 1.5.1.Any updates on this? |
Beta Was this translation helpful? Give feedback.
0 replies
-
No, it still doesn't work. I just worked around it by re-initalizing the model every prediciton |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
I'm setting up a flask server which loads my mxnet model and has a predict-Api-method.
While testing the api I noticed, that the prediction has a timeout on the second call in the mxnet api. By timeout I mean that python is stuck in one mxnet method and seems to run endless.
I am using python-flask and mxnet v. 1.4.1. I tried upgrading to mxnet v. 1.5.0 but nothing chaned and the error persists.
I already tried different implementations for the predict method (see below), but both timeout. When I switch to a keras backend, everything works fine, but I need to use mxnet.
I used this guide for the forward-prediction: https://mxnet.incubator.apache.org/versions/master/tutorials/python/predict_image.html
Environment info (Required)
Package used (Python/R/Scala/Julia):
I'm using the pip version (1.4.1 or 1.5.0), both didn't work
Build info (Required if built from source)
python 3.6 (from command) with flask
Error Message:
Nothing, the program hangs itself.
Minimum reproducible example
Steps to reproduce
(Paste the commands you ran that produced the error.)
What have you tried to solve it?
Beta Was this translation helpful? Give feedback.
All reactions