swift-coreml-diffusers icon indicating copy to clipboard operation
swift-coreml-diffusers copied to clipboard

Not running on a 2017 MacBook Pro

Open algal opened this issue 1 year ago • 6 comments

I’m trying run the following setup:

  • App version: Version 1.1 (20230222.140932), from the App Store
  • model: stability/stable-diffusion-2-base or the 2.1 model
  • 13-inch, 2017 MacBook Pro:   -  Processor: 2.3 GHz Dual-Core Intel Core i5   - Graphics: Intel Iris Plus Graphics 640 1536 MB   - Memory: 16 GB 2133 MHz LPDDR3
  • macOS: 13.2.1 (Ventura)

What I did:

I downloaded from the App Store, ran the app, waited for it to install the default initial model, and then hit generate to generate an image with all default prompt and settings. It says “Preparing Model” and then says “Generation Error” and when I hit info the error message says it’s from com.apple.CoreML domain and that the error message is “Error computing NN outputs”. I got the same error when I switched to the 2.1 model, waited for it to download, and tried to generate with it.

Is this configuration expected to work?

algal avatar Feb 26 '23 21:02 algal

Hello, @algal! I have the feeling that 1.5 GB of GPU RAM won't be enough to run the model, but I haven't been able to test on such a configuration myself. There are some tricks that could be applied for memory reduction (model offloading to CPU), but I'm not sure if they will be enough. I can create a test build that exposes an advanced setting to enable it and see if it works. Another option would be to just use the CPU in this case, but I'm afraid it would be too slow.

Did you try the smaller OFA-Sys/small-stable-diffusion model? It's a distilled model whose quality is not as good as Stable Diffusion's, but it uses a smaller UNet.

pcuenca avatar Feb 27 '23 11:02 pcuenca

13-inch, 2020 MacBook Pro, 1.5GB GPU, 16GB ram... also shows Error computing NN outputs for both models. Hope there will be a CPUonly option soon.

BigBalli avatar Feb 27 '23 21:02 BigBalli

13-inch, 2020 MacBook Pro, 1.5GB GPU, 16GB ram... also shows Error computing NN outputs for both models. Hope there will be a CPUonly option soon.

Same hardware and same error here. ScreenShot 2023-04-08 at 20 20 53

YunfangHou avatar Apr 08 '23 19:04 YunfangHou

The smaller model does not work either.

YunfangHou avatar Apr 08 '23 19:04 YunfangHou

2019 13-inch macbook pro, same error with Error computing NN outputs

RickardAhlstedt avatar May 03 '23 12:05 RickardAhlstedt

Same here Mac Mini 2018 3GHZ intel core i5 6 cores, 12 Gb of RAM, Ventura 13.4.1 Screenshot 2023-10-18 alle 16 26 10

microspino avatar Oct 18 '23 14:10 microspino