Giter VIP home page Giter VIP logo

chattts-webui's Introduction

ChatTTS-WebUI

English | 中文简体

Project Introduction

This is an AI project that depends on the ChatTTS project. The project includes a web user interface that allows users to interact with the model through the interface.

If you find it useful, please give it a star.

Project Structure

my_ai_project/
│
├── ChatTTS               # Cloned directory of the ChatTTS project
│  └── ChatTTS            
│      ├── experimental   
│      ├── infer          
│      ├── model          
│      └── utils          
├── environment           # Virtual environment directory, contains all dependencies
├── models                # Model files directory
│  ├── asset              
│  └── config             
├── outputs               # Output files directory (e.g., logs, results, etc.)
├── webui                 # Web user interface code directory
│  ├── main.py            # Main entry file for the web user interface
│  └── ...                # Other files related to the web user interface
├── install.bat           # One-click installation script for installing and configuring the project
├── run_webui.bat         # Script to start the web user interface
├── update.bat            # Script to update the ChatTTS project
├── update_chatts.py      # Python script to update the ChatTTS project
└── requirements.txt      # Project dependencies file

Installation

Manual Installation

  1. Install Conda: Download and install Miniconda or Anaconda from the Conda official website.

  2. Clone this project:

    git clone https://github.com/yuhaolove/ChatTTS-WebUI.git
  3. Create and activate a virtual environment:

    cd ChatTTS-WebUI
    conda create -n chattts_webui python=3.12.3
    conda activate chattts_webui
  4. Clone the ChatTTS repository:

    cd ChatTTS-WebUI
    git clone https://github.com/2noise/ChatTTS.git
  5. Install ChatTTS dependencies:

    cd ChatTTS
    pip install -r requirements.txt
    cd ..
  6. Install this project's WebUI dependencies:

    pip install -r requirements.txt

One-click Installation Package on Windows

  1. Download and run the installation script: Click here to download the one-click installation package. Download For first-time use, double-click or run install.bat in the command line. The installation will complete and directly start the webui. For subsequent use, just double-click run_webui.bat.

Start the WebUI

On Windows

Double-click or run run_webui.bat in the command line to start the Web user interface:

run_webui.bat

On Other Systems

Not tested yet, you can directly use Conda's Python to start it:

python webui/main.py

Manual Installation of Model Files

If you cannot download the HF model files smoothly, you can download them manually and place them in the corresponding directory.

  1. Download model files: Go to the model download page to download the model files.

  2. Place the files in the corresponding directory:

    ├─models
    │  ├─asset
    │  └─config
    

Notes

  • Make sure you have a stable network connection to download dependencies and clone repositories.

Contact

If you have any questions or need help, please contact [浩哥聊AI]. Alipay QR Code

Support

If you find this project helpful, please consider giving some support. Your support will help me continue to develop and maintain this project, and bring more useful features and improvements.

You can also scan the following QR codes to support:

Alipay WeChat Pay
Alipay QR Code WeChat Pay QR Code

Acknowledgments

The names of all supporters (if willing to be public) will be recorded in the project's acknowledgment list. Thank you for your support!

chattts-webui's People

Contributors

yuhaolove avatar

Stargazers

pingan avatar 高科技黑手 avatar wukailing avatar  avatar zhouping avatar  avatar  avatar 星汉教主 avatar Thinking80s avatar fcic avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar 一叶知秋olka avatar Hongwei Li avatar  avatar  avatar  avatar Frank Lee avatar  avatar  avatar  avatar Yang Zhong avatar Pitohuie avatar Lidor Shimoni avatar Robin avatar linuxht avatar  avatar  avatar  avatar  avatar  avatar Kellyxiaowei avatar  avatar  avatar  avatar  avatar Jun Liu avatar  avatar  avatar Xiaotan avatar Sogrey avatar  avatar  avatar  avatar Song avatar vidy avatar Bowen Chen avatar  avatar  avatar  avatar  avatar JackZeng avatar  avatar  avatar joyong avatar hcaihao avatar  avatar  avatar maindex avatar Ray avatar Tong avatar flyfox666 avatar 瘪三 avatar  avatar  avatar Dray avatar BioAngel avatar Arvin avatar  avatar  avatar  avatar JulianZhu avatar  avatar weblfe avatar  avatar  avatar  avatar  avatar Fred-Lee avatar  avatar rrrRex avatar  avatar dispaly avatar  avatar Ke avatar  avatar  avatar Julia Anderson avatar doywb avatar  avatar  avatar  avatar kongpipi avatar  avatar

Watchers

 avatar

chattts-webui's Issues

install error

install.bat

python update_chattts.py 没有这个文件 实际文件是update.py?

然后最好安装的时候让用户选择是否需要科学上网,不然下载不了东西安装失败。

只有N卡才可以部署么?

我用的是macOS M2 MAX 的芯片,32G 内存, 跑到最后一步就是:

python webui/main.py

Load models from snapshot.
INFO:ChatTTS.core:Load from cache: /Users/yidian/.cache/huggingface/hub/models--2Noise--ChatTTS/snapshots/c0aa9139945a4d7bb1c84f07785db576f2bb1bfa
Traceback (most recent call last):
File "/Users/yidian/ChatTTS-WebUI/webui/main.py", line 39, in
chat.load_models()
File "/Users/yidian/ChatTTS-WebUI/ChatTTS/ChatTTS/core.py", line 55, in load_models
self.load(**{k: os.path.join(download_path, v) for k, v in OmegaConf.load(os.path.join(download_path, 'config', 'path.yaml')).items()})
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/yidian/PycharmProjects/pythonProject3/.venv/lib/python3.12/site-packages/omegaconf/omegaconf.py", line 189, in load
with io.open(os.path.abspath(file
), "r", encoding="utf-8") as f:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/Users/yidian/.cache/huggingface/hub/models--2Noise--ChatTTS/snapshots/c0aa9139945a4d7bb1c84f07785db576f2bb1bfa/config/path.yaml'
(chattts_webui) (.venv) yidian@ai ChatTTS-WebUI %

RuntimeError: Dynamo is not supported on Python 3.12+

Traceback (most recent call last):
File "C:\Users\caoc\AI\ChatTTS-WebUI\webui\main.py", line 39, in
chat.load_models()
File "C:\Users\caoc\AI\ChatTTS-WebUI\ChatTTS\ChatTTS\core.py", line 61, in load_models
self._load(**{k: os.path.join(download_path, v) for k, v in OmegaConf.load(os.path.join(download_path, 'config', 'path.yaml')).items()}, **kwargs)
File "C:\Users\caoc\AI\ChatTTS-WebUI\ChatTTS\ChatTTS\core.py", line 102, in load
gpt.gpt.forward = torch.compile(gpt.gpt.forward, backend='inductor', dynamic=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\caoc\miniconda3\envs\chattts_webui\Lib\site-packages\torch_init
.py", line 1866, in compile
raise RuntimeError("Dynamo is not supported on Python 3.12+")
RuntimeError: Dynamo is not supported on Python 3.12+

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.