Instructions to use jadechoghari/VoiceRestore with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jadechoghari/VoiceRestore with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("jadechoghari/VoiceRestore", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -21,7 +21,7 @@ It is based on this [repo](https://github.com/skirdey/voicerestore) & demo of au
|
|
| 21 |
from transformers import AutoModel
|
| 22 |
# path to the model folder (on colab it's as follows)
|
| 23 |
checkpoint_path = "/content/VoiceRestore"
|
| 24 |
-
model = AutoModel.from_pretrained(checkpoint_path, trust_remote_code=True)
|
| 25 |
model("test_input.wav", "test_output.wav")
|
| 26 |
```
|
| 27 |
|
|
|
|
| 21 |
from transformers import AutoModel
|
| 22 |
# path to the model folder (on colab it's as follows)
|
| 23 |
checkpoint_path = "/content/VoiceRestore"
|
| 24 |
+
model = AutoModel.from_pretrained(checkpoint_path, trust_remote_code=True) # add short=False if audio is > 10 seconds
|
| 25 |
model("test_input.wav", "test_output.wav")
|
| 26 |
```
|
| 27 |
|