mirror of
https://github.com/w-okada/voice-changer.git
synced 2025-01-23 13:35:12 +03:00
add log
This commit is contained in:
parent
2e84fa7407
commit
d2a2826a82
@ -17,6 +17,9 @@ from voice_changer.common.VolumeExtractor import VolumeExtractor
|
||||
from torchaudio.transforms import Resample
|
||||
|
||||
from voice_changer.utils.Timer import Timer
|
||||
import logging
|
||||
|
||||
logger = logging.getLogger("vcclient")
|
||||
|
||||
|
||||
class Pipeline(object):
|
||||
@ -61,6 +64,12 @@ class Pipeline(object):
|
||||
print("GENERATE INFERENCER", self.inferencer)
|
||||
print("GENERATE EMBEDDER", self.embedder)
|
||||
print("GENERATE PITCH EXTRACTOR", self.pitchExtractor)
|
||||
logger.info("VOLUME EXTRACTOR" + str(self.volumeExtractor))
|
||||
logger.info("GENERATE INFERENCER" + str(self.inferencer))
|
||||
logger.info("GENERATE EMBEDDER" + str(self.embedder))
|
||||
logger.info("GENERATE PITCH EXTRACTOR" + str(self.pitchExtractor))
|
||||
|
||||
|
||||
|
||||
self.targetSR = targetSR
|
||||
self.device = device
|
||||
|
@ -17,6 +17,9 @@ from voice_changer.RVC.inferencer.OnnxRVCInferencer import OnnxRVCInferencer
|
||||
from voice_changer.RVC.inferencer.OnnxRVCInferencerNono import OnnxRVCInferencerNono
|
||||
|
||||
from voice_changer.RVC.pitchExtractor.PitchExtractor import PitchExtractor
|
||||
import logging
|
||||
|
||||
logger = logging.getLogger("vcclient")
|
||||
|
||||
|
||||
class Pipeline(object):
|
||||
@ -49,6 +52,9 @@ class Pipeline(object):
|
||||
print("GENERATE INFERENCER", self.inferencer)
|
||||
print("GENERATE EMBEDDER", self.embedder)
|
||||
print("GENERATE PITCH EXTRACTOR", self.pitchExtractor)
|
||||
logger.info("GENERATE INFERENCER" + str(self.inferencer))
|
||||
logger.info("GENERATE EMBEDDER" + str(self.embedder))
|
||||
logger.info("GENERATE PITCH EXTRACTOR" + str(self.pitchExtractor))
|
||||
|
||||
self.index = index
|
||||
self.big_npy = index.reconstruct_n(0, index.ntotal) if index is not None else None
|
||||
|
Loading…
Reference in New Issue
Block a user