Spaces:
Runtime error
Runtime error
Upload 3 files
Browse files- README.md +3 -5
- fp16/halve.py +17 -0
- fp16/kokoro-v0_19-half.pth +3 -0
README.md
CHANGED
|
@@ -6,6 +6,8 @@ base_model:
|
|
| 6 |
- yl4579/StyleTTS2-LJSpeech
|
| 7 |
pipeline_tag: text-to-speech
|
| 8 |
---
|
|
|
|
|
|
|
| 9 |
<audio controls><source src="https://huggingface.co/hexgrad/Kokoro-82M/resolve/main/demo/HEARME.wav" type="audio/wav"></audio>
|
| 10 |
|
| 11 |
**Kokoro** is a frontier TTS model for its size of **82 million parameters** (text in/audio out).
|
|
@@ -129,10 +131,6 @@ Kokoro v0.19 is limited in some ways, in its training set and architecture:
|
|
| 129 |
|
| 130 |
### Model Card Contact
|
| 131 |
|
| 132 |
-
`@rzvzn` on Discord
|
| 133 |
-
|
| 134 |
-
```py
|
| 135 |
-
# TODO: Add Discord server
|
| 136 |
-
```
|
| 137 |
|
| 138 |
<img src="https://static0.gamerantimages.com/wordpress/wp-content/uploads/2024/08/terminator-zero-41-1.jpg" width="400" alt="kokoro" />
|
|
|
|
| 6 |
- yl4579/StyleTTS2-LJSpeech
|
| 7 |
pipeline_tag: text-to-speech
|
| 8 |
---
|
| 9 |
+
❤️ Kokoro Discord Server: https://discord.gg/QuGxSWBfQy
|
| 10 |
+
|
| 11 |
<audio controls><source src="https://huggingface.co/hexgrad/Kokoro-82M/resolve/main/demo/HEARME.wav" type="audio/wav"></audio>
|
| 12 |
|
| 13 |
**Kokoro** is a frontier TTS model for its size of **82 million parameters** (text in/audio out).
|
|
|
|
| 131 |
|
| 132 |
### Model Card Contact
|
| 133 |
|
| 134 |
+
`@rzvzn` on Discord. Server invite: https://discord.gg/QuGxSWBfQy
|
|
|
|
|
|
|
|
|
|
|
|
|
| 135 |
|
| 136 |
<img src="https://static0.gamerantimages.com/wordpress/wp-content/uploads/2024/08/terminator-zero-41-1.jpg" width="400" alt="kokoro" />
|
fp16/halve.py
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from hashlib import sha256
|
| 2 |
+
from pathlib import Path
|
| 3 |
+
import torch
|
| 4 |
+
|
| 5 |
+
path = Path(__file__).parent.parent / 'kokoro-v0_19.pth'
|
| 6 |
+
assert path.exists(), f'No model pth found at {path}'
|
| 7 |
+
|
| 8 |
+
net = torch.load(path, map_location='cpu', weights_only=True)['net']
|
| 9 |
+
for a in net:
|
| 10 |
+
for b in net[a]:
|
| 11 |
+
net[a][b] = net[a][b].half()
|
| 12 |
+
|
| 13 |
+
torch.save(dict(net=net), 'kokoro-v0_19-half.pth')
|
| 14 |
+
with open('kokoro-v0_19-half.pth', 'rb') as rb:
|
| 15 |
+
h = sha256(rb.read()).hexdigest()
|
| 16 |
+
|
| 17 |
+
assert h == '70cbf37f84610967f2ca72dadb95456fdd8b6c72cdd6dc7372c50f525889ff0c', h
|
fp16/kokoro-v0_19-half.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:70cbf37f84610967f2ca72dadb95456fdd8b6c72cdd6dc7372c50f525889ff0c
|
| 3 |
+
size 163731194
|