Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Mddct committed Oct 31, 2023
1 parent a331fd4 commit 082167c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
10 changes: 2 additions & 8 deletions wenet/paraformer/convert_paraformer_to_wenet_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,9 @@
import math
import os
from typing import List, Tuple
from numpy import mat, mean

import yaml

# def convert_paraformer_to_wenet_config(paraformer_config_path,
# paraformer_model_path
# wenet_path):
# pass


def _load_paraformer_cmvn(cmvn_file) -> Tuple[List, List]:
with open(cmvn_file, 'r', encoding='utf-8') as f:
Expand Down Expand Up @@ -114,8 +108,8 @@ def get_args():
parser.add_argument(
'--output_dir',
default='.',
help=
'output file in wenet\'s style: global_cmvn, units.txt, train.yaml ')
help='output file in wenet\'s style: global_cmvn, units.txt, train.yaml'
)
args = parser.parse_args()
return args

Expand Down
2 changes: 0 additions & 2 deletions wenet/paraformer/export_jit.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
"""

import argparse
import json
import numpy as np
import torch
import yaml
from wenet.paraformer.cif import Cif
Expand Down

0 comments on commit 082167c

Please sign in to comment.