mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
cer tool
This commit is contained in:
parent
8e4fa38ad3
commit
129cfcd9f2
@ -14,7 +14,7 @@ from funasr.utils.types import str2bool
|
|||||||
# torch_version = float(".".join(torch.__version__.split(".")[:2]))
|
# torch_version = float(".".join(torch.__version__.split(".")[:2]))
|
||||||
# assert torch_version > 1.9
|
# assert torch_version > 1.9
|
||||||
|
|
||||||
class ASRModelExportParaformer:
|
class ModelExport:
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
cache_dir: Union[Path, str] = None,
|
cache_dir: Union[Path, str] = None,
|
||||||
@ -240,7 +240,7 @@ if __name__ == '__main__':
|
|||||||
parser.add_argument('--calib_num', type=int, default=200, help='calib max num')
|
parser.add_argument('--calib_num', type=int, default=200, help='calib max num')
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
export_model = ASRModelExportParaformer(
|
export_model = ModelExport(
|
||||||
cache_dir=args.export_dir,
|
cache_dir=args.export_dir,
|
||||||
onnx=args.type == 'onnx',
|
onnx=args.type == 'onnx',
|
||||||
quant=args.quantize,
|
quant=args.quantize,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user