Skip to content

Possible Apple MPS issue - prompts array fails to generate any images #363

@FahimF

Description

@FahimF

Describe the bug

If you pass an array of prompts (a list of strings) rather than single prompt (a single string) to the pipeline, under Apple mps you never get an actual image. You get a lot of NSFW warnings and some images with noise but that's it.

If you run the image generator multiple times in a loop instead, it works.

Reproduction

Try the following code for image generation under an Apple mps device and check the output.

images = pipe(
        [prompt] * num_images,
        guidance_scale=7.5,
        latents = latents,
    )["sample"]

Logs

No response

System Info

Using the source from the GitHub repo main branch since the current release version was missing some stuff.

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleIssues that haven't received updates

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions