python 百度 paddle 抠图

import paddlehub as hub

# 1.加载模型
humanseg = hub.Module(name="deeplabv3p_xception65_humanseg")

# 2.抠图
results = humanseg.segmentation(
    paths=["./woman.jpg"],
    visualization=True,
    output_dir='humanseg_output'
)

此处评论已关闭