Git Product home page Git Product logo

gpt_sovits's Introduction

项目描述

原始GPT_SoVITS的效果体验和推理服务较大依赖于基于Gradio的webui界面,为了更方便地推理体验GPT_SoVITS效果,本项目将其推理部分提取分离出来.

模型设置

  • 预训练模型设置 需要两个HF预训练模型,将其放在项目目录GPT_SoVITS_Inference/GPT_SoVITS/Pretrained_Models下 模型1名称:chinese-hubert-base, 模型2名称:chinese-roberta-wwm-ext-large

  • 微调模型权重设置 将自己训练的GPT模型权重放在项目目录GPT_SoVITS_Inference/GPT_SoVITS/Finetune_Weights/GPT_weights下 将自己训练的SoVITS模型权重放在项目目录GPT_SoVITS_Inference/GPT_SoVITS/Finetune_Weights/SoVITS_weights下

安装依赖

推荐 Python>=3.9,<=3.10

conda install pytorch==2.1.1 torchvision==0.16.1 torchaudio==2.1.1 pytorch-cuda=11.8 -c pytorch -c nvidia

git clone https://github.com/X-D-Lab/GPT_SoVITS_Inference.git
cd GPT_SoVITS_Inference
pip install -r requirements.txt

sudo apt update
sudo apt install ffmpeg

如果您是windows使用者,请下载并将 ffmpeg.exeffprobe.exe 放置在本项目的根目录下。

如何使用

详细内容可以参见example.py

import os
import sys

project_root = os.path.abspath('.')
sys.path.append(project_root)


from get_tts_wav import GPT_SoVITS_TTS_inference

text = """but when the entire family,reunite once again his chair his bowl"""

inference = GPT_SoVITS_TTS_inference()

inference.get_tts_wav(text=text)

gpt_sovits's People

Contributors

mlleon avatar

Watchers

 avatar

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.