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

Undefined name: 'f' --> 'path' #3

Merged
merged 1 commit into from
Dec 2, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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))