Skip to content

  • 体验新版
    • 正在加载...
  • 登录
  • PaddlePaddle
  • PaddleHub
  • Issue
  • #283

P
PaddleHub
  • 项目概览

PaddlePaddle / PaddleHub
大约 2 年 前同步成功

通知 285
Star 12117
Fork 2091
  • 代码
    • 文件
    • 提交
    • 分支
    • Tags
    • 贡献者
    • 分支图
    • Diff
  • Issue 200
    • 列表
    • 看板
    • 标记
    • 里程碑
  • 合并请求 4
  • Wiki 0
    • Wiki
  • 分析
    • 仓库
    • DevOps
  • 项目成员
  • Pages
P
PaddleHub
  • 项目概览
    • 项目概览
    • 详情
    • 发布
  • 仓库
    • 仓库
    • 文件
    • 提交
    • 分支
    • 标签
    • 贡献者
    • 分支图
    • 比较
  • Issue 200
    • Issue 200
    • 列表
    • 看板
    • 标记
    • 里程碑
  • 合并请求 4
    • 合并请求 4
  • Pages
  • 分析
    • 分析
    • 仓库分析
    • DevOps
  • Wiki 0
    • Wiki
  • 成员
    • 成员
  • 收起侧边栏
  • 动态
  • 分支图
  • 创建新Issue
  • 提交
  • Issue看板
已关闭
开放中
Opened 12月 25, 2019 by saxon_zh@saxon_zhGuest

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

指派人
分配到
无
里程碑
无
分配里程碑
工时统计
无
截止日期
无
标识: paddlepaddle/PaddleHub#283
渝ICP备2023009037号

京公网安备11010502055752号

网络110报警服务 Powered by GitLab CE v13.7
开源知识
Git 入门 Pro Git 电子书 在线学 Git
Markdown 基础入门 IT 技术知识开源图谱
帮助
使用手册 反馈建议 博客
《GitCode 隐私声明》 《GitCode 服务条款》 关于GitCode
Powered by GitLab CE v13.7