瀏覽代碼

Change model to large

Lengyue 2 年之前
父節點
當前提交
4705f61e71
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)
 @lru_cache(maxsize=1)
 def get_hubert_model():
 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.to(torch.device("cuda" if torch.cuda.is_available() else "cpu"))
     model = model.half()
     model = model.half()
     model.eval()
     model.eval()