apple / ml-stable-diffusion

Stable Diffusion with Core ML on Apple Silicon
MIT License
16.79k stars 935 forks source link

Error when trying to run coreml-stable-diffusion-v1-4_original_compiled on iPhone 12 Pro #26

Open darknoon opened 1 year ago

darknoon commented 1 year ago

iOS 16.2 (20C5058d)

2022-12-03 19:01:04.690255-0500 Hyperpaint[555:11322] [espresso] [Espresso::handle_ex_plan] exception=ANECF error: failed to load ANE model. Error=createProgramInstanceForModel:modelToken:qos:isPreCompiled:enablePowerSaving:statsMask:memoryPoolID:enableLateLatch:modelIdentityStr:error:: Program load failure (0x20004)
2022-12-03 19:01:04.702382-0500 Hyperpaint[555:11322] [coreml] Error plan build: -1.
2022-12-03 19:01:04.730233-0500 Hyperpaint[555:11322] [client] doUnloadModel:options:qos:error:: nil _ANEModel
2022-12-03 19:01:04.730324-0500 Hyperpaint[555:11322] [espresso] ANECF error:
darknoon commented 1 year ago

my code at the relevant commit with the issue

Alexadar commented 1 year ago

same issue

ios 16.1.2 StablDiffusn v1.4 iphone 12 (standard, non pro) Increased memory limit entitlement - yep config.computeUnits = MLComputeUnits.cpuAndNeuralEngine

What else could be done? Thanks in advance