huggingface / huggingface/swift-coreml-diffusers

Change between GPU+NeuralEngine / NeuralEngine will error generate image.

Open
#80 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
2.8k
Forks
235
PR merge metrics
No merged PRs in 30d

Description

I'm testing the Neural Engine supported models. When I use the SD1.5 model with Neural Engine first time, it works well with log "ANE model load has failed for on-device compiled macho. Must re-compile the E5 bundle. @ GetANEFModel".

Then I switch to GPU and Neural Engine, it will load the pipeline about 330 seconds, and then click generate it runs into error.

The error image is [as the link](https://drive.google.com/file/d/1pMe0rUTqaz2rDMixBk8jZ5yvVRJTTH7d/view?usp=sharing).

Then I close the diffusers app and restart it again.
It starts with GPU and Neural Engine, and it load the pipeline about 143.7 seconds, and It can generate images.
But when I switch it back to Neural Engine, it runs into error when generate images.

This can be reproduced easily, but I don't know how to fix this.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.