Giter VIP home page Giter VIP logo

vits-ncnn-convert-tool's Introduction

介绍

这是一个将vits的pytorch权重转换为ncnn支持的格式的脚本,项目基于pnnxvits开发,配合此项目使用 https://github.com/weirdseed/Vits-Android-ncnn

使用说明

Windows

命令行输入:

.\convert_model.exe -c \path\to\config.json -m \path\to\model.pth -fp16

Linux

命令行输入

./convert_model -c /path/to/config.json -m /path/to/model.pth -fp16

python用户

1.创建虚拟环境

conda create -n vits-ncnn python=3.10
conda activate vits-ncnn

2.安装依赖

pip install -r requirements.txt

3.启动脚本

python convert_model.py -c /path/to/config.json -m /path/to/model.pth -fp16

参考

https://github.com/jaywalnut310/vits

https://github.com/pnnx/pnnx

https://github.com/Tencent/ncnn

https://github.com/CjangCjengh/MoeGoe

vits-ncnn-convert-tool's People

Contributors

weirdseed 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.