Code Monkey home page Code Monkey logo

Comments (4)

Artrajz avatar Artrajz commented on July 21, 2024

可以看一下后台日志吗

from vits-simple-api.

K1nako0 avatar K1nako0 commented on July 21, 2024

可以看一下后台日志吗

moegoe_1 | Traceback (most recent call last):
moegoe_1 | File "/app/app.py", line 19, in
moegoe_1 | voice_obj, voice_speakers = merge_model(app.config["MODEL_LIST"])
moegoe_1 | File "/app/utils.py", line 183, in merge_model
moegoe_1 | obj = Voice(model=i[0], config=i[1], out_path=out_path)
moegoe_1 | File "/app/voice.py", line 45, in init
moegoe_1 | utils.load_checkpoint(model, self.net_g_ms)
moegoe_1 | File "/app/utils.py", line 70, in load_checkpoint
moegoe_1 | model.load_state_dict(new_state_dict)
moegoe_1 | File "/usr/local/lib/python3.9/site-packages/torch/nn/modules/module.py", line 2041, in load_state_dict
moegoe_1 | raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
moegoe_1 | RuntimeError: Error(s) in loading state_dict for SynthesizerTrn:
moegoe_1 | size mismatch for enc_p.emb.weight: copying a param with shape torch.Size([52, 192]) from checkpoint, the shape in current model is torch.Size([40, 192]).
moegoe_1 | size mismatch for emb_g.weight: copying a param with shape torch.Size([5, 256]) from checkpoint, the shape in current model is torch.Size([7, 256]).

from vits-simple-api.

Artrajz avatar Artrajz commented on July 21, 2024

尝试复现出了这个错误,原因是你的模型和config.json是不匹配的,就会出现这个错误,一定要使用该模型对应的config.json

from vits-simple-api.

K1nako0 avatar K1nako0 commented on July 21, 2024

已解决,config.json确实不对应,谢谢作者的解答

from vits-simple-api.

Related Issues (20)

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.