Skip to content

issues with vosk-recasepunc-en-0.22 #1998

@piska999

Description

@piska999

C:\vosk-recasepunc-en-0.22>python3 example.py vosk-adapted.txt
Traceback (most recent call last):
File "C:\vosk-recasepunc-en-0.22\example.py", line 10, in
predictor = CasePuncPredictor('checkpoint', lang="en")
File "C:\vosk-recasepunc-en-0.22\recasepunc.py", line 282, in init
self.model.load_state_dict(loaded['model_state_dict'])
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\home\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\LocalCache\local-packages\Python313\site-packages\torch\nn\modules\module.py", line 2624, in load_state_dict
raise RuntimeError(
...<3 lines>...
)
RuntimeError: Error(s) in loading state_dict for Model:
Unexpected key(s) in state_dict: "bert.embeddings.position_ids".

win10
Python.3.13

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions