Content-Length: 216558 | pFad | http://github.com/juanmc2005/diart/commit/9e894cfc33b1cfe27e95a3019e7b6c87e5d7a5e9

37 Rename from_pyannote to from_pretrained in SpeakerEmbedding · juanmc2005/diart@9e894cf · GitHub
Skip to content

Commit

Permalink
Rename from_pyannote to from_pretrained in SpeakerEmbedding
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmc2005 committed Nov 19, 2023
1 parent a71ec53 commit 9e894cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/diart/blocks/embedding.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ def __init__(self, model: EmbeddingModel, device: Optional[torch.device] = None)
self.weights_formatter = TemporalFeatureFormatter()

@staticmethod
def from_pyannote(
def from_pretrained(
model,
use_hf_token: Union[Text, bool, None] = True,
device: Optional[torch.device] = None,
) -> "SpeakerEmbedding":
emb_model = EmbeddingModel.from_pyannote(model, use_hf_token)
emb_model = EmbeddingModel.from_pretrained(model, use_hf_token)
return SpeakerEmbedding(emb_model, device)

def __call__(
Expand Down

0 comments on commit 9e894cf

Please sign in to comment.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/juanmc2005/diart/commit/9e894cfc33b1cfe27e95a3019e7b6c87e5d7a5e9

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy