madebyollin / maple-diffusion

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

Mismatch between byte count of data #28

Closed rycossette closed 1 year ago

rycossette commented 1 year ago

Followed all instructions but I get this error when I build for my mac in xcode:

assert(data.count == expectedCount, "Mismatch between byte count of data \(data.count) and expected size \(expectedCount) for \(numels) els in \(fileUrl)")

if I expand the error I see this:

Thread 2: Assertion failed: Mismatch between byte count of data 51840 and expected size 23040 for 11520 els in file:///Users/ryancossette/Library/Developer/Xcode/DerivedData/maple-diffusion-ezlrowjenuiuddbvzedttsyyclbg/Build/Products/Debug/maple-diffusion.app/Contents/Resources/bins/model.diffusion_model.input_blocks.0.0.weight.bin

rycossette commented 1 year ago

Looks like this was coming from the model I converted. I used the runwayml 1.5 inpainting model. I switched to the 1.4 and it works.