Skip to content

Commit

Permalink
fix baselines and sync parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian-Robert Stöter committed Feb 6, 2018
1 parent 7232908 commit 793d05d
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 3 deletions.
28 changes: 28 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,31 @@ docs/_build/

# PyBuilder
target/
#### joe made this: http://goel.io/joe

#####=== OSX ===#####
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

Expand Down
3 changes: 1 addition & 2 deletions IRM.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ def IRM(track, alpha=2):
# initiate dsdtools
mus = musdb.DB()

# default parameters
alpha = 2 # exponent for the ratio mask, take power spectrogram
alpha = 2

mus.run(
functools.partial(IRM, alpha=alpha),
Expand Down
27 changes: 27 additions & 0 deletions MIX.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import musdb


def MIX(track):
"""Mixture as Estimate
"""

# perform separtion
estimates = {}
for name, target in track.targets.items():
# set accompaniment source
estimates[name] = track.audio / len(track.targets)

return estimates


# initiate musdb
mus = musdb.DB()


mus.run(
MIX,
estimates_dir='MIX',
subsets='test',
parallel=True,
cpus=4
)
3 changes: 2 additions & 1 deletion MWF.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,5 +126,6 @@ def MWF(track):
MWF,
estimates_dir='MWF',
subsets='test',
parallel=False,
parallel=True,
cpus=4
)

0 comments on commit 793d05d

Please sign in to comment.