f5-tts 0.3.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- f5_tts-0.3.4/.github/ISSUE_TEMPLATE/bug_report.yml +50 -0
- f5_tts-0.3.4/.github/ISSUE_TEMPLATE/config.yml +1 -0
- f5_tts-0.3.4/.github/ISSUE_TEMPLATE/feature_request.yml +62 -0
- f5_tts-0.3.4/.github/ISSUE_TEMPLATE/help_wanted.yml +50 -0
- f5_tts-0.3.4/.github/ISSUE_TEMPLATE/question.yml +26 -0
- f5_tts-0.3.4/.github/workflows/pre-commit.yaml +14 -0
- f5_tts-0.3.4/.github/workflows/publish-docker-image.yaml +60 -0
- f5_tts-0.3.4/.github/workflows/sync-hf.yaml +18 -0
- f5_tts-0.3.4/.gitignore +173 -0
- f5_tts-0.3.4/.gitmodules +3 -0
- f5_tts-0.3.4/.pre-commit-config.yaml +14 -0
- f5_tts-0.3.4/Dockerfile +26 -0
- f5_tts-0.3.4/LICENSE +21 -0
- f5_tts-0.3.4/PKG-INFO +215 -0
- f5_tts-0.3.4/README.md +170 -0
- f5_tts-0.3.4/ckpts/README.md +10 -0
- f5_tts-0.3.4/data/Emilia_ZH_EN_pinyin/vocab.txt +2545 -0
- f5_tts-0.3.4/data/librispeech_pc_test_clean_cross_sentence.lst +1127 -0
- f5_tts-0.3.4/pyproject.toml +62 -0
- f5_tts-0.3.4/ruff.toml +10 -0
- f5_tts-0.3.4/setup.cfg +4 -0
- f5_tts-0.3.4/src/f5_tts/api.py +166 -0
- f5_tts-0.3.4/src/f5_tts/configs/E2TTS_Base_train.yaml +44 -0
- f5_tts-0.3.4/src/f5_tts/configs/E2TTS_Small_train.yaml +44 -0
- f5_tts-0.3.4/src/f5_tts/configs/F5TTS_Base_train.yaml +47 -0
- f5_tts-0.3.4/src/f5_tts/configs/F5TTS_Small_train.yaml +47 -0
- f5_tts-0.3.4/src/f5_tts/eval/README.md +52 -0
- f5_tts-0.3.4/src/f5_tts/eval/ecapa_tdnn.py +330 -0
- f5_tts-0.3.4/src/f5_tts/eval/eval_infer_batch.py +207 -0
- f5_tts-0.3.4/src/f5_tts/eval/eval_infer_batch.sh +13 -0
- f5_tts-0.3.4/src/f5_tts/eval/eval_librispeech_test_clean.py +96 -0
- f5_tts-0.3.4/src/f5_tts/eval/eval_seedtts_testset.py +95 -0
- f5_tts-0.3.4/src/f5_tts/eval/eval_utmos.py +44 -0
- f5_tts-0.3.4/src/f5_tts/eval/utils_eval.py +413 -0
- f5_tts-0.3.4/src/f5_tts/infer/README.md +196 -0
- f5_tts-0.3.4/src/f5_tts/infer/SHARED.md +164 -0
- f5_tts-0.3.4/src/f5_tts/infer/examples/basic/basic.toml +11 -0
- f5_tts-0.3.4/src/f5_tts/infer/examples/basic/basic_ref_en.wav +0 -0
- f5_tts-0.3.4/src/f5_tts/infer/examples/basic/basic_ref_zh.wav +0 -0
- f5_tts-0.3.4/src/f5_tts/infer/examples/multi/country.flac +0 -0
- f5_tts-0.3.4/src/f5_tts/infer/examples/multi/main.flac +0 -0
- f5_tts-0.3.4/src/f5_tts/infer/examples/multi/story.toml +20 -0
- f5_tts-0.3.4/src/f5_tts/infer/examples/multi/story.txt +1 -0
- f5_tts-0.3.4/src/f5_tts/infer/examples/multi/town.flac +0 -0
- f5_tts-0.3.4/src/f5_tts/infer/examples/vocab.txt +2545 -0
- f5_tts-0.3.4/src/f5_tts/infer/infer_cli.py +360 -0
- f5_tts-0.3.4/src/f5_tts/infer/infer_gradio.py +888 -0
- f5_tts-0.3.4/src/f5_tts/infer/speech_edit.py +193 -0
- f5_tts-0.3.4/src/f5_tts/infer/utils_infer.py +547 -0
- f5_tts-0.3.4/src/f5_tts/model/__init__.py +10 -0
- f5_tts-0.3.4/src/f5_tts/model/backbones/README.md +20 -0
- f5_tts-0.3.4/src/f5_tts/model/backbones/dit.py +177 -0
- f5_tts-0.3.4/src/f5_tts/model/backbones/mmdit.py +146 -0
- f5_tts-0.3.4/src/f5_tts/model/backbones/unett.py +219 -0
- f5_tts-0.3.4/src/f5_tts/model/cfm.py +284 -0
- f5_tts-0.3.4/src/f5_tts/model/dataset.py +319 -0
- f5_tts-0.3.4/src/f5_tts/model/modules.py +658 -0
- f5_tts-0.3.4/src/f5_tts/model/trainer.py +366 -0
- f5_tts-0.3.4/src/f5_tts/model/utils.py +191 -0
- f5_tts-0.3.4/src/f5_tts/scripts/count_max_epoch.py +33 -0
- f5_tts-0.3.4/src/f5_tts/scripts/count_params_gflops.py +39 -0
- f5_tts-0.3.4/src/f5_tts/socket_server.py +190 -0
- f5_tts-0.3.4/src/f5_tts/train/README.md +82 -0
- f5_tts-0.3.4/src/f5_tts/train/datasets/prepare_csv_wavs.py +139 -0
- f5_tts-0.3.4/src/f5_tts/train/datasets/prepare_emilia.py +230 -0
- f5_tts-0.3.4/src/f5_tts/train/datasets/prepare_libritts.py +92 -0
- f5_tts-0.3.4/src/f5_tts/train/datasets/prepare_ljspeech.py +65 -0
- f5_tts-0.3.4/src/f5_tts/train/datasets/prepare_wenetspeech4tts.py +125 -0
- f5_tts-0.3.4/src/f5_tts/train/finetune_cli.py +172 -0
- f5_tts-0.3.4/src/f5_tts/train/finetune_gradio.py +1847 -0
- f5_tts-0.3.4/src/f5_tts/train/train.py +75 -0
- f5_tts-0.3.4/src/f5_tts.egg-info/PKG-INFO +215 -0
- f5_tts-0.3.4/src/f5_tts.egg-info/SOURCES.txt +75 -0
- f5_tts-0.3.4/src/f5_tts.egg-info/dependency_links.txt +1 -0
- f5_tts-0.3.4/src/f5_tts.egg-info/entry_points.txt +5 -0
- f5_tts-0.3.4/src/f5_tts.egg-info/requires.txt +36 -0
- f5_tts-0.3.4/src/f5_tts.egg-info/top_level.txt +2 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
name: "Bug Report"
|
|
2
|
+
description: |
|
|
3
|
+
Please provide as much details to help address the issue, including logs and screenshots.
|
|
4
|
+
labels:
|
|
5
|
+
- bug
|
|
6
|
+
body:
|
|
7
|
+
- type: checkboxes
|
|
8
|
+
attributes:
|
|
9
|
+
label: Checks
|
|
10
|
+
description: "To ensure timely help, please confirm the following:"
|
|
11
|
+
options:
|
|
12
|
+
- label: This template is only for bug reports, usage problems go with 'Help Wanted'.
|
|
13
|
+
required: true
|
|
14
|
+
- label: I have thoroughly reviewed the project documentation but couldn't find information to solve my problem.
|
|
15
|
+
required: true
|
|
16
|
+
- label: I have searched for existing issues, including closed ones, and couldn't find a solution.
|
|
17
|
+
required: true
|
|
18
|
+
- label: I confirm that I am using English to submit this report in order to facilitate communication.
|
|
19
|
+
required: true
|
|
20
|
+
- type: textarea
|
|
21
|
+
attributes:
|
|
22
|
+
label: Environment Details
|
|
23
|
+
description: "Provide details such as OS, Python version, and any relevant software or dependencies."
|
|
24
|
+
placeholder: e.g., CentOS Linux 7, RTX 3090, Python 3.10, torch==2.3.0, cuda 11.8
|
|
25
|
+
validations:
|
|
26
|
+
required: true
|
|
27
|
+
- type: textarea
|
|
28
|
+
attributes:
|
|
29
|
+
label: Steps to Reproduce
|
|
30
|
+
description: |
|
|
31
|
+
Include detailed steps, screenshots, and logs. Use the correct markdown syntax for code blocks.
|
|
32
|
+
placeholder: |
|
|
33
|
+
1. Create a new conda environment.
|
|
34
|
+
2. Clone the repository, install as local editable and properly set up.
|
|
35
|
+
3. Run the command: `accelerate launch src/f5_tts/train/train.py`.
|
|
36
|
+
4. Have following error message... (attach logs).
|
|
37
|
+
validations:
|
|
38
|
+
required: true
|
|
39
|
+
- type: textarea
|
|
40
|
+
attributes:
|
|
41
|
+
label: ✔️ Expected Behavior
|
|
42
|
+
placeholder: Describe what you expected to happen.
|
|
43
|
+
validations:
|
|
44
|
+
required: false
|
|
45
|
+
- type: textarea
|
|
46
|
+
attributes:
|
|
47
|
+
label: ❌ Actual Behavior
|
|
48
|
+
placeholder: Describe what actually happened.
|
|
49
|
+
validations:
|
|
50
|
+
required: false
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
blank_issues_enabled: false
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
name: "Feature Request"
|
|
2
|
+
description: |
|
|
3
|
+
Some constructive suggestions and new ideas regarding current repo.
|
|
4
|
+
labels:
|
|
5
|
+
- enhancement
|
|
6
|
+
body:
|
|
7
|
+
- type: checkboxes
|
|
8
|
+
attributes:
|
|
9
|
+
label: Checks
|
|
10
|
+
description: "To help us grasp quickly, please confirm the following:"
|
|
11
|
+
options:
|
|
12
|
+
- label: This template is only for feature request.
|
|
13
|
+
required: true
|
|
14
|
+
- label: I have thoroughly reviewed the project documentation but couldn't find any relevant information that meets my needs.
|
|
15
|
+
required: true
|
|
16
|
+
- label: I have searched for existing issues, including closed ones, and found not discussion yet.
|
|
17
|
+
required: true
|
|
18
|
+
- label: I confirm that I am using English to submit this report in order to facilitate communication.
|
|
19
|
+
required: true
|
|
20
|
+
- type: textarea
|
|
21
|
+
attributes:
|
|
22
|
+
label: 1. Is this request related to a challenge you're experiencing? Tell us your story.
|
|
23
|
+
description: |
|
|
24
|
+
Describe the specific problem or scenario you're facing in detail. For example:
|
|
25
|
+
*"I was trying to use [feature] for [specific task], but encountered [issue]. This was frustrating because...."*
|
|
26
|
+
placeholder: Please describe the situation in as much detail as possible.
|
|
27
|
+
validations:
|
|
28
|
+
required: true
|
|
29
|
+
|
|
30
|
+
- type: textarea
|
|
31
|
+
attributes:
|
|
32
|
+
label: 2. What is your suggested solution?
|
|
33
|
+
description: |
|
|
34
|
+
Provide a clear description of the feature or enhancement you'd like to propose.
|
|
35
|
+
How would this feature solve your issue or improve the project?
|
|
36
|
+
placeholder: Describe your idea or proposed solution here.
|
|
37
|
+
validations:
|
|
38
|
+
required: true
|
|
39
|
+
|
|
40
|
+
- type: textarea
|
|
41
|
+
attributes:
|
|
42
|
+
label: 3. Additional context or comments
|
|
43
|
+
description: |
|
|
44
|
+
Any other relevant information, links, documents, or screenshots that provide clarity.
|
|
45
|
+
Use this section for anything not covered above.
|
|
46
|
+
placeholder: Add any extra details here.
|
|
47
|
+
validations:
|
|
48
|
+
required: false
|
|
49
|
+
|
|
50
|
+
- type: checkboxes
|
|
51
|
+
attributes:
|
|
52
|
+
label: 4. Can you help us with this feature?
|
|
53
|
+
description: |
|
|
54
|
+
Let us know if you're interested in contributing. This is not a commitment but a way to express interest in collaboration.
|
|
55
|
+
options:
|
|
56
|
+
- label: I am interested in contributing to this feature.
|
|
57
|
+
required: false
|
|
58
|
+
|
|
59
|
+
- type: markdown
|
|
60
|
+
attributes:
|
|
61
|
+
value: |
|
|
62
|
+
**Note:** Please submit only one request per issue to keep discussions focused and manageable.
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
name: "Help Wanted"
|
|
2
|
+
description: |
|
|
3
|
+
Please provide as much details to help address the issue, including logs and screenshots.
|
|
4
|
+
labels:
|
|
5
|
+
- help wanted
|
|
6
|
+
body:
|
|
7
|
+
- type: checkboxes
|
|
8
|
+
attributes:
|
|
9
|
+
label: Checks
|
|
10
|
+
description: "To ensure timely help, please confirm the following:"
|
|
11
|
+
options:
|
|
12
|
+
- label: This template is only for usage issues encountered.
|
|
13
|
+
required: true
|
|
14
|
+
- label: I have thoroughly reviewed the project documentation but couldn't find information to solve my problem.
|
|
15
|
+
required: true
|
|
16
|
+
- label: I have searched for existing issues, including closed ones, and couldn't find a solution.
|
|
17
|
+
required: true
|
|
18
|
+
- label: I confirm that I am using English to submit this report in order to facilitate communication.
|
|
19
|
+
required: true
|
|
20
|
+
- type: textarea
|
|
21
|
+
attributes:
|
|
22
|
+
label: Environment Details
|
|
23
|
+
description: "Provide details such as OS, Python version, and any relevant software or dependencies."
|
|
24
|
+
placeholder: e.g., macOS 13.5, Python 3.10, torch==2.3.0, Gradio 4.44.1
|
|
25
|
+
validations:
|
|
26
|
+
required: true
|
|
27
|
+
- type: textarea
|
|
28
|
+
attributes:
|
|
29
|
+
label: Steps to Reproduce
|
|
30
|
+
description: |
|
|
31
|
+
Include detailed steps, screenshots, and logs. Use the correct markdown syntax for code blocks.
|
|
32
|
+
placeholder: |
|
|
33
|
+
1. Create a new conda environment.
|
|
34
|
+
2. Clone the repository and install as pip package.
|
|
35
|
+
3. Run the command: `f5-tts_infer-gradio` with no ref_text provided.
|
|
36
|
+
4. Stuck there with the following message... (attach logs and also error msg e.g. after ctrl-c).
|
|
37
|
+
validations:
|
|
38
|
+
required: true
|
|
39
|
+
- type: textarea
|
|
40
|
+
attributes:
|
|
41
|
+
label: ✔️ Expected Behavior
|
|
42
|
+
placeholder: Describe what you expected to happen, e.g. output a generated audio
|
|
43
|
+
validations:
|
|
44
|
+
required: false
|
|
45
|
+
- type: textarea
|
|
46
|
+
attributes:
|
|
47
|
+
label: ❌ Actual Behavior
|
|
48
|
+
placeholder: Describe what actually happened, failure messages, etc.
|
|
49
|
+
validations:
|
|
50
|
+
required: false
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
name: "Question"
|
|
2
|
+
description: |
|
|
3
|
+
Pure question or inquiry about the project, usage issue goes with "help wanted".
|
|
4
|
+
labels:
|
|
5
|
+
- question
|
|
6
|
+
body:
|
|
7
|
+
- type: checkboxes
|
|
8
|
+
attributes:
|
|
9
|
+
label: Checks
|
|
10
|
+
description: "To help us grasp quickly, please confirm the following:"
|
|
11
|
+
options:
|
|
12
|
+
- label: This template is only for question, not feature requests or bug reports.
|
|
13
|
+
required: true
|
|
14
|
+
- label: I have thoroughly reviewed the project documentation and read the related paper(s).
|
|
15
|
+
required: true
|
|
16
|
+
- label: I have searched for existing issues, including closed ones, no similar questions.
|
|
17
|
+
required: true
|
|
18
|
+
- label: I confirm that I am using English to submit this report in order to facilitate communication.
|
|
19
|
+
required: true
|
|
20
|
+
- type: textarea
|
|
21
|
+
attributes:
|
|
22
|
+
label: Question details
|
|
23
|
+
description: |
|
|
24
|
+
Question details, clearly stated using proper markdown syntax.
|
|
25
|
+
validations:
|
|
26
|
+
required: true
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
name: Create and publish a Docker image
|
|
2
|
+
|
|
3
|
+
# Configures this workflow to run every time a change is pushed to the branch called `release`.
|
|
4
|
+
on:
|
|
5
|
+
push:
|
|
6
|
+
branches: ['main']
|
|
7
|
+
|
|
8
|
+
# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
|
|
9
|
+
env:
|
|
10
|
+
REGISTRY: ghcr.io
|
|
11
|
+
IMAGE_NAME: ${{ github.repository }}
|
|
12
|
+
|
|
13
|
+
# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
|
|
14
|
+
jobs:
|
|
15
|
+
build-and-push-image:
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
|
|
18
|
+
permissions:
|
|
19
|
+
contents: read
|
|
20
|
+
packages: write
|
|
21
|
+
#
|
|
22
|
+
steps:
|
|
23
|
+
- name: Checkout repository
|
|
24
|
+
uses: actions/checkout@v4
|
|
25
|
+
- name: Free Up GitHub Actions Ubuntu Runner Disk Space 🔧
|
|
26
|
+
uses: jlumbroso/free-disk-space@main
|
|
27
|
+
with:
|
|
28
|
+
# This might remove tools that are actually needed, if set to "true" but frees about 6 GB
|
|
29
|
+
tool-cache: false
|
|
30
|
+
|
|
31
|
+
# All of these default to true, but feel free to set to "false" if necessary for your workflow
|
|
32
|
+
android: true
|
|
33
|
+
dotnet: true
|
|
34
|
+
haskell: true
|
|
35
|
+
large-packages: false
|
|
36
|
+
swap-storage: false
|
|
37
|
+
docker-images: false
|
|
38
|
+
# Uses the `docker/login-action` action to log in to the Container registry registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here.
|
|
39
|
+
- name: Log in to the Container registry
|
|
40
|
+
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
|
|
41
|
+
with:
|
|
42
|
+
registry: ${{ env.REGISTRY }}
|
|
43
|
+
username: ${{ github.actor }}
|
|
44
|
+
password: ${{ secrets.GITHUB_TOKEN }}
|
|
45
|
+
# This step uses [docker/metadata-action](https://github.com/docker/metadata-action#about) to extract tags and labels that will be applied to the specified image. The `id` "meta" allows the output of this step to be referenced in a subsequent step. The `images` value provides the base name for the tags and labels.
|
|
46
|
+
- name: Extract metadata (tags, labels) for Docker
|
|
47
|
+
id: meta
|
|
48
|
+
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
|
|
49
|
+
with:
|
|
50
|
+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
|
51
|
+
# This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages.
|
|
52
|
+
# It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository.
|
|
53
|
+
# It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.
|
|
54
|
+
- name: Build and push Docker image
|
|
55
|
+
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
|
|
56
|
+
with:
|
|
57
|
+
context: .
|
|
58
|
+
push: true
|
|
59
|
+
tags: ${{ steps.meta.outputs.tags }}
|
|
60
|
+
labels: ${{ steps.meta.outputs.labels }}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
name: Sync to HF Space
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
trigger_curl:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
|
|
12
|
+
steps:
|
|
13
|
+
- name: Send cURL POST request
|
|
14
|
+
run: |
|
|
15
|
+
curl -X POST https://mrfakename-sync-f5.hf.space/gradio_api/call/refresh \
|
|
16
|
+
-s \
|
|
17
|
+
-H "Content-Type: application/json" \
|
|
18
|
+
-d "{\"data\": [\"${{ secrets.REFRESH_PASSWORD }}\"]}"
|
f5_tts-0.3.4/.gitignore
ADDED
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
# Customed
|
|
2
|
+
.vscode/
|
|
3
|
+
tests/
|
|
4
|
+
runs/
|
|
5
|
+
data/
|
|
6
|
+
ckpts/
|
|
7
|
+
wandb/
|
|
8
|
+
results/
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
# Byte-compiled / optimized / DLL files
|
|
13
|
+
__pycache__/
|
|
14
|
+
*.py[cod]
|
|
15
|
+
*$py.class
|
|
16
|
+
|
|
17
|
+
# C extensions
|
|
18
|
+
*.so
|
|
19
|
+
|
|
20
|
+
# Distribution / packaging
|
|
21
|
+
.Python
|
|
22
|
+
build/
|
|
23
|
+
develop-eggs/
|
|
24
|
+
dist/
|
|
25
|
+
downloads/
|
|
26
|
+
eggs/
|
|
27
|
+
.eggs/
|
|
28
|
+
lib/
|
|
29
|
+
lib64/
|
|
30
|
+
parts/
|
|
31
|
+
sdist/
|
|
32
|
+
var/
|
|
33
|
+
wheels/
|
|
34
|
+
share/python-wheels/
|
|
35
|
+
*.egg-info/
|
|
36
|
+
.installed.cfg
|
|
37
|
+
*.egg
|
|
38
|
+
MANIFEST
|
|
39
|
+
|
|
40
|
+
# PyInstaller
|
|
41
|
+
# Usually these files are written by a python script from a template
|
|
42
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
43
|
+
*.manifest
|
|
44
|
+
*.spec
|
|
45
|
+
|
|
46
|
+
# Installer logs
|
|
47
|
+
pip-log.txt
|
|
48
|
+
pip-delete-this-directory.txt
|
|
49
|
+
|
|
50
|
+
# Unit test / coverage reports
|
|
51
|
+
htmlcov/
|
|
52
|
+
.tox/
|
|
53
|
+
.nox/
|
|
54
|
+
.coverage
|
|
55
|
+
.coverage.*
|
|
56
|
+
.cache
|
|
57
|
+
nosetests.xml
|
|
58
|
+
coverage.xml
|
|
59
|
+
*.cover
|
|
60
|
+
*.py,cover
|
|
61
|
+
.hypothesis/
|
|
62
|
+
.pytest_cache/
|
|
63
|
+
cover/
|
|
64
|
+
|
|
65
|
+
# Translations
|
|
66
|
+
*.mo
|
|
67
|
+
*.pot
|
|
68
|
+
|
|
69
|
+
# Django stuff:
|
|
70
|
+
*.log
|
|
71
|
+
local_settings.py
|
|
72
|
+
db.sqlite3
|
|
73
|
+
db.sqlite3-journal
|
|
74
|
+
|
|
75
|
+
# Flask stuff:
|
|
76
|
+
instance/
|
|
77
|
+
.webassets-cache
|
|
78
|
+
|
|
79
|
+
# Scrapy stuff:
|
|
80
|
+
.scrapy
|
|
81
|
+
|
|
82
|
+
# Sphinx documentation
|
|
83
|
+
docs/_build/
|
|
84
|
+
|
|
85
|
+
# PyBuilder
|
|
86
|
+
.pybuilder/
|
|
87
|
+
target/
|
|
88
|
+
|
|
89
|
+
# Jupyter Notebook
|
|
90
|
+
.ipynb_checkpoints
|
|
91
|
+
|
|
92
|
+
# IPython
|
|
93
|
+
profile_default/
|
|
94
|
+
ipython_config.py
|
|
95
|
+
|
|
96
|
+
# pyenv
|
|
97
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
98
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
99
|
+
# .python-version
|
|
100
|
+
|
|
101
|
+
# pipenv
|
|
102
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
103
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
104
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
105
|
+
# install all needed dependencies.
|
|
106
|
+
#Pipfile.lock
|
|
107
|
+
|
|
108
|
+
# poetry
|
|
109
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
110
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
111
|
+
# commonly ignored for libraries.
|
|
112
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
113
|
+
#poetry.lock
|
|
114
|
+
|
|
115
|
+
# pdm
|
|
116
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
117
|
+
#pdm.lock
|
|
118
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
119
|
+
# in version control.
|
|
120
|
+
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
|
|
121
|
+
.pdm.toml
|
|
122
|
+
.pdm-python
|
|
123
|
+
.pdm-build/
|
|
124
|
+
|
|
125
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
126
|
+
__pypackages__/
|
|
127
|
+
|
|
128
|
+
# Celery stuff
|
|
129
|
+
celerybeat-schedule
|
|
130
|
+
celerybeat.pid
|
|
131
|
+
|
|
132
|
+
# SageMath parsed files
|
|
133
|
+
*.sage.py
|
|
134
|
+
|
|
135
|
+
# Environments
|
|
136
|
+
.env
|
|
137
|
+
.venv
|
|
138
|
+
env/
|
|
139
|
+
venv/
|
|
140
|
+
ENV/
|
|
141
|
+
env.bak/
|
|
142
|
+
venv.bak/
|
|
143
|
+
|
|
144
|
+
# Spyder project settings
|
|
145
|
+
.spyderproject
|
|
146
|
+
.spyproject
|
|
147
|
+
|
|
148
|
+
# Rope project settings
|
|
149
|
+
.ropeproject
|
|
150
|
+
|
|
151
|
+
# mkdocs documentation
|
|
152
|
+
/site
|
|
153
|
+
|
|
154
|
+
# mypy
|
|
155
|
+
.mypy_cache/
|
|
156
|
+
.dmypy.json
|
|
157
|
+
dmypy.json
|
|
158
|
+
|
|
159
|
+
# Pyre type checker
|
|
160
|
+
.pyre/
|
|
161
|
+
|
|
162
|
+
# pytype static type analyzer
|
|
163
|
+
.pytype/
|
|
164
|
+
|
|
165
|
+
# Cython debug symbols
|
|
166
|
+
cython_debug/
|
|
167
|
+
|
|
168
|
+
# PyCharm
|
|
169
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
170
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
171
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
172
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
173
|
+
#.idea/
|
f5_tts-0.3.4/.gitmodules
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
repos:
|
|
2
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
3
|
+
# Ruff version.
|
|
4
|
+
rev: v0.7.0
|
|
5
|
+
hooks:
|
|
6
|
+
# Run the linter.
|
|
7
|
+
- id: ruff
|
|
8
|
+
args: [--fix]
|
|
9
|
+
# Run the formatter.
|
|
10
|
+
- id: ruff-format
|
|
11
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
12
|
+
rev: v2.3.0
|
|
13
|
+
hooks:
|
|
14
|
+
- id: check-yaml
|
f5_tts-0.3.4/Dockerfile
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
FROM pytorch/pytorch:2.4.0-cuda12.4-cudnn9-devel
|
|
2
|
+
|
|
3
|
+
USER root
|
|
4
|
+
|
|
5
|
+
ARG DEBIAN_FRONTEND=noninteractive
|
|
6
|
+
|
|
7
|
+
LABEL github_repo="https://github.com/SWivid/F5-TTS"
|
|
8
|
+
|
|
9
|
+
RUN set -x \
|
|
10
|
+
&& apt-get update \
|
|
11
|
+
&& apt-get -y install wget curl man git less openssl libssl-dev unzip unar build-essential aria2 tmux vim \
|
|
12
|
+
&& apt-get install -y openssh-server sox libsox-fmt-all libsox-fmt-mp3 libsndfile1-dev ffmpeg \
|
|
13
|
+
&& apt-get install -y librdmacm1 libibumad3 librdmacm-dev libibverbs1 libibverbs-dev ibverbs-utils ibverbs-providers \
|
|
14
|
+
&& rm -rf /var/lib/apt/lists/* \
|
|
15
|
+
&& apt-get clean
|
|
16
|
+
|
|
17
|
+
WORKDIR /workspace
|
|
18
|
+
|
|
19
|
+
RUN git clone https://github.com/SWivid/F5-TTS.git \
|
|
20
|
+
&& cd F5-TTS \
|
|
21
|
+
&& git submodule update --init --recursive \
|
|
22
|
+
&& pip install -e . --no-cache-dir
|
|
23
|
+
|
|
24
|
+
ENV SHELL=/bin/bash
|
|
25
|
+
|
|
26
|
+
WORKDIR /workspace/F5-TTS
|
f5_tts-0.3.4/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Yushen CHEN
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|