Giter Club home page Giter Club logo

Comments (15)

remi-guan avatar remi-guan commented on July 30, 2024

虽然也想尝试一下 vites 和 inference_api.py 这个方案,但是我没有用过 vites,不太熟悉 #导入config文件#导入模型文件 那部分该如何填写。如果这个问题在这个方案里没事的话还望赐教!

from vits_with_chatgpt-gpt3.

Paraworks avatar Paraworks commented on July 30, 2024

这个应该是环境的问题,参照inference_ms.ipynb看看能不能运行普通的tts,不行的话就创建一个虚拟环境试一试。vits和MB-iSTFT-VITS 的环境实际上是相通的,直接试一试vits也许可以成

from vits_with_chatgpt-gpt3.

Paraworks avatar Paraworks commented on July 30, 2024

我用全局也遇到了这个报错

from vits_with_chatgpt-gpt3.

remi-guan avatar remi-guan commented on July 30, 2024

@Paraworks 好!非常感谢!想请问创建虚拟环境您这边用的是什么方案呢?

另外我在想,如果 one_step 是给人直接体验一下用的,会不会发一个 Google Colab 会更方便呀?配合 cloudflared tunnel 这种免费的内网穿透可以直接用的,当 api 给 game 端访问应该是最方便的方案,比本机装一套会轻松很多。毕竟我自己装的时候踩了好多坑,包括:

  • 版本过低导致找不到 pytorch 1.6.0
  • 需要装 C++ Build Tools
  • Win 版 cmake 不会自动添加到 PATH,导致无法正常运行 setuptools
  • Linux 版 numpy 版本过高或过低都装上会报错
  • 需要手动装 flaskpyopenjtalk 等依赖文件里没有列出来的依赖
  • 代理问题
  • 本 issue 提出的问题

我希望可以有一个 Google Colab 的版本可以无忧一键部署这些东西,只要填一个 token、改后端地址就行了。

from vits_with_chatgpt-gpt3.

Paraworks avatar Paraworks commented on July 30, 2024

windows端可以安装一个anaconda。linux安装宝塔面板,现在全局环境上设置好cmake和ffmpeg,之后直接用python项目管理器部署。宝塔面板里的python项目管理器会直接根据requirements安装需要的包,没安装成功的慢慢补就好。我在huggingface放了一个,这个是可以直接部署的。

from vits_with_chatgpt-gpt3.

Paraworks avatar Paraworks commented on July 30, 2024

torch版本其实关系不大,windows端我是torch1.8.1+cu111。linux服务器是1.13.1

from vits_with_chatgpt-gpt3.

remi-guan avatar remi-guan commented on July 30, 2024

OK 谢谢!我这就去试试!

from vits_with_chatgpt-gpt3.

remi-guan avatar remi-guan commented on July 30, 2024

但是 huggingface 的好像只能直接生成音频,应该没办法对接具有 Live2D 的游戏端?

from vits_with_chatgpt-gpt3.

Paraworks avatar Paraworks commented on July 30, 2024

没找到可以白嫖的方法,而且速度连MB-iSTFT-VITS都救不了。colab启动一次还是太麻烦了,那还不如直接用另一个up的方法直接本地推理。

from vits_with_chatgpt-gpt3.

remi-guan avatar remi-guan commented on July 30, 2024

嗯……我先试试解决目前这个问题。看起来好像,inference_ms 也会报同一个错误。

image

然后我是 Linux 上有 anaconda,启动了环境之后并没有解决这个问题。。可能是我之前装的包导致的问题?我正在删了之前的东西然后开一个 venv 试一下。或者等我有空在 Windows 上看看。

然后 vits 的话…… inference_api.py 我不会配置 QAQ

from vits_with_chatgpt-gpt3.

remi-guan avatar remi-guan commented on July 30, 2024

不行诶。。都重新弄了一遍,还是寄了。依旧是这个报错。

可以教我怎么配置一下 inference api 我试试嘛

from vits_with_chatgpt-gpt3.

Paraworks avatar Paraworks commented on July 30, 2024

inference_api要改28行,建立一个文件夹存储各种生成的文件weight_path = os.path.join(current_work_dir, '/project_file/')
在34行修改config文件路径 hps_ms = utils.get_hparams_from_file("path/to/config.json")
43行修改模型文件路径: _ = utils.load_checkpoint("path/to/checkpoint.pth", net_g_ms, None)
这个py文件是对应多说话人的,没法用单人模型

from vits_with_chatgpt-gpt3.

Paraworks avatar Paraworks commented on July 30, 2024

inference.ipynb里面的也可以试一试

from vits_with_chatgpt-gpt3.

remi-guan avatar remi-guan commented on July 30, 2024

啊咧,那我想体验一下游戏端搭配后端怎么办呀QAQ
只能再想想办法解决 one_step 的问题吗

from vits_with_chatgpt-gpt3.

Paraworks avatar Paraworks commented on July 30, 2024

直接下载一个多人模型试试看,先试试看能不能跑通另外一些项目中的jupyter notebook。能跑通基本就可以了

from vits_with_chatgpt-gpt3.

Related Issues (10)

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.