From 9fcb3cc06b4e324f0913d2f61b89becc2baeef1b Mon Sep 17 00:00:00 2001
From: hnluo <haoneng.lhn@alibaba-inc.com>
Date: 星期一, 11 九月 2023 17:40:03 +0800
Subject: [PATCH] Merge pull request #932 from alibaba-damo-academy/dev_lhn

---
 egs/aishell/transformer/utils/prepare_checkpoint.py |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/egs/aishell/transformer/utils/prepare_checkpoint.py b/egs/aishell/transformer/utils/prepare_checkpoint.py
index 1c732e4..116fa07 100644
--- a/egs/aishell/transformer/utils/prepare_checkpoint.py
+++ b/egs/aishell/transformer/utils/prepare_checkpoint.py
@@ -1,8 +1,6 @@
 import os
 import shutil
 
-from modelscope.pipelines import pipeline
-from modelscope.utils.constant import Tasks
 from modelscope.hub.snapshot_download import snapshot_download
 
 
@@ -18,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"))

--
Gitblit v1.9.1