File size: 2,269 Bytes
106478e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
{
  "nbformat": 4,
  "nbformat_minor": 0,
  "metadata": {
    "colab": {
      "provenance": [],
      "gpuType": "T4"
    },
    "kernelspec": {
      "name": "python3",
      "display_name": "Python 3"
    },
    "language_info": {
      "name": "python"
    },
    "accelerator": "GPU"
  },
  "cells": [
    {
      "cell_type": "markdown",
      "source": [
        "# ติดตั้ง"
      ],
      "metadata": {
        "id": "fXnq08ZVNMAh"
      }
    },
    {
      "cell_type": "code",
      "execution_count": null,
      "metadata": {
        "id": "tTdQJcckmuZ4"
      },
      "outputs": [],
      "source": [
        "!git clone https://github.com/VYNCX/F5-TTS-THAI.git\n",
        "%cd F5-TTS-THAI\n",
        "!pip install -e ."
      ]
    },
    {
      "cell_type": "markdown",
      "source": [
        "# ฝึกอบรม หรือ Finetune"
      ],
      "metadata": {
        "id": "94MRyRcQeJ0I"
      }
    },
    {
      "cell_type": "markdown",
      "source": [
        "ดาวน์โหลด Pretrained โมเดล สำหรับ Finetune โมเดลภาษาไทยเท่านั้น\n",
        "- จำตำแหน่ง Model \"/content/F5-TTS-THAI/pretrained_model/model_475000.pt\"\n",
        "- และนำไปใส่ในช่อง Pretrained Checkpoint ในแท็บ ฝึกอบรม"
      ],
      "metadata": {
        "id": "Gl2IVGTBhuro"
      }
    },
    {
      "cell_type": "code",
      "source": [
        "!mkdir -p /content/F5-TTS-THAI/pretrained_model\n",
        "!wget https://huggingface.co/VIZINTZOR/F5-TTS-THAI/resolve/main/model_475000.pt -O /content/F5-TTS-THAI/pretrained_model/model_475000.pt"
      ],
      "metadata": {
        "id": "o6pxkXL0hnSw"
      },
      "execution_count": null,
      "outputs": []
    },
    {
      "cell_type": "markdown",
      "source": [
        "เปิด Web-UI"
      ],
      "metadata": {
        "id": "vmU0eG-mjmHp"
      }
    },
    {
      "cell_type": "code",
      "source": [
        "%cd /content/F5-TTS-THAI\n",
        "!f5-tts_finetune-gradio --share"
      ],
      "metadata": {
        "id": "lKEt-pLfR413"
      },
      "execution_count": null,
      "outputs": []
    }
  ]
}