Skip to content

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

Description

@MCHieu-17

Bug Description

There is a mismatch in the output unpacking order between l2cs/model.py and l2cs/pipeline.py.

  • In l2cs/model.py, the model returns (yaw, pitch).
  • In l2cs/pipeline.py, the output is unpacked as pitch, yaw = ....

This inconsistency causes the pitch and yaw values to be swapped during pipeline execution, leading to incorrect gaze direction visualization and coordinates.

Location of Bug

  • Output definition in l2cs/model.py: return yaw, pitch
  • Unpacking in l2cs/pipeline.py: pitch, yaw = self.model(...)

Expected Behavior

The output order should be consistent across the codebase (ideally returning pitch, yaw consistently, or matching the unpacking logic).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions