Explorar o código

Change model to large

Lengyue %!s(int64=2) %!d(string=hai) anos
pai
achega
4705f61e71
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tools/vqgan/calculate_hubert_features.py

+ 1 - 1
tools/vqgan/calculate_hubert_features.py

@@ -35,7 +35,7 @@ logger.add(sys.stderr, format=logger_format)
 
 @lru_cache(maxsize=1)
 def get_hubert_model():
-    model = HubertModel.from_pretrained("TencentGameMate/chinese-hubert-base")
+    model = HubertModel.from_pretrained("TencentGameMate/chinese-hubert-large")
     model = model.to(torch.device("cuda" if torch.cuda.is_available() else "cpu"))
     model = model.half()
     model.eval()