MAX-Image-Resolution-Enhancer
MAX-Image-Resolution-Enhancer copied to clipboard
Empty reply after enhancement process
I use the command curl -F "image=@D:\MyImages\small.jpg" -XPOST http://localhost:5000/model/predict > enhanced.png
and it results in
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 88713 0 0 100 88713 0 12673 0:00:07 0:00:07 --:--:-- 0
curl: (52) Empty reply from server
This also results in the docker image going down, so I have to re-run the container again.
172.17.0.1 - - [02/Jan/2022 15:52:20] "GET / HTTP/1.1" 200 -
172.17.0.1 - - [02/Jan/2022 15:52:20] "GET /swagger.json HTTP/1.1" 200 -
172.17.0.1 - - [02/Jan/2022 15:52:42] "GET /model/predict HTTP/1.1" 404 -
172.17.0.1 - - [02/Jan/2022 15:52:42] "GET /favicon.ico HTTP/1.1" 404 -
2022-01-02 15:53:16.333058: W tensorflow/core/framework/cpu_allocator_impl.cc:81] Allocation of 164864000 exceeds 10% of system memory.
2022-01-02 15:53:16.781747: W tensorflow/core/framework/cpu_allocator_impl.cc:81] Allocation of 164864000 exceeds 10% of system memory.
2022-01-02 15:53:16.866100: W tensorflow/core/framework/cpu_allocator_impl.cc:81] Allocation of 164864000 exceeds 10% of system memory.
2022-01-02 15:53:16.866182: W tensorflow/core/framework/cpu_allocator_impl.cc:81] Allocation of 164864000 exceeds 10% of system memory.
2022-01-02 15:53:16.973559: W tensorflow/core/framework/cpu_allocator_impl.cc:81] Allocation of 659456000 exceeds 10% of system memory.
Killed
Please allocate higher memory to the Docker container in Docker settings and try again.