Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
whisper-asr-webservice
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Schwertgen
whisper-asr-webservice
Commits
6fd7eeb0
Commit
6fd7eeb0
authored
6 months ago
by
Aidan Crowther
Browse files
Options
Downloads
Patches
Plain Diff
Configure openai_whisper model to correctly laod n_dims with larger models
parent
539f5852
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+4
-0
4 additions, 0 deletions
CHANGELOG.md
app/openai_whisper/core.py
+1
-1
1 addition, 1 deletion
app/openai_whisper/core.py
with
5 additions
and
1 deletion
CHANGELOG.md
+
4
−
0
View file @
6fd7eeb0
...
...
@@ -4,6 +4,10 @@ Changelog
Unreleased
----------
### Added
-
Set mel generation to adjust n_dims automatically to match the loaded model
[1.6.0] (2024-10-06)
--------------------
...
...
This diff is collapsed.
Click to expand it.
app/openai_whisper/core.py
+
1
−
1
View file @
6fd7eeb0
...
...
@@ -48,7 +48,7 @@ def language_detection(audio):
audio
=
whisper
.
pad_or_trim
(
audio
)
# make log-Mel spectrogram and move to the same device as the model
mel
=
whisper
.
log_mel_spectrogram
(
audio
).
to
(
model
.
device
)
mel
=
whisper
.
log_mel_spectrogram
(
audio
,
model
.
dims
.
n_mels
).
to
(
model
.
device
)
# detect the spoken language
with
model_lock
:
...
...
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