Skip to content

Commit

Permalink
Changed embed_model_path to emb_model_path
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarina Meyer committed Dec 24, 2023
1 parent ddb1d80 commit 8a20e01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,15 +149,15 @@ def __init__(
self.scaling = scaling
self.stats_per_dim_path = stats_per_dim_path or Path()

def _load_pool_embeddings(self, pool_data_dir, pool_vec_path, embed_model_path):
def _load_pool_embeddings(self, pool_data_dir, pool_vec_path, emb_model_path):
logger.debug(pool_data_dir)
if pool_vec_path.exists():
pool_embeddings = SpeakerEmbeddings(
vec_type=self.vec_type, emb_level="spk", device=self.device
)
pool_embeddings.load_vectors(pool_vec_path)
else:
extraction_settings = {"vec_type": self.vec_type, "emb_level": "spk", "embed_model_path": embed_model_path}
extraction_settings = {"vec_type": self.vec_type, "emb_level": "spk", "emb_model_path": emb_model_path}
emb_extractor = SpeakerExtraction(
results_dir=pool_vec_path,
devices=[self.device],
Expand Down
2 changes: 1 addition & 1 deletion configs/anon/pool.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
!new:anonymization.modules.speaker_embeddings.anonymization.pool_anon.PoolAnonymizer
data_dir: !PLACEHOLDER # to be overridden by the main config
embed_model_path: !PLACEHOLDER # to be overridden by the main config
emb_model_path: !PLACEHOLDER # to be overridden by the main config
vectors_dir: !PLACEHOLDER # to be overridden by the main config
pool_data_dir: !ref <data_dir>/libritts_train_other_500
pool_vec_path: !ref <vectors_dir>/style-embed_spk-level/pool_embeddings
Expand Down

0 comments on commit 8a20e01

Please sign in to comment.