MCPcopy Create free account
hub / github.com/modelscope/DiffSynth-Studio / __call__

Method __call__

diffsynth/trainers/unified_dataset.py:231–234  ·  view source on GitHub ↗
(self, data: str)

Source from the content-addressed store, hash-verified

229 def __init__(self, sr=16000):
230 self.sr = sr
231 def __call__(self, data: str):
232 import librosa
233 input_audio, sample_rate = librosa.load(data, sr=self.sr)
234 return input_audio
235
236
237class UnifiedDataset(torch.utils.data.Dataset):

Callers

nothing calls this directly

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected