CosyVoice icon indicating copy to clipboard operation
CosyVoice copied to clipboard

TransformerLM.__init__() missing 1 required positional argument: 'sampling'

Open codingl2k1 opened this issue 1 year ago • 4 comments

Describe the bug A clear and concise description of what the bug is.

Using the latest cosyvoice code to load the model failed:

TypeError: ('Invalid argument to class cosyvoice.llm.llm.TransformerLM', "TransformerLM.__init__() missing 1 required positional argument: 'sampling'")

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context Add any other context about the problem here.

codingl2k1 avatar Aug 30 '24 08:08 codingl2k1

Re-download Model. Try it. work for me.

# SDK模型下载
from modelscope import snapshot_download
snapshot_download('iic/CosyVoice-300M', local_dir='pretrained_models/CosyVoice-300M')
snapshot_download('iic/CosyVoice-300M-SFT', local_dir='pretrained_models/CosyVoice-300M-SFT')
snapshot_download('iic/CosyVoice-300M-Instruct', local_dir='pretrained_models/CosyVoice-300M-Instruct')
snapshot_download('iic/CosyVoice-ttsfrd', local_dir='pretrained_models/CosyVoice-ttsfrd')

zhangdxchn avatar Aug 30 '24 08:08 zhangdxchn

Re-download Model. Try it. work for me.

# SDK模型下载
from modelscope import snapshot_download
snapshot_download('iic/CosyVoice-300M', local_dir='pretrained_models/CosyVoice-300M')
snapshot_download('iic/CosyVoice-300M-SFT', local_dir='pretrained_models/CosyVoice-300M-SFT')
snapshot_download('iic/CosyVoice-300M-Instruct', local_dir='pretrained_models/CosyVoice-300M-Instruct')
snapshot_download('iic/CosyVoice-ttsfrd', local_dir='pretrained_models/CosyVoice-ttsfrd')

Any updates on the models in huggingface?

codingl2k1 avatar Sep 01 '24 08:09 codingl2k1

The models on huggingface are outdated. image

codingl2k1 avatar Sep 05 '24 08:09 codingl2k1

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Oct 07 '24 02:10 github-actions[bot]