好不容易跑出了模型,一直没法成功部署,真心求救
无论是设置自动接口,
还是自己设置接口,都会报错: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 真心不知道怎么办了
网络就是鸢尾花分类模型
求教
您好,想详细了解下您的情况,方便的话加下我的QQ:980902922
解决了吗
碰到一样的问题
乍一看是变量错误