Skip to content

Commit

Permalink
{BugFix} Better support TEST scene
Browse files Browse the repository at this point in the history
Summary:
TEST scenes comes with empty GT files for Hands and Object poses
- This diff improve supports when UmeTrack has been choosen as default option to show for HANDS

- JSONDecode can't take empty file as input

Reviewed By: fanzhangmeta

Differential Revision: D59923487

fbshipit-source-id: e6c5737e1228692f26f60395dde3e242dcb371f5
  • Loading branch information
SeaOtocinclus authored and facebook-github-bot committed Jul 18, 2024
1 parent 82b9fdf commit 3e9bd0f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hot3d/data_loaders/UmeTrackHandDataProvider.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ def __init__(
super()._init_hand_poses(hand_pose_trajectory_filepath)

# Hand profile
self._hand_model = load_hand_model_from_file(hand_profile_filepath)
self._hand_model = (
None
if len(self._hand_poses) == 0
else load_hand_model_from_file(hand_profile_filepath)
)

def get_hand_mesh_vertices(
self, hand_wrist_data: HandPose
Expand Down

0 comments on commit 3e9bd0f

Please sign in to comment.