madebyollin / maple-diffusion

Stable Diffusion inference on iOS / macOS using MPSGraph
https://madebyoll.in/posts/maple_diffusion/
MIT License
799 stars 51 forks source link

failed assertion #20

Open GeorgeBellTMH opened 2 years ago

GeorgeBellTMH commented 2 years ago

2022-10-20 16:29:53.297676-0400 maple-diffusion[4294:89875] Metal GPU Frame Capture Enabled 2022-10-20 16:29:53.297919-0400 maple-diffusion[4294:89875] Metal API Validation Enabled -[MTLDebugComputeCommandEncoder setThreadgroupMemoryLength:atIndex:]:543: failed assertion length(16640) must be <= 16384.' -[MTLDebugComputeCommandEncoder setThreadgroupMemoryLength:atIndex:]:543: failed assertionlength(16640) must be <= 16384.' CoreSimulator 857.7 - Device: iPhone 13 Pro (9DA5A0FF-129A-426D-922B-5AFFEB611685) - Runtime: iOS 16.0 (20A360) - DeviceType: iPhone 13 Pro (lldb)

Running in simulator on intel

GeorgeBellTMH commented 2 years ago

https://stackoverflow.com/questions/60645401/xcode-logging-metal-api-validation-enabled disabling metal api validation resolved the issue...

GeorgeBellTMH commented 2 years ago

However the end result was a black image...

madebyollin commented 2 years ago

Hmm, are you able to directly run Maple Diffusion on Intel (macOS)? The simulator's Metal device seems unusual and may not be well-supported by the MPSGraph framework.