到底哪出问题了?

来源:3-9 使用前端界面调用flask发布的ckpt模型(2)

慕瓜8118008

2018-09-23 19:27

main函数运行没报错但是前端就是不显示结果,在regression和convolutional两个程序单独运行正确率也没问题。



E:\anaconda\python.exe C:/Users/hou/PycharmProjects/untitled1/main1.py

E:\anaconda\lib\site-packages\h5py\__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.

  from ._conv import register_converters as _register_converters

2018-09-23 19:21:22.243387: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2

 * Serving Flask app "main1" (lazy loading)

 * Environment: production

   WARNING: Do not use the development server in a production environment.

   Use a production WSGI server instead.

 * Debug mode: on

 * Restarting with stat

E:\anaconda\lib\site-packages\h5py\__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.

  from ._conv import register_converters as _register_converters

2018-09-23 19:21:27.446637: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2

 * Debugger is active!

 * Debugger PIN: 844-859-070

 * Running on http://127.0.0.1:8000/ (Press CTRL+C to quit)


https://img3.mukewang.com/5ba778350001aee219201020.jpg

写回答 关注

7回答

  • S扶摇S
    2019-09-09 17:39:29

    http://img2.mukewang.com/5d761d740001655d06540271.jpg

    http://img1.mukewang.com/5d761d9d0001da7005420329.jpg

    我也是这个原因,http状态显示200是请求成功,但是就是不显示结果。打开F12页面报错了,不知道怎么解决。


  • 慕粉1116433701
    2019-07-10 16:31:47
    app.run(host='127.0.0.1', port=9000)

    这样就可以了

    qq_慕侠7...

    用了这个你启动后不手写都有识别率显示

    2020-02-18 17:10:08

    共 2 条回复 >

  • weibo_慕前端5097493
    2018-12-28 20:54:56

    请问,问题解决了吗?同样也是这样,出不来output.

  • 慕沐6169659
    2018-11-23 14:23:25

    换ie浏览器完美运行

  • 慕标5055955
    2018-11-22 11:08:08

    我也是一样的问题,你解决了吗

  • 慕数据8973029
    2018-10-23 18:37:08

    你好,请问一下可以看一下你的数字识别这些代码吗?



  • AAnonymous
    2018-09-30 00:31:16

    ctrl + shit + i

    问题应该出在js里

TensorFlow与Flask结合打造手写体数字识别

TensorFlow和flask结合识别自己的手写体数字

20432 学习 · 102 问题

查看课程

相似问题