Skip to content

Fix: align pitch and yaw return order between model and pipeline - #46

Open
MCHieu-17 wants to merge 2 commits into
Ahmednull:mainfrom
MCHieu-17:fix/pitch-yaw-unpack-order
Open

Fix: align pitch and yaw return order between model and pipeline#46
MCHieu-17 wants to merge 2 commits into
Ahmednull:mainfrom
MCHieu-17:fix/pitch-yaw-unpack-order

Conversation

@MCHieu-17

Copy link
Copy Markdown

Fixes #45

Changes Made

  • Standardized the return and unpacking order of pitch and yaw to be consistent between l2cs/model.py and l2cs/pipeline.py.
  • Fixed gaze visualization swapping pitch and yaw incorrectly.

Copilot AI review requested due to automatic review settings July 27, 2026 15:32

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request fixes an output-order mismatch in the gaze model by making l2cs/model.py return (pitch, yaw) in the same order expected by the pipeline and downstream consumers (e.g., gaze rendering).

Changes:

  • Swapped the return order in L2CS model forward() from (yaw, pitch) to (pitch, yaw).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread l2cs/model.py Outdated
Comment on lines +68 to +70
pre_yaw_gaze = self.fc_yaw_gaze(x)
pre_pitch_gaze = self.fc_pitch_gaze(x)
return pre_yaw_gaze, pre_pitch_gaze
return pre_pitch_gaze, pre_yaw_gaze
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.

Bug: Inconsistent output unpacking order between model.py and pipeline.py

2 participants