首页 Paddle Lite 帖子详情
网络部署问题
收藏
快速回复
Paddle Lite 问答部署 889 4
网络部署问题
收藏
快速回复
Paddle Lite 问答部署 889 4

好不容易跑出了模型,一直没法成功部署,真心求救

无论是设置自动接口,

还是自己设置接口,都会报错:Exception: 'feed_targets' does not have img variable

 

详细如下:

System check identified no issues (0 silenced).
December 14, 2019 - 00:*:*
Django version 2.2.5, using settings 'webserver.settings'
Starting development server at http://*.*.*.*:*/
Quit the server with CONTROL-C.
,"d_model_dir":"/home/work/serving/webserver/model/freeze-model","d_model_file_name":"/__model__"}
Traceback (most recent call last):
File "/home/work/serving/webserver/home/views.py", line 48, in index
out = serving.infer(json.loads(req))
File "/home/work/serving/webserver/home/serving.py", line 24, in infer
return_numpy=False
File "/usr/local/lib/python3.5/site-packages/paddle/fluid/executor.py", line 657, in run
use_program_cache=use_program_cache)
File "/usr/local/lib/python3.5/site-packages/paddle/fluid/executor.py", line 751, in _run
fetch_var_name=fetch_var_name)
File "/usr/local/lib/python3.5/site-packages/paddle/fluid/executor.py", line 419, in _add_feed_fetch_ops
if not has_feed_operators(global_block, feed, feed_var_name):
File "/usr/local/lib/python3.5/site-packages/paddle/fluid/executor.py", line 158, in has_feed_operators
format(feed_target_name))
Exception: 'feed_targets' does not have img variable

因为没法查看到view.py  serving.py 真心不知道怎么办了

网络就是鸢尾花分类模型

求教

 

0
收藏
回复
全部评论(4)
时间顺序
学习委员
#2 回复于2019-12

您好,想详细了解下您的情况,方便的话加下我的QQ:980902922

0
回复
M
Mirr
#3 回复于2020-03

解决了吗

0
回复
M
Mirr
#4 回复于2020-03

碰到一样的问题

 

0
回复
水水水的老师
#5 回复于2020-03

乍一看是变量错误

0
回复
需求/bug反馈?一键提issue告诉我们
发现bug?如果您知道修复办法,欢迎提pr直接参与建设飞桨~
在@后输入用户全名并按空格结束,可艾特全站任一用户