Esempio n. 1
0
def music_mix_and_sources(musdb_tracks):
    dataset = datasets.MUSDB18(folder=musdb_tracks.root,
                               download=False,
                               transform=transforms.SumSources(
                                   [['drums', 'bass', 'other']]))
    item = dataset[0]
    return item['mix'], item['sources']
Esempio n. 2
0
def drum_and_vocals(musdb_tracks):
    dataset = datasets.MUSDB18(folder=musdb_tracks.root, download=False)
    item = dataset[0]
    return item['sources']['drums'], item['sources']['vocals']