Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
fairseq-wav2vec_pytorch
Commits
bc892135
You need to sign in or sign up before continuing.
Commit
bc892135
authored
Nov 25, 2024
by
wangwei990215
Browse files
Update README.md
parent
7f2c9096
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
README.md
README.md
+5
-0
No files found.
README.md
View file @
bc892135
...
@@ -118,6 +118,11 @@ python fairseq/train.py manifest/path --save-dir model-save/ --num-workers 6 --f
...
@@ -118,6 +118,11 @@ python fairseq/train.py manifest/path --save-dir model-save/ --num-workers 6 --f
## 推理
## 推理
### 对语音文件进行特征提取
### 对语音文件进行特征提取
首先安装h5py用于读取模型文件
```
pip install h5py
```
```
```
PYTHONPATH=/path/to/fairseq python examples/wav2vec/wav2vec_featurize.py --input path/to/task/waves --ext flac --output /path/to/output \
PYTHONPATH=/path/to/fairseq python examples/wav2vec/wav2vec_featurize.py --input path/to/task/waves --ext flac --output /path/to/output \
--model /model/path/checkpoint_best.pt --split dir1 dir2
--model /model/path/checkpoint_best.pt --split dir1 dir2
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment