Spaces:
No application file
No application file
jameshuntercarter
commited on
Commit
•
a6b3eb4
1
Parent(s):
f052324
Upload predict.py
Browse files- predict.py +1 -1
predict.py
CHANGED
@@ -30,7 +30,7 @@ class Predictor(BasePredictor):
|
|
30 |
from bark_hubert_quantizer.pre_kmeans_hubert import CustomHubert
|
31 |
from bark_hubert_quantizer.customtokenizer import CustomTokenizer
|
32 |
|
33 |
-
large_quant_model =
|
34 |
device = torch.device('cpu') # 'cuda', 'cpu', 'cuda:0', 0, -1, torch.device('cuda')
|
35 |
|
36 |
model = ('quantifier_V1_hubert_base_ls960_23.pth', 'tokenizer_large.pth') if large_quant_model else (
|
|
|
30 |
from bark_hubert_quantizer.pre_kmeans_hubert import CustomHubert
|
31 |
from bark_hubert_quantizer.customtokenizer import CustomTokenizer
|
32 |
|
33 |
+
large_quant_model = True # Use the larger pretrained model
|
34 |
device = torch.device('cpu') # 'cuda', 'cpu', 'cuda:0', 0, -1, torch.device('cuda')
|
35 |
|
36 |
model = ('quantifier_V1_hubert_base_ls960_23.pth', 'tokenizer_large.pth') if large_quant_model else (
|