1
0
mirror of https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI.git synced 2026-06-05 01:10:22 +08:00

feat(infer): add model hash identification

and optimize infer-web ui
This commit is contained in:
源文雨
2024-06-02 22:47:52 +09:00
parent 7e48279c6c
commit b9ad0258ae
13 changed files with 327 additions and 105 deletions

View File

@@ -74,7 +74,7 @@ from infer.lib.train.losses import (
kl_loss,
)
from infer.lib.train.mel_processing import mel_spectrogram_torch, spec_to_mel_torch
from infer.lib.train.process_ckpt import savee
from infer.lib.train.process_ckpt import save_small_model
global_step = 0
@@ -602,7 +602,7 @@ def train_and_evaluate(
% (
hps.name,
epoch,
savee(
save_small_model(
ckpt,
hps.sample_rate,
hps.if_f0,
@@ -626,7 +626,7 @@ def train_and_evaluate(
logger.info(
"saving final ckpt:%s"
% (
savee(
save_small_model(
ckpt, hps.sample_rate, hps.if_f0, hps.name, epoch, hps.version, hps
)
)