Skip to content

fix(traj-pred-vae): global_traj axis_angle uses empty key (+3 more) - #65

Open
andrewwhitecdw wants to merge 1 commit into
NVlabs:mainfrom
andrewwhitecdw:bugfix/traj-pred-vae-assorted-6c9c40dd
Open

fix(traj-pred-vae): global_traj axis_angle uses empty key (+3 more)#65
andrewwhitecdw wants to merge 1 commit into
NVlabs:mainfrom
andrewwhitecdw:bugfix/traj-pred-vae-assorted-6c9c40dd

Conversation

@andrewwhitecdw

@andrewwhitecdw andrewwhitecdw commented Jul 27, 2026

Copy link
Copy Markdown

Small fixes in traj_pred/models/traj_pred_vae.py:

fix: global_traj axis_angle uses empty key causing KeyError

Fix: Replace:

            orient_key = {'axis_angle': '', '6d': '_6d', 'quat': '_q_'}[self.orient_type]

with:

            orient_key = {'axis_angle': 'orient_tp', '6d': 'orient_6d_tp', 'quat': 'orient_q_tp'}[self.orient_type]

fix: DataEncoder max pooling returns tuple instead of tensor

Fix: Replace:

        else:
            x = x.max(dim=0)

with:

        else:
            x = x.max(dim=0)[0]

fix: DataDecoder max pooling returns tuple instead of tensor

Fix: Replace:

            else:
                h = context.max(dim=0)

with:

            else:
                h = context.max(dim=0)[0]

fix: DataDecoder calls prior_mlp unconditionally when None

Fix: Replace:

            h = self.prior_mlp(h)

with:

            if self.prior_mlp is not None:
                h = self.prior_mlp(h)

Files changed

  • traj_pred/models/traj_pred_vae.py

@andrewwhitecdw
andrewwhitecdw marked this pull request as ready for review July 28, 2026 00:50
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.

1 participant