sigsep / sigsep-mus-db

Python parser and tools for MUSDB18 Music Separation Dataset
https://sigsep.github.io/sigsep-mus-db/
MIT License
159 stars 33 forks source link

got error musdb has no attribute run. #59

Closed jcthink closed 4 years ago

jcthink commented 4 years ago

got error musdb has no attribute run.

aliutkus commented 4 years ago

I believe the run function was removed due to its rigidity.

The adequate way to now run some function over the whole database is simply to iterate over the tracks. For instance:

    # initiate musdb
    mus = musdb.DB(subsets="test")

    result_dir = '.'

    for track in mus:
        print(track.name)
        estimates = my_function(track)
        mus.save_estimates(estimates, track, result_dir)

Dos it solve the issue ?

faroit commented 4 years ago

@jcthink can we close this issue?