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
35d50626
Commit
35d50626
authored
3 years ago
by
chinyun_yu_joey
Browse files
Options
Downloads
Patches
Plain Diff
rollback to use lfs
parent
98e7a887
No related branches found
Branches containing commit
Tags
submission-test-unet-2
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
models/unet_test.pth
+3
-0
3 additions, 0 deletions
models/unet_test.pth
test_unet.py
+1
-5
1 addition, 5 deletions
test_unet.py
with
4 additions
and
5 deletions
models/unet_test.pth
0 → 100644
LFS
+
3
−
0
View file @
35d50626
File added
This diff is collapsed.
Click to expand it.
test_unet.py
+
1
−
5
View file @
35d50626
...
...
@@ -102,11 +102,7 @@ def separate(
class
UNetAttnPredictor
(
MusicDemixingPredictor
):
def
prediction_setup
(
self
):
# Load your model here and put it into `evaluation` mode
model_path
,
_
=
download_large_file_from_google_drive
(
"
1GemMK3ETH5jJV-hnFfAyRCGrN2gDe5bo
"
,
save_path
=
"
./models
"
,
save_name
=
"
unet.pth
"
)
self
.
separator
=
torch
.
jit
.
load
(
model_path
)
self
.
separator
=
torch
.
jit
.
load
(
'
./models/unet_test.pth
'
)
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