Skip to content

ml-stable-diffusion not compatible with numpy v1.24.0 #77

Closed
@alexrozanski

Description

@alexrozanski

Mirroring an issue I created in the coremltools repo: apple/coremltools#1718

Running pip install -e . as per the setup instructions before running python_coreml_stable_diffusion.torch2coreml is broken as of yesterday (when numpy v1.24.0 was released) because v1.24.0 removes np.bool which coremltools uses.

A workaround for now is to:

pip install -e .
pip uninstall -y numpy
pip install numpy==1.23.5

Which means that running python_coreml_stable_diffusion.torch2coreml is then successful.

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