“SOND说话人日志-中文-alimeeting-16k-离线-pytorch” 出错
notebook 上面也不行啊,提示错误如下:
ModuleNotFoundError Traceback (most recent call last) /opt/conda/lib/python3.7/site-packages/modelscope/utils/registry.py in build_from_cfg(cfg, registry, group_key, default_args) 211 else: --> 212 return obj_cls(**args) 213 except Exception as e:
/opt/conda/lib/python3.7/site-packages/modelscope/pipelines/audio/speaker_diarization_pipeline.py in init(self, model, sv_model, sv_model_revision, **kwargs) 91 out_format=self.cmd['out_format'], ---> 92 param_dict=self.cmd['param_dict'], 93 )
/opt/conda/lib/python3.7/site-packages/funasr/bin/diar_inference_launch.py in inference_launch(mode, **kwargs) 131 elif mode == 'sond_demo': --> 132 from funasr.bin.sond_inference import inference_modelscope 133 param_dict = {
/opt/conda/lib/python3.7/site-packages/funasr/bin/sond_inference.py in 25 from funasr.utils.cli_utils import get_commandline_args ---> 26 from funasr.tasks.diar import DiarTask 27 from funasr.tasks.asr import ASRTask
/opt/conda/lib/python3.7/site-packages/funasr/tasks/diar.py in 25 from funasr.models.e2e_diar_sond import DiarSondModel ---> 26 from funasr.models.e2e_diar_eend_ola import DiarEENDOLAModel 27 from funasr.models.encoder.abs_encoder import AbsEncoder
/opt/conda/lib/python3.7/site-packages/funasr/models/e2e_diar_eend_ola.py in 16 from funasr.modules.eend_ola.encoder_decoder_attractor import EncoderDecoderAttractor ---> 17 from funasr.modules.eend_ola.utils.power import generate_mapping_dict 18 from funasr.torch_utils.device_funcs import force_gatherable
ModuleNotFoundError: No module named 'funasr.modules.eend_ola.utils'
During handling of the above exception, another exception occurred:
ModuleNotFoundError Traceback (most recent call last) /tmp/ipykernel_84/237661807.py in 13 model_revision='v1.0.5', 14 sv_model='damo/speech_xvector_sv-zh-cn-cnceleb-16k-spk3465-pytorch', ---> 15 sv_model_revision='v1.2.2', 16 ) 17
/opt/conda/lib/python3.7/site-packages/modelscope/pipelines/builder.py in pipeline(task, model, preprocessor, config_file, pipeline_name, framework, device, model_revision, **kwargs) 138 cfg.preprocessor = preprocessor 139 --> 140 return build_pipeline(cfg, task_name=task) 141 142
/opt/conda/lib/python3.7/site-packages/modelscope/pipelines/builder.py in build_pipeline(cfg, task_name, default_args) 55 ''' 56 return build_from_cfg( ---> 57 cfg, PIPELINES, group_key=task_name, default_args=default_args) 58 59
/opt/conda/lib/python3.7/site-packages/modelscope/utils/registry.py in build_from_cfg(cfg, registry, group_key, default_args) 213 except Exception as e: 214 # Normal TypeError does not print class name. --> 215 raise type(e)(f'{obj_cls.name}: {e}')
ModuleNotFoundError: SpeakerDiarizationPipeline: No module named 'funasr.modules.eend_ola.utils'
赞0
踩0