custom-diffusion
ml-stable-diffusion
custom-diffusion | ml-stable-diffusion | |
---|---|---|
11 | 45 | |
1,787 | 16,245 | |
2.0% | 1.5% | |
5.6 | 7.4 | |
5 months ago | 14 days ago | |
Python | Python | |
GNU General Public License v3.0 or later | MIT License |
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.
custom-diffusion
-
ELITE: new fine-tuning technique that can be trained in less than a second
I think https://github.com/adobe-research/custom-diffusion
-
What's the best technology for training faces these days?
I attempted Custom Diffusion which, too, did not yield anywhere near as photorealistic face outputs as Dreambooth.
- [Discussion] Stable Diffusion Models with Subject/Keyword References
-
Suggestions for creating prompts with two people that you've added via fine-tuning?
Curious if anyone has better experiences? I've also been trying Adobe's Custom Diffusion code, which probably works the best out of Textual Inversion and Dreambooth, but the code they provide is super buggy and very hard to use with Automatic1111.
-
Version 0.1.0 of LoRA released! (alternative to Dreambooth, 3mb sharable files)
Well, actually it is https://github.com/adobe-research/custom-diffusion. It's Adobe, so this is probably only once in the lifetime :P
-
How would I go about creating an app like "Lensa" with Stable Diffusion?
A Few Comments - The "caveat" I mentioned above is that there are a few apps that are running Stable Diffusion locally on the user's device. Apple recently released a tool to convert Stable Diffusion models to CoreML. CoreML is their proprietary format for machine learning models, and runs insanely well on Apple devices with a Neural Engine (like newer Macs, iPhones, and iPads). However, this technology is in its infancy, almost certainly isn't capable of "training" a Stable Diffusion model, and isn't anywhere near as fast as running Dreambooth or Stable Diffusion on powerful servers. In the long-run, it might be possible to do all of this processing on a user's device, but it's likely that we're a long ways away from that. - Dreambooth itself isn't that hard to run and play around with yourself, nor is it that hard to integrate into an automated server pipeline, though what it does under the hood is pretty amazing. Dreambooth isn't the only way to "train" a Stable Diffusion model with custom photos, and other people/companies (like Adobe), have found other ways to create amazing AI-generated images with user-provided photos (see their Custom Diffusion GitHub). - Given how long Lensa has been around, and that they're pretty decently funded (they raised $6m in 2019, I believe), it's very likely they they've developed their own in-house way of training Stable Diffusion models, just like the Adobe reference above. But if any of us were to build an app that works like Lensa, a starting point would probably be to use Dreambooth since it's well-built out and easy to integrate, and get similar results. - A very popular way to run Dreambooth is to use a Google Colab notebook, like this one from TheLastBen's GitHub. Since the vast majority of us don't have super powerful GPU cards in our computer, and are just playing around with Dreambooth/Stable Diffusion, the Google Colab notebook lets you go step-by-step to "setup" an environment for doing Dreambooth, but runs it on Google's super-powerful servers. The cool thing about Google Colab, besides not having to have a super-powerful computer yourself to still do Dreambooth with great performance, is that you can look through the code of how the Google Colab notebook works, and that could be a foundation for an engineer to learn how to implement Dreambooth in your own scripts that run on the "Backend Server" for your app.
-
How does tiktok’s AI portrait filter work?
If it is Stable Diffusion-based, I'd guess a few things. Given the small size that would be needed to handle this for every possible user, I wonder if it's using something that isn't Dreambooth based, like Adobe's [Custom Diffusion(https://github.com/adobe-research/custom-diffusion), or some in-house variant of that, that's able to basically generate a small file that could be processed for each user.
-
How to get the smallest models or portions of Dreambooth-trained models for a specific subject
Adobe Research also has "Custom Diffusion" out: https://github.com/adobe-research/custom-diffusion. It's got a similar goal of ~megabytes sized outputs. Warning that it's got a proprietary license.
- Custom Diffusion - Adobe Research
- What's the difference between custom-diffusion and Dreambooth?
ml-stable-diffusion
-
Show HN: Run Stable Diffusion Directly on iPhone
Not sure how that got in here. 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
-
Apple releases MLX; has working Stable Diffusion example
Where are you seeing a Stable Diffusion example? I'm familiar with Apple's CoreML Implementation of StableDiffusion, but is there something else in the SD world available for download now as part of MLX?
-
Stable Diffusion XL on iPhone with Core ML
Other features and improvements to the repo https://github.com/apple/ml-stable-diffusion
-
FLaNK Stack Weekly for 20 June 2023
M1! https://github.com/apple/ml-stable-diffusion
- Apple Introduces M2 Ultra with up to 192GB Unified Memory - LLM powerhouse?
-
Need help choosing between two laptops
M2 MBA can run Stable Diffusion and LLaMa comfortably, which means generating your potential game/image asset locally. They're pretty much impractical in 7340.
-
Speed Is All You Need: On-Device Acceleration of Large Diffusion Models
Interestingly these are OpenCL kernels so in theory some of the optimizations might run out-of-the-box on CPUs.
It would be instructive to compare their speedups on the iPhone to the Apple CoreML implementation: https://github.com/apple/ml-stable-diffusion
-
Is it worth buying a used M1 Mac for stable diffusion when you have iPad M1 but Intel Mac
Stable Diffusion runs great on my M1 Macs. The Draw Things app makes it really easy to run too. You also can’t disregard that Apple’s M chips actually have dedicated neural processing for ML/AI. This actual makes a Mac more affordable in this category because you don’t need to purchase a beefy graphics card. Not to mention that Apple has even optimized their software specifically for Stable Diffusion (related GitHub). Draw Things can take advantage of this. There’s a few guides to running the web UI on M1 too. I prefer the Draw Things app because of how easy it is to use, but the web UI is also nice because of all of the plugins and workflows that the community has built over time.
-
Stable diffusion for Apple silicon
LINKS: ml-stable-diffusion: https://github.com/apple/ml-stable-diffusion Diffusers (HuggingFace Mac App): https://apps.apple.com/app/diffusers/id1666309574?mt=12
-
Apple: Transformer architecture optimized for Apple Silicon
So, is Stable Diffusion working finally on TPU or not? DiffusionBee uses GPU and running this https://github.com/apple/ml-stable-diffusion with CPU_AND_NE just segfaults
What are some alternatives?
lora - Using Low-rank adaptation to quickly fine-tune diffusion models.
MochiDiffusion - Run Stable Diffusion on Mac natively
sd-webui-additional-networks
ml-ane-transformers - Reference implementation of the Transformer architecture optimized for Apple Neural Engine (ANE)
LoRA - Code for loralib, an implementation of "LoRA: Low-Rank Adaptation of Large Language Models"
modelscope - ModelScope: bring the notion of Model-as-a-Service to life.
configDB - A database like , dynamic config file generator to enable more customization in your python project , from games to ML notebooks and everything between.
pulsar-recipes - A StreamNative library containing a collection of recipes that are implemented on top of the Pulsar client to provide higher-level functionality closer to the application domain.
WaveDiff - Official Pytorch Implementation of the paper: Wavelet Diffusion Models are fast and scalable Image Generators (CVPR'23)
fast-stable-diffusion - fast-stable-diffusion + DreamBooth
LLM-Adapters - Code for our EMNLP 2023 Paper: "LLM-Adapters: An Adapter Family for Parameter-Efficient Fine-Tuning of Large Language Models"
stable-diffusion-webui - Stable Diffusion web UI