Skip to content
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

pyramidbox_lite_server_mask模型报错 #621

Open
sherklock opened this issue May 23, 2020 · 9 comments
Open

pyramidbox_lite_server_mask模型报错 #621

sherklock opened this issue May 23, 2020 · 9 comments
Assignees

Comments

@sherklock
Copy link

PaddleHub1.7.0,
window
pycharm中运行pyramidbox_lite_server_mask示例代码报错了
import paddlehub as hub
import cv2

mask_detector = hub.Module(name="pyramidbox_lite_server_mask", version='1.3.0')

result = mask_detector.face_detection(images=[cv2.imread('/PATH/TO/IMAGE')])

or

result = mask_detector.face_detection(paths=['image/mask/5.jpg'])

TypeError: call() missing 1 required positional argument: 'data'

paths是我的图片地址 是这个出问题了吗

@Steffy-zxf
Copy link
Contributor

你好!该问题可以参考 issue #609 的回复。

@sherklock
Copy link
Author

你好!该问题可以参考issue #609的回复。

请问1.3.0中可以指定保存结果文件夹,怎么指定后没有出现?

@Steffy-zxf
Copy link
Contributor

打印下识别后的结果,如果图片识别到没有人脸或者口罩,则不会保存相应识别结果图片。

@sherklock
Copy link
Author

sherklock commented May 24, 2020 via email

@sherklock
Copy link
Author

sherklock commented May 25, 2020 via email

@Steffy-zxf
Copy link
Contributor

你好,你说的

结果如图所示。

我没有看见相应的结果。口罩模型目前支持预测,不知道你说的

然后放进口罩模型中训练它

你是怎么做呢?

@sherklock
Copy link
Author

sherklock commented May 26, 2020 via email

@Steffy-zxf
Copy link
Contributor

我把代码和结果截图打包了

issue上没看见你上传的附件。其实你可以不用把视频中的图片帧保存在本地,直接读取视频帧成ndarray数据之后,传给pyramidbox_lite_server_mask.face_detection(images=[ndarray]) 这样即可以完成预测。

接口文档参考API说明

@Steffy-zxf Steffy-zxf self-assigned this May 27, 2020
@sherklock
Copy link
Author

我把代码和结果截图打包了

issue上没看见你上传的附件。其实你可以不用把视频中的图片帧保存在本地,直接读取视频帧成ndarray数据之后,传给pyramidbox_lite_server_mask.face_detection(images=[ndarray]) 这样即可以完成预测。

接口文档参考API说明

结果.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants