Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
Merge pull request #3 from cclauss/patch-1
Browse files Browse the repository at this point in the history
Undefined name: 'f' --> 'path'
  • Loading branch information
michaelauli authored Dec 2, 2018
2 parents 8b1ed17 + 626c422 commit cf94b42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/data_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand All @@ -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))
raise KeyError('Cannot infer keypoint format from name "{}". Tried detectron, cpn, sh.'.format(name))

0 comments on commit cf94b42

Please sign in to comment.