Remove misplaced model-card copy
Browse files
.hf_release_work/Inflect-Micro-v2/README.md
DELETED
|
@@ -1,207 +0,0 @@
|
|
| 1 |
-
<p align="center">
|
| 2 |
-
<img src="assets/inflect-hero.png" alt="Inflect hero banner">
|
| 3 |
-
</p>
|
| 4 |
-
|
| 5 |
-
<p align="center">
|
| 6 |
-
<strong>Inflect-Nano is an ultra-small local English TTS project. Inflect-Nano-v1 is released on Hugging Face as a complete 4.63M-parameter text-to-waveform stack; Inflect-Nano-v2 is active research toward stronger 4M and 10M variants.</strong>
|
| 7 |
-
</p>
|
| 8 |
-
|
| 9 |
-
<p align="center">
|
| 10 |
-
<a href="#inflect-nano-v1">v1 Release</a> ·
|
| 11 |
-
<a href="#quickstart">Quickstart</a> ·
|
| 12 |
-
<a href="#architecture">Architecture</a> ·
|
| 13 |
-
<a href="#inflect-nano-v2">v2 Research</a> ·
|
| 14 |
-
<a href="#evaluation">Evaluation</a> ·
|
| 15 |
-
<a href="PUBLISHING.md">Publishing</a>
|
| 16 |
-
</p>
|
| 17 |
-
|
| 18 |
-
---
|
| 19 |
-
|
| 20 |
-
## Inflect-Nano-v1
|
| 21 |
-
|
| 22 |
-
Inflect-Nano-v1 is a tiny English text-to-speech model with **4.632M total inference parameters**, including its vocoder.
|
| 23 |
-
|
| 24 |
-
Released model:
|
| 25 |
-
|
| 26 |
-
- [owensong/Inflect-Nano-v1 on Hugging Face](https://huggingface.co/owensong/Inflect-Nano-v1)
|
| 27 |
-
|
| 28 |
-
The goal is not to beat large TTS systems. The goal is to prove how far a complete local text-to-waveform stack can be pushed at an extremely small size.
|
| 29 |
-
|
| 30 |
-
### Highlights
|
| 31 |
-
|
| 32 |
-
- 4.63M total inference parameters
|
| 33 |
-
- Includes the vocoder
|
| 34 |
-
- 24 kHz audio
|
| 35 |
-
- Single English male voice
|
| 36 |
-
- Local PyTorch inference
|
| 37 |
-
- Built for tiny-model experiments, local assistants, embedded demos, and efficient inference research
|
| 38 |
-
|
| 39 |
-
### Model Size
|
| 40 |
-
|
| 41 |
-
| Part | Parameters |
|
| 42 |
-
| --- | ---: |
|
| 43 |
-
| Acoustic model | 3.465M |
|
| 44 |
-
| Vocoder generator | 1.167M |
|
| 45 |
-
| Total inference stack | 4.632M |
|
| 46 |
-
|
| 47 |
-
Released model files:
|
| 48 |
-
|
| 49 |
-
```text
|
| 50 |
-
weights/inflect_nano_v1_acoustic.pt
|
| 51 |
-
weights/inflect_nano_v1_vocoder.pt
|
| 52 |
-
```
|
| 53 |
-
|
| 54 |
-
## Quickstart
|
| 55 |
-
|
| 56 |
-
Use the Hugging Face release for the runnable v1 model:
|
| 57 |
-
|
| 58 |
-
```bash
|
| 59 |
-
git clone https://huggingface.co/owensong/Inflect-Nano-v1
|
| 60 |
-
cd Inflect-Nano-v1
|
| 61 |
-
pip install -r requirements.txt
|
| 62 |
-
python inference.py --text "Wait, are you actually being for real now?" --out sample.wav
|
| 63 |
-
```
|
| 64 |
-
|
| 65 |
-
CPU:
|
| 66 |
-
|
| 67 |
-
```bash
|
| 68 |
-
python inference.py --device cpu --text "Please say neighborhood clearly." --out sample_cpu.wav
|
| 69 |
-
```
|
| 70 |
-
|
| 71 |
-
Simple controls:
|
| 72 |
-
|
| 73 |
-
```bash
|
| 74 |
-
python inference.py \
|
| 75 |
-
--text "The appointment moved to 1:25." \
|
| 76 |
-
--length-scale 1.03 \
|
| 77 |
-
--pitch-scale 1.00 \
|
| 78 |
-
--energy-scale 1.00 \
|
| 79 |
-
--out sample_controlled.wav
|
| 80 |
-
```
|
| 81 |
-
|
| 82 |
-
Local Gradio demo:
|
| 83 |
-
|
| 84 |
-
```bash
|
| 85 |
-
python app.py
|
| 86 |
-
```
|
| 87 |
-
|
| 88 |
-
## Architecture
|
| 89 |
-
|
| 90 |
-
Inflect-Nano-v1 uses a compact non-autoregressive acoustic model plus a small waveform generator.
|
| 91 |
-
|
| 92 |
-
```mermaid
|
| 93 |
-
flowchart LR
|
| 94 |
-
A["Text"] --> B["English text frontend"]
|
| 95 |
-
B --> C["Compact FastSpeech-style acoustic model"]
|
| 96 |
-
C --> D["80-bin mel spectrogram"]
|
| 97 |
-
D --> E["Small Snake HiFi-GAN-style vocoder"]
|
| 98 |
-
E --> F["24 kHz waveform"]
|
| 99 |
-
```
|
| 100 |
-
|
| 101 |
-
Main v1 settings:
|
| 102 |
-
|
| 103 |
-
| Setting | Value |
|
| 104 |
-
| --- | --- |
|
| 105 |
-
| Sample rate | 24 kHz |
|
| 106 |
-
| Mel bins | 80 |
|
| 107 |
-
| Acoustic hidden size | 168 |
|
| 108 |
-
| Encoder layers | 5 |
|
| 109 |
-
| Decoder layers | 6 |
|
| 110 |
-
| Vocoder upsample rates | 8, 8, 2, 2 |
|
| 111 |
-
|
| 112 |
-
The acoustic model predicts duration, pitch, energy, and brightness before decoding mel frames. The vocoder is a small Snake-activation HiFi-GAN-style generator trained for 24 kHz reconstruction.
|
| 113 |
-
|
| 114 |
-
## Good For
|
| 115 |
-
|
| 116 |
-
- Tiny local TTS experiments
|
| 117 |
-
- Offline assistant prototypes
|
| 118 |
-
- Efficient inference research
|
| 119 |
-
- Embedded speech demos
|
| 120 |
-
- Browser/WASM-style exploration
|
| 121 |
-
- Baseline comparisons for sub-5M TTS work
|
| 122 |
-
|
| 123 |
-
## Not Good For
|
| 124 |
-
|
| 125 |
-
- Production narration
|
| 126 |
-
- Accessibility-critical output
|
| 127 |
-
- Voice cloning
|
| 128 |
-
- Multilingual speech
|
| 129 |
-
- High-fidelity audiobook generation
|
| 130 |
-
- Matching large modern TTS systems
|
| 131 |
-
|
| 132 |
-
## Limitations
|
| 133 |
-
|
| 134 |
-
Inflect-Nano-v1 is a very small experimental model. It can sound robotic, buzzy, or unstable, especially on difficult unseen text. Long prompts and unusual phrasing are less reliable, and the vocoder is a clear quality bottleneck.
|
| 135 |
-
|
| 136 |
-
Use v1 as a tiny-model research/demo release, not as a production TTS engine.
|
| 137 |
-
|
| 138 |
-
## Inflect-Nano-v2
|
| 139 |
-
|
| 140 |
-
Inflect-Nano-v2 is the active research track. It is not released yet.
|
| 141 |
-
|
| 142 |
-
Current direction:
|
| 143 |
-
|
| 144 |
-
- two planned sizes: approximately 4M and 10M total inference parameters
|
| 145 |
-
- single-voice English first, with cleaner finetuning paths later
|
| 146 |
-
- teacher-distilled data from larger TTS systems
|
| 147 |
-
- stronger acoustic model experiments around prior-plus-residual CFM
|
| 148 |
-
- vocoder bakeoffs around compact HiFi-GAN, iSTFTNet, and source-filter variants
|
| 149 |
-
- objective checks plus listening tests before any release claim
|
| 150 |
-
|
| 151 |
-
The v2 rule is strict: do not trust training loss by itself. A candidate has to survive reconstruction tests, unseen-text listening, objective diagnostics, and a clear comparison against v1.
|
| 152 |
-
|
| 153 |
-
## Evaluation
|
| 154 |
-
|
| 155 |
-
Inflect is evaluated with both human listening and objective checks.
|
| 156 |
-
|
| 157 |
-
```mermaid
|
| 158 |
-
flowchart TD
|
| 159 |
-
A["Generate fixed prompt set"] --> B["Blind A/B listening"]
|
| 160 |
-
A --> C["Objective audio checks"]
|
| 161 |
-
B --> D["Accept, reject, or retry experiment"]
|
| 162 |
-
C --> D
|
| 163 |
-
D --> E["Document result"]
|
| 164 |
-
```
|
| 165 |
-
|
| 166 |
-
Tracked checks include:
|
| 167 |
-
|
| 168 |
-
- pronunciation and text coverage
|
| 169 |
-
- speaker consistency for single-voice releases
|
| 170 |
-
- pacing and duration stability
|
| 171 |
-
- skipped or invented words
|
| 172 |
-
- leading clicks, long silences, and internal dropouts
|
| 173 |
-
- loudness jumps
|
| 174 |
-
- real-time factor
|
| 175 |
-
- vocoder artifacts
|
| 176 |
-
|
| 177 |
-
See [docs/EVALUATION.md](docs/EVALUATION.md).
|
| 178 |
-
|
| 179 |
-
## Repository Map
|
| 180 |
-
|
| 181 |
-
| Path | Purpose |
|
| 182 |
-
| --- | --- |
|
| 183 |
-
| [`inflect/`](inflect/) | Inflect-native modules and extension experiments. |
|
| 184 |
-
| [`scripts/`](scripts/) | Dataset generation, training, rendering, evaluation, and release tooling. |
|
| 185 |
-
| [`inflect_asr/`](inflect_asr/) | Side project for small ASR and teacher-label pipelines. |
|
| 186 |
-
| [`voice-encoder/`](voice-encoder/) | Voice conditioning and paralinguistic research. |
|
| 187 |
-
| [`docs/`](docs/) | Architecture, roadmap, evaluation, media kit, and release notes. |
|
| 188 |
-
| [`examples/`](examples/) | Lightweight public examples and sample assets. |
|
| 189 |
-
| [`assets/`](assets/) | README and media-kit visuals. |
|
| 190 |
-
|
| 191 |
-
Local generated outputs, checkpoints, reference voices, virtual environments, and third-party checkouts are intentionally excluded from GitHub.
|
| 192 |
-
|
| 193 |
-
## Publishing
|
| 194 |
-
|
| 195 |
-
GitHub is the source, docs, and experiment-planning home. Hugging Face is the release home for runnable model weights and model cards.
|
| 196 |
-
|
| 197 |
-
Current public release:
|
| 198 |
-
|
| 199 |
-
- [owensong/Inflect-Nano-v1](https://huggingface.co/owensong/Inflect-Nano-v1)
|
| 200 |
-
|
| 201 |
-
Future v2 releases should not replace v1 until they have better listening results, cleaner diagnostics, and a reproducible release package.
|
| 202 |
-
|
| 203 |
-
## License
|
| 204 |
-
|
| 205 |
-
Repository code and documentation are licensed under Apache 2.0 unless otherwise noted.
|
| 206 |
-
|
| 207 |
-
Generated datasets, reference voices, model checkpoints, and third-party components may have separate terms. See [LICENSE](LICENSE), [PUBLISHING.md](PUBLISHING.md), and [SECURITY.md](SECURITY.md).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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