Просмотр исходного кода

remove from_pretrained (#754)

Co-authored-by: aky15 <ankeyu.aky@11.17.44.249>
aky15 2 лет назад
Родитель
Сommit
97c617854e
1 измененных файлов с 1 добавлено и 4 удалено
  1. 1 4
      funasr/bin/asr_inference_launch.py

+ 1 - 4
funasr/bin/asr_inference_launch.py

@@ -1371,10 +1371,7 @@ def inference_transducer(
         left_context=left_context,
         left_context=left_context,
         right_context=right_context,
         right_context=right_context,
     )
     )
-    speech2text = Speech2TextTransducer.from_pretrained(
-        model_tag=model_tag,
-        **speech2text_kwargs,
-    )
+    speech2text = Speech2TextTransducer(**speech2text_kwargs)
 
 
     def _forward(data_path_and_name_and_type,
     def _forward(data_path_and_name_and_type,
                  raw_inputs: Union[np.ndarray, torch.Tensor] = None,
                  raw_inputs: Union[np.ndarray, torch.Tensor] = None,