mirror of
https://github.com/svc-develop-team/so-vits-svc.git
synced 2025-01-09 04:27:31 +08:00
Update train_diff.py
This commit is contained in:
parent
ff07b3d9e6
commit
12a3ba587e
@ -8,7 +8,7 @@ from diffusion.logger import utils
|
||||
from diffusion.solver import train
|
||||
from diffusion.unit2mel import Unit2Mel
|
||||
from diffusion.vocoder import Vocoder
|
||||
|
||||
from loguru import logger
|
||||
|
||||
def parse_args(args=None, namespace=None):
|
||||
"""Parse command-line arguments."""
|
||||
@ -28,8 +28,8 @@ if __name__ == '__main__':
|
||||
|
||||
# load config
|
||||
args = utils.load_config(cmd.config)
|
||||
print(' > config:', cmd.config)
|
||||
print(' > exp:', args.env.expdir)
|
||||
logger.info(' > config:'+ cmd.config)
|
||||
logger.info(' > exp:'+ args.env.expdir)
|
||||
|
||||
# load vocoder
|
||||
vocoder = Vocoder(args.vocoder.type, args.vocoder.ckpt, device=args.device)
|
||||
@ -47,7 +47,7 @@ if __name__ == '__main__':
|
||||
args.model.k_step_max
|
||||
)
|
||||
|
||||
print(f' > INFO: now model timesteps is {model.timesteps}, and k_step_max is {model.k_step_max}')
|
||||
logger.info(f' > Now model timesteps is {model.timesteps}, and k_step_max is {model.k_step_max}')
|
||||
|
||||
# load parameters
|
||||
optimizer = torch.optim.AdamW(model.parameters())
|
||||
|
Loading…
Reference in New Issue
Block a user