Code Monkey home page Code Monkey logo

Comments (4)

Artrajz avatar Artrajz commented on August 23, 2024

双击Windows一键包中的Start.bat文件启动软件,启动后等待软件加载完毕大概需要25-30秒时间。 能否缩短这个时间呢?

启动慢是因为把多音词典加载和语种识别库的加载放到初始化的过程中了,这样做的目的是减少第一次推理所需要的时间。同时还有bert模型和其他模型的加载也会增加耗时。如果不减少bert模型,目前是没什么好的办法缩短初始化时间的。

Windows一键包在朗读了英文和日文后会在data\bert\chinese-roberta-wwm-ext-large等文件夹下自动下载 1.3GB大小的pytorch_model.bin,有好几个,这样导致整个包实际超过12GB了,能否减小整个包的文件大小呢?

chinese-roberta-wwm-ext-large是朗读中文所需要的bert模型。如果要朗读英文日文的话,则需要下载对应的bert模型,这些在程序启动时会自动下载。如果只需要中文,就可以只用中文的bert模型,空间占用也能得到减小,除此之外没办法再减小整个项目的大小了

from vits-simple-api.

Artrajz avatar Artrajz commented on August 23, 2024

启动慢是因为把多音词典加载和语种识别库的加载放到初始化的过程中了,这样做的目的是减少第一次推理所需要的时间。

如果只用中文的话,或许可以把语种识别库的加载省去

from vits-simple-api.

XDesktopSoft avatar XDesktopSoft commented on August 23, 2024

双击Windows一键包中的Start.bat文件启动软件,启动后等待软件加载完毕大概需要25-30秒时间。 能否缩短这个时间呢?

启动慢是因为把多音词典加载和语种识别库的加载放到初始化的过程中了,这样做的目的是减少第一次推理所需要的时间。同时还有bert模型和其他模型的加载也会增加耗时。如果不减少bert模型,目前是没什么好的办法缩短初始化时间的。

Windows一键包在朗读了英文和日文后会在data\bert\chinese-roberta-wwm-ext-large等文件夹下自动下载 1.3GB大小的pytorch_model.bin,有好几个,这样导致整个包实际超过12GB了,能否减小整个包的文件大小呢?

chinese-roberta-wwm-ext-large是朗读中文所需要的bert模型。如果要朗读英文日文的话,则需要下载对应的bert模型,这些在程序启动时会自动下载。如果只需要中文,就可以只用中文的bert模型,空间占用也能得到减小,除此之外没办法再减小整个项目的大小了

感谢回复! 如果只使用GPT-SoVITS的话,是否可以选择去掉加载Bert的模型来加快启动速度呢?

from vits-simple-api.

Artrajz avatar Artrajz commented on August 23, 2024

感谢回复! 如果只使用GPT-SoVITS的话,是否可以选择去掉加载Bert的模型来加快启动速度呢?

GPT-SoVITS也是需要用到chinese-roberta-wwm-ext-large的,也无法去掉。GPT-SoVITS同时也需要加载chinese_hubert_base,这两个都是无法去掉的。

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.