Add files via upload

This commit is contained in:
RVC-Boss 2023-06-06 20:34:54 +08:00 committed by GitHub
parent b7337d7bf1
commit 05b5af7c8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

4
gui.py
View File

@ -584,10 +584,10 @@ class GUI:
if d["max_output_channels"] > 0
]
input_devices_indices = [
d["index"] for d in devices if d["max_input_channels"] > 0
d["index"] if "index" in d else d["name"] for d in devices if d["max_input_channels"] > 0
]
output_devices_indices = [
d["index"] for d in devices if d["max_output_channels"] > 0
d["index"] if "index" in d else d["name"] for d in devices if d["max_output_channels"] > 0
]
return (
input_devices,

View File

@ -559,7 +559,7 @@ def train_and_evaluate(
hps.if_f0,
hps.name + "_e%s" % epoch,
epoch,
hps.version,
hps.version,hps
),
)
)
@ -575,7 +575,7 @@ def train_and_evaluate(
ckpt = net_g.state_dict()
logger.info(
"saving final ckpt:%s"
% (savee(ckpt, hps.sample_rate, hps.if_f0, hps.name, epoch, hps.version))
% (savee(ckpt, hps.sample_rate, hps.if_f0, hps.name, epoch, hps.version,hps))
)
sleep(1)
os._exit(2333333)