Skip to content

PRoPE dimension bug #116

@rmbrualla

Description

@rmbrualla

Found with AI -- seems like a real bug.

In PRopeFlashAttention.forward, the image_width and image_height parameters passed to _prepare_apply_fns are swapped. The function receives H (height) and W (width) from the standard PyTorch image format, but passes image_width=H and image_height=W. This reverses the dimensions, causing incorrect camera intrinsic normalization when intrinsics K are provided. The intrinsic matrix elements fx, cx would be divided by height instead of width, and fy, cy by width instead of height.

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