-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
yolov3_darknet53_pedestrian 每次加载都需要下载很长时间,且推理错误 #2320
Comments
ubuntu 20.04 python3.8 其他的模型(ocr,动物识别)都是可以跑的通的,而且加载模型很快 |
当我把模型下载到本地进行推理时,会出现权限错误 |
@sun-rabbit 您好,PaddleDetection库里有更新的检测模型,欢迎使用https://github.com/PaddlePaddle/Paddledetection |
您好,可以切换一下网络再看看,另外,可以参考我给的环境进行测试:
代码:
|
欢迎您反馈PaddleHub使用问题,非常感谢您对PaddleHub的贡献!
在留下您的问题时,辛苦您同步提供如下信息:
1)PaddleHub和PaddlePaddle版本:请提供您的PaddleHub和PaddlePaddle版本号,例如PaddleHub1.4.1,PaddlePaddle1.6.2
2)系统环境:请您描述系统类型,例如Linux/Windows/MacOS/,python版本
○ →
`import paddlehub as hub
import cv2
pedestrian_detector = hub.Module(name="yolov3_darknet53_pedestrian")
result = pedestrian_detector.object_detection(images=[cv2.imread('/home/ai02/test/people/8.jpg')])
print(result)`
/bin/python3 /home/ai02/test/people/test.py
Download https://bj.bcebos.com/paddlehub/paddlehub_dev/yolov3_darknet53_pedestrian_1_1_0.zip
[##################################################] 100.00%
Decompress /home/ai02/.paddlehub/tmp/tmp7dw1rgc9/yolov3_darknet53_pedestrian_1_1_0.zip
Traceback (most recent call last):
File "/home/ai02/test/people/test.py", line 4, in
pedestrian_detector = hub.Module(name="yolov3_darknet53_pedestrian")
File "/home/ai02/.local/lib/python3.8/site-packages/paddlehub/module/module.py", line 388, in new
module = cls.init_with_name(
File "/home/ai02/.local/lib/python3.8/site-packages/paddlehub/module/module.py", line 487, in init_with_name
user_module_cls = manager.install(
File "/home/ai02/.local/lib/python3.8/site-packages/paddlehub/module/manager.py", line 190, in install
return self._install_from_name(name, version, ignore_env_mismatch)
File "/home/ai02/.local/lib/python3.8/site-packages/paddlehub/module/manager.py", line 265, in _install_from_name
return self._install_from_url(item['url'])
File "/home/ai02/.local/lib/python3.8/site-packages/paddlehub/module/manager.py", line 258, in _install_from_url
return self._install_from_archive(file)
File "/home/ai02/.local/lib/python3.8/site-packages/paddlehub/module/manager.py", line 374, in _install_from_archive
for path, ds, ts in xarfile.unarchive_with_progress(archive, _tdir):
File "/home/ai02/.local/lib/python3.8/site-packages/paddlehub/utils/xarfile.py", line 225, in unarchive_with_progress
with open(name, mode='r') as file:
File "/home/ai02/.local/lib/python3.8/site-packages/paddlehub/utils/xarfile.py", line 162, in open
return XarFile(name, mode, **kwargs)
File "/home/ai02/.local/lib/python3.8/site-packages/paddlehub/utils/xarfile.py", line 91, in init
if self.arctype in ['tar.gz', 'tar.bz2', 'tar.xz', 'tar', 'tgz', 'txz']:
AttributeError: 'XarFile' object has no attribute 'arctype'
Exception ignored in: <function XarFile.del at 0x7fd670f1fb80>
Traceback (most recent call last):
File "/home/ai02/.local/lib/python3.8/site-packages/paddlehub/utils/xarfile.py", line 101, in del
self._archive_fp.close()
AttributeError: 'XarFile' object has no attribute '_archive_fp'
The text was updated successfully, but these errors were encountered: