Skip to content

Commit

Permalink
Created using Colab
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinWang676 committed Feb 16, 2025
1 parent ad2f801 commit 7ba9a0f
Showing 1 changed file with 66 additions and 0 deletions.
66 changes: 66 additions & 0 deletions GPT_SoVITS_v3.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {
"id": "view-in-github",
"colab_type": "text"
},
"source": [
"<a href=\"https://colab.research.google.com/github/KevinWang676/Bark-Voice-Cloning/blob/main/GPT_SoVITS_v3.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "LENDan0wB16N"
},
"outputs": [],
"source": [
"# @title 一键开启GPT-SoVITS-v3\n",
"\n",
"!pip install -q condacolab\n",
"# Setting up condacolab and installing packages\n",
"import condacolab\n",
"condacolab.install_from_url(\"https://repo.anaconda.com/miniconda/Miniconda3-py39_23.11.0-2-Linux-x86_64.sh\")\n",
"!git clone https://huggingface.co/kevinwang676/GPT-SoVITS-v3.git\n",
"!conda install -y -q -c pytorch -c nvidia cudatoolkit\n",
"%cd GPT-SoVITS-v3\n",
"!conda install -y -q -c conda-forge gcc gxx ffmpeg cmake -c pytorch -c nvidia\n",
"!/usr/local/bin/pip install -r requirements.txt\n",
"!sudo apt install ffmpeg\n",
"!sudo apt install libsox-dev\n",
"!pip install LangSegment\n",
"!pip install numpy==1.23.4\n",
"import nltk\n",
"nltk.download(\"all\")\n",
"!mv tools/damo_asr/speech_fsmn_vad_zh-cn-16k-common-pytorch tools/asr/models/\n",
"!mv tools/damo_asr/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-pytorch tools/asr/models/\n",
"!mv tools/damo_asr/punc_ct-transformer_zh-cn-common-vocab272727-pytorch tools/asr/models/\n",
"!/usr/local/bin/pip install ipykernel\n",
"!sed -i '10s/False/True/' /content/GPT-SoVITS-v3/config.py\n",
"%cd /content/GPT-SoVITS-v3/\n",
"!/usr/local/bin/python webui.py zh_CN"
]
}
],
"metadata": {
"accelerator": "GPU",
"colab": {
"gpuType": "T4",
"provenance": [],
"authorship_tag": "ABX9TyNUFUSb9BjmK/yNR6OqE232",
"include_colab_link": true
},
"kernelspec": {
"display_name": "Python 3",
"name": "python3"
},
"language_info": {
"name": "python"
}
},
"nbformat": 4,
"nbformat_minor": 0
}

0 comments on commit 7ba9a0f

Please sign in to comment.