Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -90,8 +90,8 @@ import soundfile as sf
|
|
| 90 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
| 91 |
|
| 92 |
# Load the model
|
| 93 |
-
model = ParlerTTSForConditionalGeneration.from_pretrained("
|
| 94 |
-
prompt_tokenizer = AutoTokenizer.from_pretrained("
|
| 95 |
description_tokenizer = AutoTokenizer.from_pretrained(model.config.text_encoder._name_or_path)
|
| 96 |
|
| 97 |
prompt = "Hey, how are you doing today?"
|
|
@@ -127,7 +127,7 @@ from parlervoice_infer.config import GenerationConfig
|
|
| 127 |
|
| 128 |
# Initialize the engine
|
| 129 |
infer = ParlerVoiceInference(
|
| 130 |
-
checkpoint_path="
|
| 131 |
base_model_path="parler-tts/parler-tts-mini-v1.1",
|
| 132 |
)
|
| 133 |
|
|
@@ -164,7 +164,7 @@ audio, path = infer.generate_audio(
|
|
| 164 |
|
| 165 |
```bash
|
| 166 |
python -m parlervoice_infer \
|
| 167 |
-
--checkpoint "
|
| 168 |
--prompt "Experience the next generation of voice synthesis!" \
|
| 169 |
--speaker Connor \
|
| 170 |
--preset dramatic \
|
|
@@ -301,7 +301,7 @@ If you use this work, please consider citing:
|
|
| 301 |
|
| 302 |
- **π¦ GitHub Repository**: [VoicingAI/ParlerVoice](https://github.com/VoicingAI/ParlerVoice)
|
| 303 |
- **π Technical Report & Samples**: [Notion Documentation](https://quilt-growth-39a.notion.site/ParlerVoice-28a776bb53f280949beef800875eb0f7?source=copy_link)
|
| 304 |
-
- **π€ Hugging Face Model**: [
|
| 305 |
- **π― Base Model**: [parler-tts/parler-tts-mini-v1.1](https://huggingface.co/parler-tts/parler-tts-mini-v1.1)
|
| 306 |
|
| 307 |
---
|
|
|
|
| 90 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
| 91 |
|
| 92 |
# Load the model
|
| 93 |
+
model = ParlerTTSForConditionalGeneration.from_pretrained("voicing-ai/ParlerVoice").to(device)
|
| 94 |
+
prompt_tokenizer = AutoTokenizer.from_pretrained("voicing-ai/ParlerVoice")
|
| 95 |
description_tokenizer = AutoTokenizer.from_pretrained(model.config.text_encoder._name_or_path)
|
| 96 |
|
| 97 |
prompt = "Hey, how are you doing today?"
|
|
|
|
| 127 |
|
| 128 |
# Initialize the engine
|
| 129 |
infer = ParlerVoiceInference(
|
| 130 |
+
checkpoint_path="voicing-ai/ParlerVoice",
|
| 131 |
base_model_path="parler-tts/parler-tts-mini-v1.1",
|
| 132 |
)
|
| 133 |
|
|
|
|
| 164 |
|
| 165 |
```bash
|
| 166 |
python -m parlervoice_infer \
|
| 167 |
+
--checkpoint "voicing-ai/ParlerVoice" \
|
| 168 |
--prompt "Experience the next generation of voice synthesis!" \
|
| 169 |
--speaker Connor \
|
| 170 |
--preset dramatic \
|
|
|
|
| 301 |
|
| 302 |
- **π¦ GitHub Repository**: [VoicingAI/ParlerVoice](https://github.com/VoicingAI/ParlerVoice)
|
| 303 |
- **π Technical Report & Samples**: [Notion Documentation](https://quilt-growth-39a.notion.site/ParlerVoice-28a776bb53f280949beef800875eb0f7?source=copy_link)
|
| 304 |
+
- **π€ Hugging Face Model**: [voicing-ai/ParlerVoice](https://huggingface.co/voicing-ai/ParlerVoice)
|
| 305 |
- **π― Base Model**: [parler-tts/parler-tts-mini-v1.1](https://huggingface.co/parler-tts/parler-tts-mini-v1.1)
|
| 306 |
|
| 307 |
---
|