Skip to content

Commit cafcf51

Browse files
committed
提交文章代码
1 parent 49c99eb commit cafcf51

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

.DS_Store

4 KB
Binary file not shown.

xianhuan/.DS_Store

2 KB
Binary file not shown.

xianhuan/koutu/koutu.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env python3
2+
# -*- coding: utf-8 -*-
3+
"""
4+
@author: 闲欢
5+
"""
6+
import os, paddlehub as hub
7+
huseg = hub.Module(name='deeplabv3p_xception65_humanseg') # 加载模型
8+
path = './imgs/' # 文件目录
9+
files = [path + i for i in os.listdir(path)] # 获取文件列表
10+
results = huseg.segmentation(data={'image': files}) # 抠图

0 commit comments

Comments
 (0)