Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
f0_estimation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container 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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Paul Best
f0_estimation
Commits
b9a43533
Commit
b9a43533
authored
Feb 6, 2024
by
Paul Best
Browse files
Options
Downloads
Patches
Plain Diff
pesto ft in run_all
parent
27572273
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
run_all.py
+0
-7
0 additions, 7 deletions
run_all.py
with
0 additions
and
7 deletions
run_all.py
+
0
−
7
View file @
b9a43533
...
...
@@ -93,15 +93,12 @@ for specie in species if args.specie is None else args.specie.split(' '):
out
.
loc
[
mask
,
'
tcrepe_ftsp_f0
'
],
out
.
loc
[
mask
,
'
tcrepe_ftsp_conf
'
]
=
mir_eval
.
melody
.
resample_melody_series
(
time
,
f0
,
confidence
,
out
[
mask
].
time
)
out
.
tcrepe_ftsp_f0
*=
downsample
<<<<<<<
HEAD
=======
if
not
'
tcrepe_ftoth_f0
'
in
out
.
columns
and
tcrepe_ftoth_model
:
# torch crepe finetuned on other species than the target
time
,
f0
,
confidence
=
run_tcrepe
(
tcrepe_ftoth_model
,
sig
,
fs
,
dt
)
mask
=
((
out
.
time
>
time
[
0
])
&
(
out
.
time
<
time
[
-
1
]))
out
.
loc
[
mask
,
'
tcrepe_ftoth_f0
'
],
out
.
loc
[
mask
,
'
tcrepe_ftoth_conf
'
]
=
mir_eval
.
melody
.
resample_melody_series
(
time
,
f0
,
confidence
,
out
[
mask
].
time
)
out
.
tcrepe_ftsp_f0
*=
downsample
>>>>>>>
9
c4e6ee4bbcefd87a8410d7f08001a21cc25b753
if
not
'
crepe_f0
'
in
out
.
columns
:
# CREPE
time
,
f0
,
confidence
,
activation
=
crepe
.
predict
(
sig
,
fs
,
step_size
=
int
(
dt
*
1e3
),
center
=
False
,
verbose
=
0
)
# step_size in ms
out
[
'
crepe_f0
'
],
out
[
'
crepe_conf
'
]
=
mir_eval
.
melody
.
resample_melody_series
(
time
,
f0
,
confidence
,
out
.
time
)
...
...
@@ -122,7 +119,6 @@ for specie in species if args.specie is None else args.specie.split(' '):
out
.
pesto_f0
*=
downsample
except
Exception
as
inst
:
out
[
'
pesto_f0
'
],
out
[
'
pesto_conf
'
]
=
None
,
None
<<<<<<<
HEAD
if
not
'
pesto_ftsp_f0
'
in
out
.
columns
and
os
.
path
.
isfile
(
f
'
pesto_ft/
{
specie
}
.pth
'
):
# pesto finetuned
try
:
...
...
@@ -131,9 +127,6 @@ for specie in species if args.specie is None else args.specie.split(' '):
out
.
pesto_ft_f0
*=
downsample
except
Exception
as
inst
:
out
[
'
pesto_ft_f0
'
],
out
[
'
pesto_ft_conf
'
]
=
None
,
None
=======
# print('pesto failed with '+fn, inst)
>>>>>>>
9
c4e6ee4bbcefd87a8410d7f08001a21cc25b753
out
.
annot
*=
downsample
out
.
time
/=
downsample
...
...
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