有加快paddlehub输出的速度吗?
收藏
我想弄一个处理100张图片的一个图像分割,当我处理的时候发现这个处理100张可能要上5 6分钟,能不能优化加快点,请指教
humanseg=hub.Module(name='deeplabv3p_xception65_humanseg')
path='./test/'
files=[]
dirs=os.listdir(path)
for diretion in dirs:
files.append(path+diretion)
print(files)
for file in files:
results=humanseg.segmentation(paths=[file],output_dir='output_pose',batch_size=30,visualization=True)
代码是这样的,
0
收藏
请登录后评论
同问,有大牛解答下嘛
同问