2noise / ChatTTS

A generative speech model for daily dialogue.
https://2noise.com
GNU Affero General Public License v3.0
32.48k stars 3.52k forks source link

ChatTTS 0.2.0 does not compatible with the model in modelscope #779

Closed codingl2k1 closed 1 month ago

codingl2k1 commented 1 month ago

The _load() will check the model files. There is a hash map in the 0.2.0 source code: https://github.com/2noise/ChatTTS/blob/main/ChatTTS/res/sha256_map.json

{
  "sha256_asset_Decoder_pt": "9964e36e840f0e3a748c5f716fe6de6490d2135a5f5155f4a642d51860e2ec38",
  "sha256_asset_DVAE_full_pt": "553eb75763511e23f3e5f86303e2163c5ca775489d637fb635d979c8ae58bbe5",
  "sha256_asset_Embed_safetensors": "2ff0be7134934155741b643b74e32fb6bf3eec41257984459b2ed60cdb4c48b0",
  "sha256_asset_Vocos_pt": "09a670eda1c08b740013679c7a90ebb7f1a97646ea7673069a6838e6b51d6c58",
  "sha256_asset_gpt_config_json": "0aaa1ecd96c49ad4f473459eb1982fa7ad79fa5de08cde2781bf6ad1f9a0c236",
  "sha256_asset_gpt_model_safetensors": "cd0806fd971f52f6a22c923ec64982b305e817bcc41ca83417fcf9141b984a0f",
  "sha256_asset_tokenizer_special_tokens_map_json": "bd0ac9d9bb1657996b5c5fbcaa7d80f8de530d01a283da97f89deae5b1b8d011",
  "sha256_asset_tokenizer_tokenizer_config_json": "43e9d658b554fa5ee8d8e1d763349323bfef1ed7a89c0794220ab8861387d421",
  "sha256_asset_tokenizer_tokenizer_json": "843838a64e121e23e774cc75874c6fe862198d9f7dd43747914633a8fd89c20e"
}

However, I can't find the asset/DVAE_full.pt in modelscope: https://modelscope.cn/models/pzc163/chatTTS/files

image

There exists the file asset/DVAE_full.pt in huggingface: https://huggingface.co/2Noise/ChatTTS/tree/main/asset

image

pengzhendong commented 1 month ago

modelscope 上的模型不是官方放的

fumiama commented 1 month ago

modelscope 上的模型不是官方放的

Yes. You should always follow the official model at HuggingFace.

codingl2k1 commented 1 month ago

modelscope 上的模型不是官方放的

Yes. You should always follow the official model at HuggingFace.

Thanks. Is HuggingFace the only official model?

fumiama commented 1 month ago

Of course.

codingl2k1 commented 1 month ago

Thanks.