mirror of
https://github.com/storytold/storyteller-ml.git
synced 2026-10-17 00:23:14 +00:00
logging
This commit is contained in:
@@ -207,6 +207,7 @@ def infer(
|
||||
|
||||
LOG.warning(f"Using device: {device}")
|
||||
LOG.warning(f"Model path: {model_path}")
|
||||
LOG.warning(f"f0 method: {f0_method}")
|
||||
|
||||
from so_vits_svc_fork.inference.main import infer
|
||||
|
||||
|
||||
@@ -54,11 +54,13 @@ def infer(
|
||||
device=device,
|
||||
)
|
||||
|
||||
LOG.info("infer() librosa.load()")
|
||||
LOG.info("infer() librosa.load() BEGIN")
|
||||
|
||||
audio, _ = librosa.load(input_path, sr=svc_model.target_sample)
|
||||
|
||||
LOG.info("infer() svc_model.infer_silence()")
|
||||
LOG.info("infer() librosa.load() END")
|
||||
|
||||
LOG.info("infer() svc_model.infer_silence() BEGIN")
|
||||
|
||||
audio = svc_model.infer_silence(
|
||||
audio.astype(np.float32),
|
||||
@@ -74,8 +76,10 @@ def infer(
|
||||
absolute_thresh=absolute_thresh,
|
||||
)
|
||||
|
||||
LOG.info("infer() svc_model.infer_silence() END")
|
||||
|
||||
LOG.info("infer() soundfile.write()")
|
||||
|
||||
|
||||
soundfile.write(output_path, audio, svc_model.target_sample)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user