未验证 提交 cf94b42e 编写于 作者: M Michael Auli 提交者: GitHub

Merge pull request #3 from cclauss/patch-1

Undefined name: 'f' --> 'path'
......@@ -88,7 +88,7 @@ def import_cpn_poses(path):
def import_sh_poses(path):
with h5py.File(f) as hf:
with h5py.File(path) as hf:
positions = hf['poses'].value
return positions.astype('float32')
......@@ -99,4 +99,4 @@ def suggest_pose_importer(name):
return import_cpn_poses
if 'sh' in name:
return import_sh_poses
raise KeyError('Cannot infer keypoint format from name "{}". Tried detectron, cpn, sh.'.format(name))
\ No newline at end of file
raise KeyError('Cannot infer keypoint format from name "{}". Tried detectron, cpn, sh.'.format(name))
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册