haoneng.lhn
2023-08-07 6849c028be5ae4df417392300242ab7d544d2616
fix modelscope inference bug
1个文件已修改
1 ■■■■ 已修改文件
egs/aishell/transformer/utils/prepare_checkpoint.py 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
egs/aishell/transformer/utils/prepare_checkpoint.py
@@ -16,3 +16,4 @@
    except BaseException:
        raise BaseException(f"Please download pretrain model from ModelScope firstly.")
    shutil.copy(os.path.join(checkpoint_dir, checkpoint_name), os.path.join(pretrained_model_path, "model.pb"))
    shutil.copy(os.path.join(checkpoint_dir, "config.yaml"), os.path.join(pretrained_model_path, "config.yaml"))