data_juicer.ops.common.mano_func module#

class data_juicer.ops.common.mano_func.MANO(*args, joint_regressor_extra: str | None = None, **kwargs)[source]#

Bases: MANOLayer

__init__(*args, joint_regressor_extra: str | None = None, **kwargs)[source]#

Extension of the official MANO implementation to support more joints. :param Same as MANOLayer.: :param joint_regressor_extra: Path to extra joint regressor. :type joint_regressor_extra: str

forward(*args, **kwargs) MANOOutput[source]#

Run forward pass. Same as MANO and also append an extra set of joints if joint_regressor_extra is specified.

classmethod build_left(model_path, fix_shapedirs=True)[source]#

Build a LEFT-hand MANO model.

HaWoR uses a separate MANO_LEFT.pkl with is_rhand=False and a shapedirs bug-fix (vchoutas/smplx#48).

Parameters:
  • model_path – Path to MANO_LEFT.pkl

  • fix_shapedirs – Apply the left-hand shapedirs fix (default True).

Returns:

MANO model configured for left hand.

query(hmr_output)[source]#