Skip to content

v1.2.2

Latest

Choose a tag to compare

@jeongseok-meta jeongseok-meta released this 26 Nov 18:42
137525d

Fixes

These two fixes are in the mhr package on PyPI and conda-forge:

  • mhr.MHR.from_files() without a folder uses the first default asset folder that has both rig.npz and the requested lod<N>.npz. Before, it took the first folder with rig.npz and failed if that folder lacked the requested LOD, even when a later folder had it (#122).
  • mhr-download-assets retries a download that is cut short, whether the server closes the connection early or the read stops with IncompleteRead. Before, the download failed without a retry. mhr.mhr.MHR.from_files() without a folder uses the first default folder that has every file it needs, and skips partial folders and folders named like an asset file (#125).

SMPL conversion tool

These fixes are in tools/mhr_smpl_conversion and the visualization notebook, which ship with the repository and this tag, not with the pip package:

  • PyMomentum tracking (is_tracking=True) fits the face expression and head shape on every frame. Before, they stayed at their frame 0 values (#127).
  • SMPL-X models with a number of hand PCA components other than 6, or a number of expression coefficients other than 10, work (#127).
  • An MHR model or MHR vertices of a LOD other than LOD 1 raise a ValueError that says to use MHR.from_files(lod=1). Before, the result was wrong without an error, or the conversion stopped with an IndexError (#127).
  • PyTorch fits step once per iteration on the loss of all frames, so their results no longer depend on batch_size (#126).
  • PyTorch fits return their parameters detached from autograd, so .numpy() works on them (#126).
  • A batch_size given to one call is used by every step of that call and no longer changes the batch size of later calls (#126).
  • convert_sam3d_output_to_smpl returns an empty result for a SAM 3D Body frame with no detected person, instead of failing (#126).
  • example.py skips the SMPL or SMPL-X conversion when --smpl or --smplx is not given, instead of looking for model files under ./data (#126).
  • The tool README shows the right import, method name and default values (#126).
  • The visualization notebook no longer doubles the joint list of a parameter each time it draws the model (#126).

Behavior changes

  • The SMPL conversion tool accepts only the LOD 1 MHR model. Load it with MHR.from_files(lod=1).
  • PyTorch fits with more frames than batch_size (256 by default) give new results, which no longer depend on batch_size. Fits of up to batch_size frames are not affected by this change.

Compatibility

  • The assets on this release are byte-identical copies of the v1.2.1 assets, so mhr-download-assets, with or without --lod, gives the same files (assets.zip SHA-256 e4f4f205cd87c0fa106577ba1de4fc763e4eb197c924461d2ef7e6944e9d6b94).
  • mhr[momentum] still requires pymomentum-core 0.1.115 or newer. conda-forge and Pixi installs keep working with pymomentum 0.1.89 or newer.

Thanks

Thank you to @ZainnQureshii for the default asset folder fix (#122).

Full changelog: v1.2.1...v1.2.2