MCPcopy
hub / github.com/Audio-AGI/AudioSep / encode_audio

Method encode_audio

models/CLAP/open_clip/model.py:616–619  ·  view source on GitHub ↗
(self, audio, device)

Source from the content-addressed store, hash-verified

614 return mask
615
616 def encode_audio(self, audio, device):
617 return self.audio_branch(
618 audio, mixup_lambda=None, device=device
619 ) # mix lambda needs to add
620
621 # def list_of_dict_of_tensor2dict_of_tensor(self, x, device):
622 # tmp = {}

Callers 3

forwardMethod · 0.95
get_audio_embeddingMethod · 0.95
audio_inferMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected