mirror of
https://github.com/wassname/TTS.git
synced 2026-10-28 12:41:20 +08:00
Fixed use_cuda issue in compute_embeddings.py
Added use_cuda argument in self.init_encoder method
This commit is contained in:
1 parent
8be21ec387
commit
3b84ef9524
1 file changed
+1
-1
@@ -110,7 +110,7 @@ class EmbeddingManager(BaseIDManager):
|
||||
self.load_embeddings_from_file(embedding_file_path)
|
||||
|
||||
if encoder_model_path and encoder_config_path:
|
||||
self.init_encoder(encoder_model_path, encoder_config_path)
|
||||
self.init_encoder(encoder_model_path, encoder_config_path, use_cuda)
|
||||
|
||||
@property
|
||||
def embedding_dim(self):
|
||||
|
||||
Reference in new issue
Block a user