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']
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']