Skip to content

Trouble running mask generation on M1 Max #129

Open
@mary-mark

Description

@mary-mark

Hi there,

I am trying to run SamAutomaticMaskGenerator using device = 'mps' but I am getting the following error:
RuntimeError: Attempted to set the storage of a tensor on device "cpu" to a storage on different device "mps:0". This is no longer allowed; the devices must match.

I also tried to use device = 'cpu' but the same error appears. Is it possible to run this on M1 Max, and if so how could I fix this error?

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