mirror of
https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI.git
synced 2024-12-29 19:15:04 +08:00
replace infer_pack
This commit is contained in:
parent
8d432964a8
commit
2e2a72f0e5
@ -5,9 +5,9 @@ import torch
|
||||
from torch import nn
|
||||
from torch.nn import functional as F
|
||||
|
||||
from lib.infer_pack import commons
|
||||
from lib.infer_pack import modules
|
||||
from lib.infer_pack.modules import LayerNorm
|
||||
from infer.lib.infer_pack import commons
|
||||
from infer.lib.infer_pack import modules
|
||||
from infer.lib.infer_pack.modules import LayerNorm
|
||||
|
||||
|
||||
class Encoder(nn.Module):
|
@ -3,15 +3,15 @@ from time import time as ttime
|
||||
import torch
|
||||
from torch import nn
|
||||
from torch.nn import functional as F
|
||||
from lib.infer_pack import modules
|
||||
from lib.infer_pack import attentions
|
||||
from lib.infer_pack import commons
|
||||
from lib.infer_pack.commons import init_weights, get_padding
|
||||
from infer.lib.infer_pack import modules
|
||||
from infer.lib.infer_pack import attentions
|
||||
from infer.lib.infer_pack import commons
|
||||
from infer.lib.infer_pack.commons import init_weights, get_padding
|
||||
from torch.nn import Conv1d, ConvTranspose1d, AvgPool1d, Conv2d
|
||||
from torch.nn.utils import weight_norm, remove_weight_norm, spectral_norm
|
||||
from lib.infer_pack.commons import init_weights
|
||||
from infer.lib.infer_pack.commons import init_weights
|
||||
import numpy as np
|
||||
from lib.infer_pack import commons
|
||||
from infer.lib.infer_pack import commons
|
||||
|
||||
|
||||
class TextEncoder256(nn.Module):
|
@ -3,15 +3,15 @@ from time import time as ttime
|
||||
import torch
|
||||
from torch import nn
|
||||
from torch.nn import functional as F
|
||||
from lib.infer_pack import modules
|
||||
from lib.infer_pack import attentions
|
||||
from lib.infer_pack import commons
|
||||
from lib.infer_pack.commons import init_weights, get_padding
|
||||
from infer.lib.infer_pack import modules
|
||||
from infer.lib.infer_pack import attentions
|
||||
from infer.lib.infer_pack import commons
|
||||
from infer.lib.infer_pack.commons import init_weights, get_padding
|
||||
from torch.nn import Conv1d, ConvTranspose1d, AvgPool1d, Conv2d
|
||||
from torch.nn.utils import weight_norm, remove_weight_norm, spectral_norm
|
||||
from lib.infer_pack.commons import init_weights
|
||||
from infer.lib.infer_pack.commons import init_weights
|
||||
import numpy as np
|
||||
from lib.infer_pack import commons
|
||||
from infer.lib.infer_pack import commons
|
||||
|
||||
|
||||
class TextEncoder256(nn.Module):
|
@ -9,9 +9,9 @@ from torch.nn import functional as F
|
||||
from torch.nn import Conv1d, ConvTranspose1d, AvgPool1d, Conv2d
|
||||
from torch.nn.utils import weight_norm, remove_weight_norm
|
||||
|
||||
from lib.infer_pack import commons
|
||||
from lib.infer_pack.commons import init_weights, get_padding
|
||||
from lib.infer_pack.transforms import piecewise_rational_quadratic_transform
|
||||
from infer.lib.infer_pack import commons
|
||||
from infer.lib.infer_pack.commons import init_weights, get_padding
|
||||
from infer.lib.infer_pack.transforms import piecewise_rational_quadratic_transform
|
||||
|
||||
|
||||
LRELU_SLOPE = 0.1
|
@ -1,4 +1,4 @@
|
||||
from lib.infer_pack.modules.F0Predictor.F0Predictor import F0Predictor
|
||||
from infer.lib.infer_pack.modules.F0Predictor.F0Predictor import F0Predictor
|
||||
import pyworld
|
||||
import numpy as np
|
||||
|
@ -1,4 +1,4 @@
|
||||
from lib.infer_pack.modules.F0Predictor.F0Predictor import F0Predictor
|
||||
from infer.lib.infer_pack.modules.F0Predictor.F0Predictor import F0Predictor
|
||||
import pyworld
|
||||
import numpy as np
|
||||
|
@ -1,4 +1,4 @@
|
||||
from lib.infer_pack.modules.F0Predictor.F0Predictor import F0Predictor
|
||||
from infer.lib.infer_pack.modules.F0Predictor.F0Predictor import F0Predictor
|
||||
import parselmouth
|
||||
import numpy as np
|
||||
|
Loading…
Reference in New Issue
Block a user