paddlehub模型不能运行
Created by: xianbinzhang
问题:安装hub yolov3_darknet53_pedestrian 和yolov3_darknet53_vehicles 模型都不能正常运行 本机环境: win10 64位 显卡 GTX1660 Ti PaddleHub1.7.0,PaddlePaddle1.8 GPU 版本
错误提示:
PS F:\aiCode\paddlehubCode\vehicles> python ./vehicles.py Traceback (most recent call last): File "./vehicles.py", line 4, in vehicles_detector = hub.Module(name=yolov3_darknet53_vehicles) NameError: name 'yolov3_darknet53_vehicles' is not defined PS F:\aiCode\paddlehubCode\vehicles> hub install yolov3_darknet53_vehicles Module yolov3_darknet53_vehicles already installed in C:\Users\Acer.paddlehub\modules\yolov3_darknet53_vehicles PS F:\aiCode\paddlehubCode\vehicles> hub run yolov3_darknet53_vehicles --input_path "F://1201.jpg" Traceback (most recent call last): File "d:\programdata\anaconda3\lib\runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "d:\programdata\anaconda3\lib\runpy.py", line 85, in run_code exec(code, run_globals) File "D:\ProgramData\Anaconda3\Scripts\hub.exe_main.py", line 7, in File "d:\programdata\anaconda3\lib\site-packages\paddlehub\commands\hub.py", line 64, in main command.execute(argv[1:]) File "d:\programdata\anaconda3\lib\site-packages\paddlehub\commands\hub.py", line 51, in execute return command.execute(argv[1:]) File "d:\programdata\anaconda3\lib\site-packages\paddlehub\commands\run.py", line 242, in execute results = self.module.run_func(argv[1:]) File "d:\programdata\anaconda3\lib\site-packages\paddlehub\module\module.py", line 59, in _wrapper return func(*args, **kwargs) File "C:\Users\Acer.paddlehub\modules\yolov3_darknet53_vehicles\module.py", line 283, in run_cmd results = self.face_detection( File "d:\programdata\anaconda3\lib\site-packages\paddle\fluid\dygraph\layers.py", line 533, in getattr return object.getattribute(self, name) AttributeError: 'YOLOv3DarkNet53Vehicles' object has no attribute 'face_detection' PS F:\aiCode\paddlehubCode\vehicles> hub install yolov3_darknet53_pedestrian==1.0.0 Downloading yolov3_darknet53_pedestrian [==================================================] 100.00% Uncompress C:\Users\Acer.paddlehub\tmp\tmpyqe38e6v\yolov3_darknet53_pedestrian [==================================================] 100.00% Successfully installed yolov3_darknet53_pedestrian-1.0.0 PS F:\aiCode\paddlehubCode\vehicles> hub run yolov3_darknet53_pedestrian --input_path "F://1201.jpg" Traceback (most recent call last): File "d:\programdata\anaconda3\lib\runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "d:\programdata\anaconda3\lib\runpy.py", line 85, in run_code exec(code, run_globals) File "D:\ProgramData\Anaconda3\Scripts\hub.exe_main.py", line 7, in File "d:\programdata\anaconda3\lib\site-packages\paddlehub\commands\hub.py", line 64, in main command.execute(argv[1:]) File "d:\programdata\anaconda3\lib\site-packages\paddlehub\commands\hub.py", line 51, in execute return command.execute(argv[1:]) File "d:\programdata\anaconda3\lib\site-packages\paddlehub\commands\run.py", line 242, in execute results = self.module.run_func(argv[1:]) File "d:\programdata\anaconda3\lib\site-packages\paddlehub\module\module.py", line 59, in _wrapper return func(*args, **kwargs) File "C:\Users\Acer.paddlehub\modules\yolov3_darknet53_pedestrian\module.py", line 283, in run_cmd results = self.face_detection( File "d:\programdata\anaconda3\lib\site-packages\paddle\fluid\dygraph\layers.py", line 533, in getattr return object.getattribute(self, name) AttributeError: 'YOLOv3DarkNet53Pedestrian' object has no attribute 'face_detection' PS F:\aiCode\paddlehubCode\vehicles>