mirror of
https://github.com/shivammehta25/Matcha-TTS.git
synced 2026-02-05 02:09:21 +08:00
R0402
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
""" from https://github.com/jik876/hifi-gan """
|
""" from https://github.com/jik876/hifi-gan """
|
||||||
|
|
||||||
import torch
|
import torch
|
||||||
import torch.nn as nn
|
from torch import nn
|
||||||
import torch.nn.functional as F
|
import torch.nn.functional as F
|
||||||
from torch.nn import AvgPool1d, Conv1d, Conv2d, ConvTranspose1d
|
from torch.nn import AvgPool1d, Conv1d, Conv2d, ConvTranspose1d
|
||||||
from torch.nn.utils import remove_weight_norm, spectral_norm, weight_norm
|
from torch.nn.utils import remove_weight_norm, spectral_norm, weight_norm
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import math
|
|||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
import torch
|
import torch
|
||||||
import torch.nn as nn
|
from torch import nn
|
||||||
import torch.nn.functional as F
|
import torch.nn.functional as F
|
||||||
from conformer import ConformerBlock
|
from conformer import ConformerBlock
|
||||||
from diffusers.models.activations import get_activation
|
from diffusers.models.activations import get_activation
|
||||||
|
|||||||
@@ -3,10 +3,10 @@
|
|||||||
import math
|
import math
|
||||||
|
|
||||||
import torch
|
import torch
|
||||||
import torch.nn as nn
|
from torch import nn
|
||||||
from einops import rearrange
|
from einops import rearrange
|
||||||
|
|
||||||
import matcha.utils as utils
|
from matcha import utils
|
||||||
from matcha.utils.model import sequence_mask
|
from matcha.utils.model import sequence_mask
|
||||||
|
|
||||||
log = utils.get_pylogger(__name__)
|
log = utils.get_pylogger(__name__)
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
from typing import Any, Dict, Optional
|
from typing import Any, Dict, Optional
|
||||||
|
|
||||||
import torch
|
import torch
|
||||||
import torch.nn as nn
|
from torch import nn
|
||||||
from diffusers.models.attention import (
|
from diffusers.models.attention import (
|
||||||
GEGLU,
|
GEGLU,
|
||||||
GELU,
|
GELU,
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import random
|
|||||||
|
|
||||||
import torch
|
import torch
|
||||||
|
|
||||||
import matcha.utils.monotonic_align as monotonic_align
|
from matcha.utils import monotonic_align
|
||||||
from matcha import utils
|
from matcha import utils
|
||||||
from matcha.models.baselightningmodule import BaseLightningClass
|
from matcha.models.baselightningmodule import BaseLightningClass
|
||||||
from matcha.models.components.flow_matching import CFM
|
from matcha.models.components.flow_matching import CFM
|
||||||
|
|||||||
Reference in New Issue
Block a user