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
Terminate called after throwing an instance of 'std::bad_alloc' #28
Comments
Looks like you have used up all your memories: Allocation of 450785280 exceeds 10% of system memory. Perhaps @feihugis knows how to reduce memory usage in tensorflow? |
Thanks for you reply. I knew that And I also reverted to 2GB, try to adjust Tensorflow's settings:
The defaults are 4 and 5, I just googled around and adjust it, luckily the endpoint can work and allow to resize image without crashes but slowly. To summarize:
|
@nghiaht Thanks for letting us know your solution. Glad the issue is resolved. |
Hi, I'm using Docker to build the repo and expose via port 5000.
I used the
samples/test_examples/low_resolution/astronaut.png
as a test image, POST to/model/predict
.Then the Docker container is stopped, showing following logs:
My memory info
I researched on Google about setting Tensorflow logging level which I have tried and get no better results, or adjusting the batch size (but I don't know if we can adjust it in the max-image-resolution-enhancer).
Please give me suggestions.
Thank for your help!
The text was updated successfully, but these errors were encountered: