Explorar o código

fix modelscope inference bug

haoneng.lhn %!s(int64=2) %!d(string=hai) anos
pai
achega
6849c028be
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      egs/aishell/transformer/utils/prepare_checkpoint.py

+ 1 - 0
egs/aishell/transformer/utils/prepare_checkpoint.py

@@ -16,3 +16,4 @@ if __name__ == '__main__':
     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"))