- https://huggingface.co/litagin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pathlib import Path | |
from typing import Any, Optional | |
import tqdm | |
from torch.utils.data import Dataset | |
# HF pipelineで進捗表示をするために必要なDatasetクラス | |
class StrListDataset(Dataset[str]): | |
def __init__(self, original_list: list[str]) -> None: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import jaconv | |
# お好きな日本語文章正規化をimport, jaconv.normalizeとかでいいかも | |
from text import text_normalize | |
import regex | |
import pyopenjtalk | |
# 「ー」と「っ」を取り除いた文章に対するひらがなの笑い声の正規表現 | |
warai_pattern = ( | |
r"(" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import gradio as gr | |
import torch | |
from infer import get_net_g, infer | |
import utils | |
voice_keys = ["dec", "flow"] | |
speech_style_keys = ["enc_p"] |