Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
982a5504
"git@developer.sourcefind.cn:orangecat/ollama.git" did not exist on "f397e0e988272ffd14bdfb6c4070bb3ab5328df2"
Unverified
Commit
982a5504
authored
Feb 13, 2018
by
Manoj Plakal
Committed by
GitHub
Feb 13, 2018
Browse files
Fix double paste.
parent
4b411030
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
research/audioset/mel_features.py
research/audioset/mel_features.py
+2
-3
No files found.
research/audioset/mel_features.py
View file @
982a5504
...
@@ -153,9 +153,8 @@ def spectrogram_to_mel_matrix(num_mel_bins=20,
...
@@ -153,9 +153,8 @@ def spectrogram_to_mel_matrix(num_mel_bins=20,
ValueError: if frequency edges are incorrectly ordered.
ValueError: if frequency edges are incorrectly ordered.
"""
"""
nyquist_hertz
=
audio_sample_rate
/
2.
nyquist_hertz
=
audio_sample_rate
/
2.
if
upper_edge_hertz
>
nyquist_hertz
:
if
lower_edge_hertz
<
0.0
:
raise
ValueError
(
"upper_edge_hertz %.1f is greater than Nyquist %.1f"
%
raise
ValueError
(
"lower_edge_hertz %.1f must be >= 0"
%
lower_edge_hertz
)
(
upper_edge_hertz
,
nyquist_hertz
))
if
lower_edge_hertz
>=
upper_edge_hertz
:
if
lower_edge_hertz
>=
upper_edge_hertz
:
raise
ValueError
(
"lower_edge_hertz %.1f >= upper_edge_hertz %.1f"
%
raise
ValueError
(
"lower_edge_hertz %.1f >= upper_edge_hertz %.1f"
%
(
lower_edge_hertz
,
upper_edge_hertz
))
(
lower_edge_hertz
,
upper_edge_hertz
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment