Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Speech To Speech
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
MachineLearning
huggingface
Speech To Speech
Commits
1d3b5bfc
Commit
1d3b5bfc
authored
6 months ago
by
Andres Marafioti
Browse files
Options
Downloads
Patches
Plain Diff
avoid debug logging for melo
parent
b3ace711
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
VAD/vad_handler.py
+4
-0
4 additions, 0 deletions
VAD/vad_handler.py
baseHandler.py
+6
-1
6 additions, 1 deletion
baseHandler.py
with
10 additions
and
1 deletion
VAD/vad_handler.py
+
4
−
0
View file @
1d3b5bfc
...
@@ -86,3 +86,7 @@ class VADHandler(BaseHandler):
...
@@ -86,3 +86,7 @@ class VADHandler(BaseHandler):
)
)
array
=
enhanced
.
numpy
().
squeeze
()
array
=
enhanced
.
numpy
().
squeeze
()
yield
array
yield
array
@property
def
min_time_to_debug
(
self
):
return
0.00001
This diff is collapsed.
Click to expand it.
baseHandler.py
+
6
−
1
View file @
1d3b5bfc
...
@@ -36,7 +36,8 @@ class BaseHandler:
...
@@ -36,7 +36,8 @@ class BaseHandler:
start_time
=
perf_counter
()
start_time
=
perf_counter
()
for
output
in
self
.
process
(
input
):
for
output
in
self
.
process
(
input
):
self
.
_times
.
append
(
perf_counter
()
-
start_time
)
self
.
_times
.
append
(
perf_counter
()
-
start_time
)
logger
.
debug
(
f
"
{
self
.
__class__
.
__name__
}
:
{
self
.
last_time
:
.
3
f
}
s
"
)
if
self
.
last_time
>
self
.
min_time_to_debug
:
logger
.
debug
(
f
"
{
self
.
__class__
.
__name__
}
:
{
self
.
last_time
:
.
3
f
}
s
"
)
self
.
queue_out
.
put
(
output
)
self
.
queue_out
.
put
(
output
)
start_time
=
perf_counter
()
start_time
=
perf_counter
()
...
@@ -46,6 +47,10 @@ class BaseHandler:
...
@@ -46,6 +47,10 @@ class BaseHandler:
@property
@property
def
last_time
(
self
):
def
last_time
(
self
):
return
self
.
_times
[
-
1
]
return
self
.
_times
[
-
1
]
@property
def
min_time_to_debug
(
self
):
return
0.001
def
cleanup
(
self
):
def
cleanup
(
self
):
pass
pass
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