data_juicer.ops.common.mano_func module#

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

基类:MANOLayer

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

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[源代码]#

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)[源代码]#

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).

参数:
  • model_path -- Path to MANO_LEFT.pkl

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

返回:

MANO model configured for left hand.

query(hmr_output)[源代码]#