口罩检测模型报错
Created by: zengqi0730
paddlepaddle-gpu 1.7.0.post107 paddlehub:1.6.2 pyramidbox_lite_mobile_mask:1.3.0 paddleslim 1.0.1
import paddlehub as hub import cv2
mask_detector = hub.Module(name="pyramidbox_lite_mobile_mask") print(mask_detector.version) img = cv2.imread('/home/edu/Desktop/1.jpg') print(img.shape) result = mask_detector.face_detection(images=[img],data=None)
[2020-05-18 11:35:10,849] [ INFO] - Installing pyramidbox_lite_mobile_mask module [2020-05-18 11:35:10,913] [ INFO] - Module pyramidbox_lite_mobile_mask already installed in /home/edu/.paddlehub/modules/pyramidbox_lite_mobile_mask [2020-05-18 11:35:10,913] [ INFO] - Installing pyramidbox_lite_mobile module [2020-05-18 11:35:10,917] [ INFO] - Module pyramidbox_lite_mobile already installed in /home/edu/.paddlehub/modules/pyramidbox_lite_mobile 1.3.0 (667, 500, 3) Traceback (most recent call last): File "/home/edu/PycharmProjects/paddledemo/zengqi.py", line 300, in result = mask_detector.face_detection(images=[img],data=None) File "/home/edu/.paddlehub/modules/pyramidbox_lite_mobile_mask/module.py", line 127, in face_detection images, paths, use_gpu, use_multi_scale): File "/home/edu/.paddlehub/modules/pyramidbox_lite_mobile_mask/data_feed.py", line 202, in reader confs_threshold=confs_threshold) TypeError: call() missing 1 required positional argument: 'data'
Process finished with exit code 1
口罩模型起不来,请帮忙看下问题