liuliu / swift-diffusion

BSD 3-Clause "New" or "Revised" License
429 stars 33 forks source link

Support for macOS Sonoma #44

Closed ghost closed 1 year ago

ghost commented 1 year ago

Currently it does not work on macOS Sonoma. I tried running DrawThings.ai on Sonoma and it did not work. It crashes.

What could be causing this issue?

liuliu commented 1 year ago

Might be related to that in the newer OS, the MPSGraph executable optimization level updated to 1.

ghost commented 1 year ago

Thanks, what could be a possible fix?

liuliu commented 1 year ago

Can you help to test if uncomment this line: https://github.com/liuliu/ccv/blob/unstable/lib/nnc/mps/ccv_nnc_mps.m#L426 and change it to Level0 would be sufficient to run it again?

ghost commented 1 year ago

Okay i will let you know.

ghost commented 1 year ago

This fixes the issue. Thanks.