Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
music-demixing-challenge-starter-kit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
yoyololicon
music-demixing-challenge-starter-kit
Commits
925f0d09
Commit
925f0d09
authored
3 years ago
by
chinyun_yu_joey
Browse files
Options
Downloads
Patches
Plain Diff
add model in predict.py
parent
0cf96435
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
predict.py
+4
-1
4 additions, 1 deletion
predict.py
test_xumx_2.py
+1
-1
1 addition, 1 deletion
test_xumx_2.py
with
5 additions
and
2 deletions
predict.py
+
4
−
1
View file @
925f0d09
from
test
import
CopyPredictor
,
ScaledMixturePredictor
from
test_umx
import
UMXPredictor
from
test_xumx
import
XUMXPredictor
from
test_xumx_2
import
XUMXPredictor
as
MWFPredictor
# Predictor which does nothing
copy_predictor
=
CopyPredictor
()
...
...
@@ -14,9 +15,11 @@ umx_predictor = UMXPredictor()
# X-UMX needs `models` folder to be present in your submission, check test_xumx.py to learn more
xumx_predictor
=
XUMXPredictor
()
mwf_predictor
=
MWFPredictor
()
"""
PARTICIPANT_TODO: The implementation you want to submit as your submission
"""
submission
=
scaledmixture
_predictor
submission
=
mwf
_predictor
submission
.
run
()
print
(
"
Successfully completed music demixing...
"
)
This diff is collapsed.
Click to expand it.
test_xumx_2.py
+
1
−
1
View file @
925f0d09
...
...
@@ -111,7 +111,7 @@ def separate(
class
XUMXPredictor
(
MusicDemixingPredictor
):
def
prediction_setup
(
self
):
# Load your model here and put it into `evaluation` mode
self
.
separator
=
torch
.
jit
.
load
(
"
test_model.pt
"
)
self
.
separator
=
torch
.
jit
.
load
(
"
models/
test_model.pt
"
)
self
.
separator
.
eval
()
def
prediction
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment