from Hacker News

Show HN: Run Stable Diffusion Directly on iPhone

by mofle on 1/12/24, 1:30 PM with 42 comments

  • by outcoldman on 1/12/24, 5:35 PM

    Apple released CoreML Stable Diffusion library a little over a year ago [1]. Hugging Face released their version of the example app for the CoreML Stable Diffusion library [2].

    The app should be able to run on iPhone 14 Pro, I believe the requirements is about 6-8Gb of RAM. And I was not able to run it on iPhone 13 Mini, because it has only 4Gb of RAM.

    - [1] https://github.com/apple/ml-stable-diffusion

    - [2] https://github.com/huggingface/swift-coreml-diffusers

  • by abtinf on 1/12/24, 3:32 PM

    How does this compare to Draw Things?
  • by thebasic on 1/12/24, 4:55 PM

    Testing on my iPhone 15 pro - I couldn't find it in the app store with a search but I looked up the developer and was able to download it there. Working so far, first image took a while (a few minutes, as the app warned me), but subsequent images were a bit faster (~1.5 minutes). Phone does get pretty warm though.
  • by lxe on 1/12/24, 10:19 PM

    Great work, Sindre! Didn't realize you were in the AI and app space. You've got quite a prolific OSS portfolio spanning decades at this point.
  • by AISnakeOil on 1/12/24, 7:56 PM

    Runs pretty slow and hot on my 15 Pro. Seems like a pretty old model as well.
  • by hoothin on 1/13/24, 12:43 PM

    The storage capacity of Stable Diffusion on my computer has exceeded 100 GB, so I don't consider it a productive option.
  • by eurekin on 1/12/24, 4:18 PM

    It really would not work with 14 plus?
  • by yreg on 1/12/24, 3:17 PM

    Nice, good job
  • by kobykarp on 1/13/24, 12:43 AM

    Stable Diffusion runs on iPhone without any issues on DiffusionHub.io
  • by evaneykelen on 1/12/24, 4:40 PM

    The author of this app has also made a bunch of nice Mac apps, mostly menubar apps. I use several in my daily work.
  • by mikeytown2 on 1/12/24, 3:12 PM

    Requires iPhone 15 pro
  • by makerofthings on 1/12/24, 9:17 PM

    I tried using it to generate some sprites for a game I've been thinking about. Kept telling me it couldn't show me the image because it wasn't safe (I asked for robot pirates). Couldn't see a way to turn off the nsfw protection. Uninstalled it :(