Skip to content

Commit 7572c44

Browse files
committed
optimize(rvc): move . into layers
1 parent 1a4cb92 commit 7572c44

File tree

17 files changed

+19
-18
lines changed

17 files changed

+19
-18
lines changed

infer/lib/infer_pack/models_onnx.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import torch
22
from torch import nn
33

4-
from rvc.nsf import NSFGenerator
5-
from rvc.encoders import TextEncoder, PosteriorEncoder
6-
from rvc.residuals import ResidualCouplingBlock
4+
from rvc.layers.nsf import NSFGenerator
5+
from rvc.layers.encoders import TextEncoder, PosteriorEncoder
6+
from rvc.layers.residuals import ResidualCouplingBlock
77

88

99
class SynthesizerTrnMsNSFsidM(nn.Module):

infer/lib/jit/synthesizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import torch
22

3-
from rvc.synthesizers import SynthesizerTrnMsNSFsid
3+
from rvc.layers.synthesizers import SynthesizerTrnMsNSFsid
44

55

66
def get_synthesizer_ckpt(cpt, device=torch.device("cpu")):

infer/modules/train/train.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,15 @@
5656
TextAudioLoaderMultiNSFsid,
5757
)
5858

59-
from rvc.discriminators import MultiPeriodDiscriminator
59+
from rvc.layers.discriminators import MultiPeriodDiscriminator
6060

6161
if hps.version == "v1":
62-
from rvc.synthesizers import SynthesizerTrnMs256NSFsid as RVC_Model_f0
63-
from rvc.synthesizers import (
62+
from rvc.layers.synthesizers import SynthesizerTrnMs256NSFsid as RVC_Model_f0
63+
from rvc.layers.synthesizers import (
6464
SynthesizerTrnMs256NSFsid_nono as RVC_Model_nof0,
6565
)
6666
else:
67-
from rvc.synthesizers import (
67+
from rvc.layers.synthesizers import (
6868
SynthesizerTrnMs768NSFsid as RVC_Model_f0,
6969
SynthesizerTrnMs768NSFsid_nono as RVC_Model_nof0,
7070
)

rvc/layers/__init__.py

Whitespace-only changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)