Update README.md
Browse files
README.md
CHANGED
@@ -27,9 +27,9 @@ https://github.com/minixc/vocex
|
|
27 |
from vocex import Vocex
|
28 |
import torchaudio # or any other audio loading library
|
29 |
|
30 |
-
model =
|
31 |
-
model =
|
32 |
-
model =
|
33 |
|
34 |
audio = ... # a numpy or torch array is required with shape [batch_size, length_in_samples] or just [length_in_samples]
|
35 |
sample_rate = ... # we need to specify a sample rate if the audio is not sampled at 22050
|
|
|
27 |
from vocex import Vocex
|
28 |
import torchaudio # or any other audio loading library
|
29 |
|
30 |
+
model = Vocex.from_pretrained('cdminix/vocex') # an fp16 model is loaded by default
|
31 |
+
model = Vocex.from_pretrained('cdminix/vocex', fp16=False) # to load a fp32 model
|
32 |
+
model = Vocex.from_pretrained('some/path/model.ckpt') # to load local checkpoint
|
33 |
|
34 |
audio = ... # a numpy or torch array is required with shape [batch_size, length_in_samples] or just [length_in_samples]
|
35 |
sample_rate = ... # we need to specify a sample rate if the audio is not sampled at 22050
|