Skip to content

MLX error: [reshape] Cannot reshape array of size 481656 into shape (1,2,3,16,2,14,7,2,14) #200

Closed
@cyrilzakka

Description

@cyrilzakka

Hi there.

Love this library so far. However it seems like the default VLM example app crashes when selecting a photo from the photo gallery instead of the default image of the flower and the bee. The following error is returned:

MLX error: [reshape] Cannot reshape array of size 481656 into shape (1,2,3,16,2,14,7,2,14). at /Users/cyril/Library/Developer/Xcode/DerivedData/HuggingSnap-ednrujnmdusiyxdproxrvmnwmrcm/SourcePackages/checkouts/mlx-swift/Source/Cmlx/mlx-c/mlx/c/ops.cpp:2337

This is reproducible when using an image taken with the device camera.

Will look into it and submit a pull request as needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions