MCPcopy Create free account
hub / github.com/OPPO-Mente-Lab/X2I / forward

Method forward

minicpm/processing_minicpmo.py:471–477  ·  view source on GitHub ↗

audio: Tensor([num_channels, num_samples])

(self, audio: torch.Tensor)

Source from the content-addressed store, hash-verified

469 return super().__call__(audio)
470
471 def forward(self, audio: torch.Tensor) -> torch.Tensor:
472 """
473 audio: Tensor([num_channels, num_samples])
474 """
475 mel: torch.Tensor = self.mel_spec(audio)
476 features = torch.log(torch.clip(mel, min=1e-5))
477 return features
478
479
480class ChatTTSProcessor:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected