

Add some logging around warmup
@72cf84f306bf59cd0ac5658f6c1526fedb34cec9
--- whisper_online_server.py
+++ whisper_online_server.py
... | ... | @@ -75,11 +75,13 @@ |
75 | 75 |
demo_audio_path = "cs-maji-2.16k.wav" |
76 | 76 |
if os.path.exists(demo_audio_path): |
77 | 77 |
# load the audio into the LRU cache before we start the timer |
78 |
+ logging.debug(f"Warming up on {demo_audio_path}") |
|
78 | 79 |
a = load_audio_chunk(demo_audio_path,0,1) |
79 | 80 |
|
80 | 81 |
# TODO: it should be tested whether it's meaningful |
81 | 82 |
# warm up the ASR, because the very first transcribe takes much more time than the other |
82 | 83 |
asr.transcribe(a) |
84 |
+ logging.debug("Whisper is warmed up") |
|
83 | 85 |
else: |
84 | 86 |
logging.debug("Whisper is not warmed up") |
85 | 87 |
|
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?