ncnn VS swift-diffusion

Compare ncnn vs swift-diffusion and see what are their differences.

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
ncnn swift-diffusion
12 6
19,176 410
1.8% -
9.4 8.4
5 days ago 22 days ago
C++ Swift
GNU General Public License v3.0 or later BSD 3-clause "New" or "Revised" License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

ncnn

Posts with mentions or reviews of ncnn. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-02-12.

swift-diffusion

Posts with mentions or reviews of swift-diffusion. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-12.
  • Show HN: Run Stable Diffusion Directly on iPhone
    3 projects | news.ycombinator.com | 12 Jan 2024
    I am going to put model related code we use in a public repo soon (it is very similar to https://github.com/liuliu/swift-diffusion but in NHWC format). ANE will be around 25s if it runs. DT's default only uses GPUs and 35s is on GPU (yes, like you said, upscaling would take extra 10s).
  • Some notes on porting SD2 over to iPhone (or other platforms)
    3 projects | /r/StableDiffusion | 24 Nov 2022
    The text encoder uses a new vocabulary set, make sure you copied them from open_clip repo: https://github.com/mlfoundations/open_clip (I have these also available at: https://github.com/liuliu/swift-diffusion/tree/liu/unet/examples/open_clip
  • Draw Things, Stable Diffusion in your pocket, 100% offline and free
    7 projects | /r/StableDiffusion | 9 Nov 2022
    Should be able too, if there is a need. I am more interested to support training hypernetwork from the app directly. The conversion script itself is open-source (https://github.com/liuliu/swift-diffusion/blob/main/examples/unet/main.swift), but not polished, and because Apple doesn't allow you to run Python on device, so I cannot make it as easy as typing a URL and get done. Need to figure out what the UX looks like without me providing a networked services ...
  • Show HN: Draw Things, Stable Diffusion in your pocket, 100% offline
    1 project | news.ycombinator.com | 9 Nov 2022
    Hi, this is the first app in a while (probably 10 years) that I submitted to AppStore. I've done this app in 3 weeks, so there are a lot to be polished. The technology that enables this I discussed in depth in an accompanied blog post: https://liuliu.me/eyes/stretch-iphone-to-its-limit-a-2gib-mo...

    Some parts of it (or major parts) is also available at https://github.com/liuliu/swift-diffusion. I plan to port more stuff back to swift-diffusion and make a CLI tool out of it (it is a bit more work than the app because I need to consider CUDA compatibility there).

    AMA!

What are some alternatives?

When comparing ncnn and swift-diffusion you can also consider the following projects:

XNNPACK - High-efficiency floating-point neural network inference operators for mobile, server, and Web

diffusionbee-stable-diffusion-ui - Diffusion Bee is the easiest way to run Stable Diffusion locally on your M1 Mac. Comes with a one-click installer. No dependencies or technical knowledge needed.

rife-ncnn-vulkan - RIFE, Real-Time Intermediate Flow Estimation for Video Frame Interpolation implemented with ncnn library

stablediffusion - High-Resolution Image Synthesis with Latent Diffusion Models

deepdetect - Deep Learning API and Server in C++14 support for Caffe, PyTorch,TensorRT, Dlib, NCNN, Tensorflow, XGBoost and TSNE

diffusionbee-stable-diffusion-ui - Diffusion Bee

netron - Visualizer for neural network, deep learning and machine learning models

fickling - A Python pickling decompiler and static analyzer

darknet - Convolutional Neural Networks

open_clip - An open source implementation of CLIP.

RPi_64-bit_Zero-2-image - Raspberry Pi Zero 2 W 64-bit OS image with OpenCV, TensorFlow Lite and ncnn Framework.

torch-mlir - The Torch-MLIR project aims to provide first class support from the PyTorch ecosystem to the MLIR ecosystem.