Skip to content

Commit

Permalink
提交文章代码
Browse files Browse the repository at this point in the history
  • Loading branch information
cxhuan committed May 6, 2020
1 parent 49c99eb commit cafcf51
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
Binary file modified .DS_Store
Binary file not shown.
Binary file modified xianhuan/.DS_Store
Binary file not shown.
10 changes: 10 additions & 0 deletions xianhuan/koutu/koutu.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@author: 闲欢
"""
import os, paddlehub as hub
huseg = hub.Module(name='deeplabv3p_xception65_humanseg') # 加载模型
path = './imgs/' # 文件目录
files = [path + i for i in os.listdir(path)] # 获取文件列表
results = huseg.segmentation(data={'image': files}) # 抠图

0 comments on commit cafcf51

Please sign in to comment.