Repository navigation
Fixes
These two fixes are in the mhr package on PyPI and conda-forge:
mhr.MHR.from_files()without afolderuses the first default asset folder that has bothrig.npzand the requestedlod<N>.npz. Before, it took the first folder withrig.npzand failed if that folder lacked the requested LOD, even when a later folder had it (#122).mhr-download-assetsretries a download that is cut short, whether the server closes the connection early or the read stops withIncompleteRead. Before, the download failed without a retry.mhr.mhr.MHR.from_files()without afolderuses 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
ValueErrorthat says to useMHR.from_files(lod=1). Before, the result was wrong without an error, or the conversion stopped with anIndexError(#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_sizegiven 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_smplreturns an empty result for a SAM 3D Body frame with no detected person, instead of failing (#126).example.pyskips the SMPL or SMPL-X conversion when--smplor--smplxis 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 onbatch_size. Fits of up tobatch_sizeframes 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.zipSHA-256e4f4f205cd87c0fa106577ba1de4fc763e4eb197c924461d2ef7e6944e9d6b94). mhr[momentum]still requirespymomentum-core0.1.115 or newer. conda-forge and Pixi installs keep working withpymomentum0.1.89 or newer.
Thanks
Thank you to @ZainnQureshii for the default asset folder fix (#122).
Full changelog: v1.2.1...v1.2.2