8000 Clarify world frame naming in MotionLoss and rollout_latent_motion by M-Colley · Pull Request #69 · vye16/slahmr · GitHub
[go: up one dir, main page]

Skip to content

Clarify world frame naming in MotionLoss and rollout_latent_motion - #69

Open
M-Colley wants to merge 1 commit into
vye16:mainfrom
M-Colley:fix/issue-51-motionloss-world-naming
Open

M-Colley wants to merge 1 commit into
vye16:mainfrom
M-Colley:fix/issue-51-motionloss-world-naming

Conversation

@M-Colley
Copy link
Copy Markdown

MotionLoss.forward in slahmr/optim/losses.py previously described cam_pred_data as camera-frame predictions, and MovingSceneModel.rollout_latent_motion in slahmr/optim/moving_scene.py named its world-frame output dictionary cam_dict with a camera-frame comment. In SLAHMR, apply_world2prior(..., inverse=True) transforms predictions back to the world coordinate frame, and callers (rollout_smpl_steps and MotionOptimizer.forward_pass) consume these values as world_res and world_preds. Fixes #51.

Therefore, this change updates the MotionLoss.forward docstring to state that cam_pred_data holds world-frame predictions while preserving the parameter name for signature compatibility. Additionally, it renames the local cam_dict variable in MovingSceneModel.rollout_latent_motion to world_dict and updates the inline comment.

Verification ran py_compile on slahmr/optim/losses.py and slahmr/optim/moving_scene.py, AST checks on the updated docstring and local variable names, and git diff --check, all exiting with code 0.

Fixes vye16#51.

Signed-off-by: Mark Colley <39366189+M-Colley@users.noreply.github.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Why is camera coordinate data passed to SMPLLoss during computing MotionLoss?

1 participant

0