Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pesto
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
pesto
Commits
d69c336a
Commit
d69c336a
authored
1 year ago
by
Alain Riou
Browse files
Options
Downloads
Patches
Plain Diff
fix pyproject.toml
parent
bba19e0d
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
pesto/data.py
+1
-0
1 addition, 0 deletions
pesto/data.py
pesto/loader.py
+1
-1
1 addition, 1 deletion
pesto/loader.py
pyproject.toml
+5
-5
5 additions, 5 deletions
pyproject.toml
with
7 additions
and
6 deletions
pesto/data.py
+
1
−
0
View file @
d69c336a
...
...
@@ -63,6 +63,7 @@ class Preprocessor(nn.Module):
# compute CQT from input waveform, and invert dims for (time_steps, num_harmonics, freq_bins)
# in other words, time becomes the batch dimension, enabling efficient processing for long audios.
complex_cqt
=
torch
.
view_as_complex
(
self
.
hcqt
(
x
,
sr
=
sr
)).
permute
(
0
,
3
,
1
,
2
)
complex_cqt
.
squeeze_
(
0
)
# convert to dB
return
self
.
to_log
(
complex_cqt
)
...
...
This diff is collapsed.
Click to expand it.
pesto/loader.py
+
1
−
1
View file @
d69c336a
...
...
@@ -24,7 +24,7 @@ def load_model(checkpoint: str,
if
os
.
path
.
exists
(
checkpoint
):
# handle user-provided checkpoints
model_path
=
checkpoint
else
:
model_path
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
"
weights
"
,
checkpoint
+
"
.pt
h
"
)
model_path
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
"
weights
"
,
checkpoint
+
"
.
ck
pt
"
)
if
not
os
.
path
.
exists
(
model_path
):
raise
FileNotFoundError
(
f
"
You passed an invalid checkpoint file:
{
checkpoint
}
.
"
)
...
...
This diff is collapsed.
Click to expand it.
pyproject.toml
+
5
−
5
View file @
d69c336a
...
...
@@ -8,7 +8,7 @@ version = "1.0.0"
authors
=
[
{name
=
"Alain Riou"
,
email
=
"alain.riou@sony.com"
}
]
description
=
"Efficient pitch estimation with self-supervised learning"
,
description
=
"Efficient pitch estimation with self-supervised learning"
readme
=
{
file
=
"README.md"
,
content-type
=
"text/markdown"
}
requires-python
=
">
=
3.8
"
classifiers
=
[
...
...
@@ -33,13 +33,13 @@ matplotlib = ["matplotlib"]
test
=
[
"pytest"
]
[project.scripts]
pesto
=
"pesto.main
.py
:pesto"
pesto
=
"pesto.main:pesto"
[project.urls]
source
=
"https://github.com/SonyCSLParis/pesto"
[tool.
setuptools.packages.find
]
where
=
[
"pesto"
]
[tool.
pytest.ini_options
]
testpaths
=
"tests/"
[tool.setuptools.package-data]
weights
=
[
"
*.ckpt"
]
pesto
=
[
"weights/
*.ckpt"
]
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