ml-stable-diffusion
tortoise-tts
ml-stable-diffusion | tortoise-tts | |
---|---|---|
45 | 145 | |
16,111 | 11,819 | |
0.7% | - | |
7.4 | 8.0 | |
26 days ago | about 22 hours ago | |
Python | Jupyter Notebook | |
GNU General Public License v3.0 or later | Apache License 2.0 |
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.
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
tortoise-tts
-
ESpeak-ng: speech synthesizer with more than one hundred languages and accents
The quality also depends on the type of model. I'm not really sure what ESpeak-ng actually uses? The classical TTS approaches often use some statistical model (e.g. HMM) + some vocoder. You can get to intelligible speech pretty easily but the quality is bad (w.r.t. how natural it sounds).
There are better open source TTS models. E.g. check https://github.com/neonbjb/tortoise-tts or https://github.com/NVIDIA/tacotron2. Or here for more: https://www.reddit.com/r/MachineLearning/comments/12kjof5/d_...
- FLaNK Stack Weekly 12 February 2024
-
OpenVoice: Versatile Instant Voice Cloning
I use Tortoise TTS. It's slow, a little clunky, and sometimes the output gets downright weird. But it's the best quality-oriented TTS I've found that I can run locally.
https://github.com/neonbjb/tortoise-tts
- [discussion] text to voice generation for textbooks
- DALL-E 3: Improving image generation with better captions [pdf]
-
Open Source Libraries
neonbjb/tortoise-tts
-
Running Tortoise-TTS - IndexError: List out of range
EDIT: It appears to be the exact same issue as this
-
My Deep Learning Rig
It was primarily being used to train TTS models (see https://github.com/neonbjb/tortoise-tts), which largely fit into a single GPUs memory. So, for data parallelism, x8 PCIe isn't that much of a concern.
-
PlayHT2.0: State-of-the-Art Generative Voice AI Model for Conversational Speech
Previously TortoiseTTS was associated with PlayHT in some way, although the exact connection is a bit vague [0].
From the descriptions here it sounds a lot like AudioLM / SPEAR TTS / some of Meta's recent multilingual TTS approaches, although those models are not open source, sounds like PlayHT's approach is in a similar spirit. The discussion of "mel tokens" is closer to what I would call the classic TTS pipeline in many ways... PlayHT has generally been kind of closed about what they used, would be interesting to know more.
I assume the key factor here is high quality, emotive audio with good data cleaning processes. Probably not even a lot of data, at least in the scale of "a lot" in speech, e.g. ASR (millions of hours) or TTS (hundreds to thousands). As opposed to some radically new architectural piece never before seen in the literature, there are lots of really nice tools for emotive and expressive TTS buried in recent years of publications.
Tacotron 2 is perfectly capable of this type of stuff as well, as shown by Dessa [1] a few years ago (this writeup is a nice intro to TTS concepts). With the limit largely being, at some point you haven't heard certain phonetic sounds before in a voice, and need to do something to get plausible outcomes for new voices.
[0] Discussion here https://github.com/neonbjb/tortoise-tts/issues/182#issuecomm...
[1] https://medium.com/dessa-news/realtalk-how-it-works-94c1afda...
-
Comparing Tortoise and Bark for Voice Synthesis
Tortoise GitHub repo - Source code, documentation, and usage guide
What are some alternatives?
MochiDiffusion - Run Stable Diffusion on Mac natively
TTS - 🐸💬 - a deep learning toolkit for Text-to-Speech, battle-tested in research and production
ml-ane-transformers - Reference implementation of the Transformer architecture optimized for Apple Neural Engine (ANE)
bark - 🔊 Text-Prompted Generative Audio Model
modelscope - ModelScope: bring the notion of Model-as-a-Service to life.
Real-Time-Voice-Cloning - Clone a voice in 5 seconds to generate arbitrary speech in real-time
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.
piper - A fast, local neural text to speech system
fast-stable-diffusion - fast-stable-diffusion + DreamBooth
tacotron2 - Tacotron 2 - PyTorch implementation with faster-than-realtime inference
stable-diffusion-webui - Stable Diffusion web UI
larynx - End to end text to speech system using gruut and onnx