首页 Paddle框架 帖子详情
训练好的模型,预测时报错
收藏
快速回复
Paddle框架 问答模型训练 531 2
训练好的模型,预测时报错
收藏
快速回复
Paddle框架 问答模型训练 531 2

用PaddleDetection对VOC数据集进行训练,训练好模型,得到best_model.pdmodel,best_model.pdparams和best_model.pdopt。

具体命令为:

! python /home/aistudio/PaddleDetection/tools/infer.py -c /home/aistudio/PaddleDetection/improve_faster_rcnn.yml \
  --infer_img=/home/aistudio/PascalVOC07_12/VOCdevkit/VOC2007/JPEGImages/004486.jpg \
  -o weights=/home/aistudio/best_model

但是报错如下,请问应该如何解决:

--------------------------------------------
C++ Call Stacks (More useful to developers):
--------------------------------------------
0 std::string paddle::platform::GetTraceBackString(std::string const&, char const*, int)
1 paddle::platform::EnforceNotMet::EnforceNotMet(std::string const&, char const*, int)
2 paddle::operators::reader::BlockingQueue > >::Receive(std::vector >*)
3 paddle::operators::reader::PyReader::ReadNext(std::vector >*)
4 std::_Function_handler (), std::__future_base::_Task_setter, std::__future_base::_Result_base::_Deleter>, unsigned long> >::_M_invoke(std::_Any_data const&)
5 std::__future_base::_State_base::_M_do_set(std::function ()>&, bool&)
6 ThreadPool::ThreadPool(unsigned long)::{lambda()#1}::operator()() const

----------------------
Error Message Summary:
----------------------
Error: Blocking queue is killed because the data reader raises an exception
[Hint: Expected killed_ != true, but received killed_:1 == true:1.] at (/paddle/paddle/fluid/operators/reader/blocking_queue.h:141)

0
收藏
回复
全部评论(2)
时间顺序
AIStudio810260
#2 回复于2021-04

从命令看,不应该有错才对,是不是用的paddledetection 2.0?

0
回复
AIStudio810260
#3 回复于2021-04

有可能模型库迭代过快会有bug

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