修改代码引用,淡定

This commit is contained in:
root 2024-02-28 17:31:19 +08:00
parent b9636b8669
commit 2e2e97db1b
11 changed files with 22 additions and 11 deletions

View File

@ -1,4 +1,5 @@
# modified from https://github.com/feng-yufei/shared_debugging_code/blob/main/bucketsampler.py # modified from https://github.com/yangdongchao/SoundStorm/blob/master/soundstorm/s1/AR/data/bucket_sampler.py
# reference: https://github.com/lifeiteng/vall-e
import itertools import itertools
import math import math
import random import random

View File

@ -1,4 +1,5 @@
# modified from https://github.com/feng-yufei/shared_debugging_code/blob/main/data_module.py # modified from https://github.com/yangdongchao/SoundStorm/blob/master/soundstorm/s1/AR/data/data_module.py
# reference: https://github.com/lifeiteng/vall-e
from pytorch_lightning import LightningDataModule from pytorch_lightning import LightningDataModule
from AR.data.bucket_sampler import DistributedBucketSampler from AR.data.bucket_sampler import DistributedBucketSampler
from AR.data.dataset import Text2SemanticDataset from AR.data.dataset import Text2SemanticDataset

View File

@ -1,4 +1,5 @@
# modified from https://github.com/feng-yufei/shared_debugging_code/blob/main/t2s_dataset.py # modified from https://github.com/yangdongchao/SoundStorm/blob/master/soundstorm/s1/AR/data/dataset.py
# reference: https://github.com/lifeiteng/vall-e
import pdb import pdb
import sys import sys

View File

@ -1,4 +1,5 @@
# modified from https://github.com/feng-yufei/shared_debugging_code/blob/main/model/t2s_lightning_module.py # modified from https://github.com/yangdongchao/SoundStorm/blob/master/soundstorm/s1/AR/models/t2s_lightning_module.py
# reference: https://github.com/lifeiteng/vall-e
import os, sys import os, sys
now_dir = os.getcwd() now_dir = os.getcwd()

View File

@ -1,4 +1,5 @@
# modified from https://github.com/feng-yufei/shared_debugging_code/blob/main/model/t2s_lightning_module.py # modified from https://github.com/yangdongchao/SoundStorm/blob/master/soundstorm/s1/AR/models/t2s_lightning_module.py
# reference: https://github.com/lifeiteng/vall-e
import os, sys import os, sys
now_dir = os.getcwd() now_dir = os.getcwd()

View File

@ -1,4 +1,5 @@
# modified from https://github.com/feng-yufei/shared_debugging_code/blob/main/model/t2s_model.py # modified from https://github.com/yangdongchao/SoundStorm/blob/master/soundstorm/s1/AR/models/t2s_model.py
# reference: https://github.com/lifeiteng/vall-e
import torch import torch
from tqdm import tqdm from tqdm import tqdm

View File

@ -1,4 +1,5 @@
# modified from https://github.com/feng-yufei/shared_debugging_code/blob/main/model/t2s_model.py # modified from https://github.com/yangdongchao/SoundStorm/blob/master/soundstorm/s1/AR/models/t2s_model.py
# reference: https://github.com/lifeiteng/vall-e
import torch import torch
from tqdm import tqdm from tqdm import tqdm

View File

@ -1,4 +1,5 @@
# modified from https://github.com/feng-yufei/shared_debugging_code/blob/main/model/utils.py\ # modified from https://github.com/yangdongchao/SoundStorm/blob/master/soundstorm/s1/AR/models/utils.py
# reference: https://github.com/lifeiteng/vall-e
import torch import torch
import torch.nn.functional as F import torch.nn.functional as F
from typing import Tuple from typing import Tuple

View File

@ -1,4 +1,5 @@
# modified from https://github.com/feng-yufei/shared_debugging_code/blob/main/model/lr_schedulers.py # modified from https://github.com/yangdongchao/SoundStorm/blob/master/soundstorm/s1/AR/modules/lr_schedulers.py
# reference: https://github.com/lifeiteng/vall-e
import math import math
import torch import torch

View File

@ -1,4 +1,5 @@
# modified from https://github.com/feng-yufei/shared_debugging_code/blob/main/text_processing/phonemizer.py # modified from https://github.com/yangdongchao/SoundStorm/blob/master/soundstorm/s1/AR/text_processing/phonemizer.py
# reference: https://github.com/lifeiteng/vall-e
import itertools import itertools
import re import re
from typing import Dict from typing import Dict

View File

@ -1,4 +1,5 @@
# modified from https://github.com/feng-yufei/shared_debugging_code/blob/main/text_processing/symbols.py # modified from https://github.com/yangdongchao/SoundStorm/blob/master/soundstorm/s1/AR/text_processing/symbols.py
# reference: https://github.com/lifeiteng/vall-e
PAD = "_" PAD = "_"
PUNCTUATION = ';:,.!?¡¿—…"«»“” ' PUNCTUATION = ';:,.!?¡¿—…"«»“” '
LETTERS = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" LETTERS = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"