Skip to content

Commit

Permalink
feat(appearance): use shared utility instead of rewriting
Browse files Browse the repository at this point in the history
  • Loading branch information
AmitMY committed Nov 7, 2024
1 parent fd10f15 commit ccd0543
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions pose_anonymization/appearance.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,7 @@
from pose_format.utils.generic import pose_normalization_info

from pose_anonymization.data import load_mean_and_std, load_pose_header


def normalize_pose_size(pose: Pose):
new_width = 200
shift = 1.25
shift_vec = np.full(shape=(pose.body.data.shape[-1]), fill_value=shift, dtype=np.float32)
pose.body.data = (pose.body.data + shift_vec) * new_width
pose.header.dimensions.height = pose.header.dimensions.width = int(new_width * shift * 2)
from pose_format.utils.generic import normalize_pose_size


def get_pose_appearance(pose: Pose, include_end_frame=False):
Expand Down

0 comments on commit ccd0543

Please sign in to comment.