hub serving web server no response on clicking Start! button on MacOS
Created by: EthanZBY
The output is as below:
$hub serving start -m pyramidbox_face_detection {'module': 'pyramidbox_face_detection', 'version': '1.0.0', 'category': 'CV', 'batch_size': 1, 'queue_size': 20} Loading pyramidbox_face_detection successful.
- Serving Flask app "paddlehub.serving.app_single" (lazy loading)
- Environment: production WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
- Debug mode: off 2019-12-25 17:10:03,050-INFO: * Running on http://0.0.0.0:8866/ (Press CTRL+C to quit) 2019-12-25 17:10:04,738-INFO: 127.0.0.1 - - [25/Dec/2019 17:10:04] "GET / HTTP/1.1" 200 - 2019-12-25 17:10:04,765-INFO: 127.0.0.1 - - [25/Dec/2019 17:10:04] "POST /get/modules HTTP/1.1" 200 - 2019-12-25 17:10:10,123-INFO: 127.0.0.1 - - [25/Dec/2019 17:10:10] "GET / HTTP/1.1" 200 - 2019-12-25 17:10:10,139-INFO: 127.0.0.1 - - [25/Dec/2019 17:10:10] "POST /get/modules HTTP/1.1" 200 - 2019-12-25 17:10:11,405-INFO: 127.0.0.1 - - [25/Dec/2019 17:10:11] "GET / HTTP/1.1" 200 - 2019-12-25 17:10:11,424-INFO: 127.0.0.1 - - [25/Dec/2019 17:10:11] "POST /get/modules HTTP/1.1" 200 - 2019-12-25 17:10:36,711-INFO: 127.0.0.1 - - [25/Dec/2019 17:10:36] "POST /predict/image/pyramidbox_face_detection HTTP/1.1" 200 - 2019-12-25 17:11:03,124-INFO: 127.0.0.1 - - [25/Dec/2019 17:11:03] "POST /predict/image/pyramidbox_face_detection HTTP/1.1" 200 - 2019-12-25 17:11:03,740-INFO: 127.0.0.1 - - [25/Dec/2019 17:11:03] "POST /predict/image/pyramidbox_face_detection HTTP/1.1" 200 - 2019-12-25 17:11:03,944-INFO: 127.0.0.1 - - [25/Dec/2019 17:11:03] "POST /predict/image/pyramidbox_face_detection HTTP/1.1" 200 - 2019-12-25 17:11:04,134-INFO: 127.0.0.1 - - [25/Dec/2019 17:11:04] "POST /predict/image/pyramidbox_face_detection HTTP/1.1" 200 - 2019-12-25 17:11:04,325-INFO: 127.0.0.1 - - [25/Dec/2019 17:11:04] "POST /predict/image/pyramidbox_face_detection HTTP/1.1" 200 -
Debugger shows that: the return data is still undefined in the code below:
to_url = "/predict/image/" + document.getElementById("inputGroupSelect02").value;
$.ajax({
cache: true,
type: "POST",
url:to_url,
data:formParam,
async: false,
error: function(request) {
alert("Connection error:"+request.error);
},
success: function(data) {
data = data["result"];
document.getElementById("result_text").value = data["desc"];
document.getElementById("result_img").src = data["output_img"];
While the demo script output is fine: 2019-12-25 15:21:29,971-INFO: 127.0.0.1 - - [25/Dec/2019 15:21:29] "POST /predict/image/pyramidbox_face_detection HTTP/1.1" 500 - The image with bbox is saved as ./output/918cad2272035ccbfc7367e57a55b9c4_zhourunfa.jpg 2019-12-25 15:22:59,494-INFO: 127.0.0.1 - - [25/Dec/2019 15:22:59] "POST /predict/image/pyramidbox_face_detection HTTP/1.1" 200 - The image with bbox is saved as ./output/53c8e742567a2f347df405be210a7c4f_zhourunfa.jpg 2019-12-25 15:24:39,120-INFO: 127.0.0.1 - - [25/Dec/2019 15:24:39] "POST /predict/image/pyramidbox_face_detection HTTP/1.1" 200 - The image with bbox is saved as ./output/a82926c7ab7a1cdf7aa4143e1519b8fa_zhourunfa.jpg