Coder Social home page Coder Social logo

Comments (5)

luoyily avatar luoyily commented on August 15, 2024

尝试使用新版并配置符号(即moetts.json),可参考readme教程配置

from moetts.

zzhbb2002 avatar zzhbb2002 commented on August 15, 2024

pad = ''
_punctuation = ';:,.!?¡¿—…"«»“” '
_punctuation_zh = ';:,。!?-“”《》、()BP…—~.\·『』・ '
_letters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'
_numbers = '1234567890'
_others = ''
_letters_ipa = "ɑɐɒæɓʙβɔɕçɗɖðʤəɘɚɛɜɝɞɟʄɡɠɢʛɦɧħɥʜɨɪʝɭɬɫɮʟɱɯɰŋɳɲɴøɵɸθœɶʘɹɺɾɻʀʁɽʂʃʈʧʉʊʋⱱʌɣɤʍχʎʏʑʐʒʔʡʕʢǀǁǂǃˈˌːˑʼʴʰʱʲʷˠˤ˞↓↑→↗↘'̩'ᵻ"
symbols = [_pad] + list(_punctuation) + list(_letters) + list(_letters_ipa)
symbols_zh = [_pad] + list(_punctuation_zh) + list(_letters) + list(_numbers)
SPACE_ID = symbols.index(" ")
模型应该是通过symbol zh训练的,但读取模型时提示的字符数量却是symbol的字符数量,这种存在两个symbol的情况该怎么办呢

from moetts.

luoyily avatar luoyily commented on August 15, 2024

将你模型使用的符号写入配置即可,参考 (readme-模型目录格式)https://github.com/luoyily/MoeTTS#%E6%A8%A1%E5%9E%8B%E7%9B%AE%E5%BD%95%E6%A0%BC%E5%BC%8F

from moetts.

zzhbb2002 avatar zzhbb2002 commented on August 15, 2024

写入symbol时,可以正常运行,但无法正常说话。
写入symbol_zh时,提示size mismatch for enc_p.emb.weight: copying a param with shape torch.Size([178, 192]) from checkpoint, the shape in current model is torch.Size([78, 192]).
训练时是使用的中文拼音,即symbol_zh训练。

from moetts.

zzhbb2002 avatar zzhbb2002 commented on August 15, 2024

问题解决了,将text文件替换一下便可正常预测

from moetts.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.