Skip to content

Commit

Permalink
Fix model name
Browse files Browse the repository at this point in the history
  • Loading branch information
tarepan committed Sep 4, 2023
1 parent 8d4c674 commit ea5a040
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions hubconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

dependencies = ["torch"]

from speechmos.utmos22.strong.model import UTMOS22Strong
import torch # pylint: disable=wrong-import-position

from speechmos.utmos22.strong.model import UTMOS22Strong # pylint: disable=wrong-import-position


URLS = {
Expand All @@ -13,7 +15,7 @@
# Weight transfer code is in my fork (`/demo/utmos_strong_alt`).


def utmos22_strong(progress: bool = True) -> UTMOS:
def utmos22_strong(progress: bool = True) -> UTMOS22Strong:
"""
`UTMOS strong learner` speech naturalness MOS predictor.
Expand All @@ -27,7 +29,3 @@ def utmos22_strong(progress: bool = True) -> UTMOS:
model.eval()

return model


if __name__ == '__main__':
_utmos = torch.hub.load("tarepan/SpeechMOS:main", "utmos22_strong", trust_repo=True)

0 comments on commit ea5a040

Please sign in to comment.