PaddlePaddle / Paddle

PArallel Distributed Deep LEarning: Machine Learning Framework from Industrial Practice (『飞桨』核心框架,深度学习&机器学习高性能单机、分布式训练和跨平台部署)
http://www.paddlepaddle.org/
Apache License 2.0
22.07k stars 5.54k forks source link

Error: cannot import name 'build_slim_model' #32849

Closed johnhansheng closed 1 year ago

johnhansheng commented 3 years ago

执行命令:python infers/infer.py -c configs/blazeface_1000e.yml -o weights=weights/blazeface_1000e.pdparams --infer_img=test/16pic_8594349_b.jpg --save_txt=True 报错,from ppdet.slim import build_slim_model ImportError: cannot import name 'build_slim_model'。

paddle-bot-old[bot] commented 3 years ago

您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网API文档常见问题历史IssueAI社区来寻求解答。祝您生活愉快~

Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the APIFAQGithub Issue and AI community to get the answer.Have a nice day!

yghstill commented 3 years ago

@johnhansheng PaddleDetection版本是多少?使用release/2.0版本再试下呢?https://github.com/PaddlePaddle/PaddleDetection/tree/release/2.0

johnhansheng commented 3 years ago

v2.0.2版本,目前我们的模型只支持v2.0.2版本