Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Socket通信中pipeline执行speaker-verification任务出现choose a window size 400 that is [2, 0]报错 #1488

Open
eugeneYz opened this issue Mar 13, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@eugeneYz
Copy link

eugeneYz commented Mar 13, 2024

🐛 Bug

场景socket通信 ,API:pipelines,Task:'speaker-verification'的,方法:pipeline[wav1,wav2] ,报错:choose a window size 400 that is [2, 0]
Debug不报错,RUN会报错。
方法拿出来单独测试就没问题。

To Reproduce

Steps to reproduce the behavior (always include the command you ran):

  1. Run cmd '....'
  2. See error

Code sample

        self.pipline = pipeline(
            task='speaker-verification',
            model=self.model_path,
        )
        wav_dict = {file_path: None for file_path in wav_files}
        for key, value in wav_dict.items():
            time.sleep(0.1)
            print("说话人确认计算中...")
            print("key:", key)
            print("string_path:", string_path)
            result = self.pipline([string_path, key])
            wav_dict[key] = result
            print("key:", key)
            print("res:", wav_dict[key])
            print("\n",)

Environment

  • OS (e.g., Win10):
  • FunASR Version (e.g., 1.0.14):
  • ModelScope Version (e.g., 1.13.1):
  • PyTorch Version (e.g., 2.1.2):
  • How you installed funasr (pip, source):
  • Python version:3.8
@eugeneYz eugeneYz added the bug Something isn't working label Mar 13, 2024
@eugeneYz
Copy link
Author

不清楚该报错的含义和背后的原理,无从下手Debug,请帮忙,感谢!

@eugeneYz eugeneYz changed the title Socket通信中pipeline执行speaker-verification任务报错 Socket通信中pipeline执行speaker-verification任务出现choose a window size 400 that is [2, 0]报错 Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant