forked from aliutkus/sisec-mus-oracle
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Fabian-Robert Stöter
committed
Feb 6, 2018
1 parent
7232908
commit 793d05d
Showing
4 changed files
with
58 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -126,5 +126,6 @@ def MWF(track): | |
MWF, | ||
estimates_dir='MWF', | ||
subsets='test', | ||
parallel=False, | ||
parallel=True, | ||
cpus=4 | ||
) |