Skip to content

Commit

Permalink
Revert "Fix Args"
Browse files Browse the repository at this point in the history
This reverts commit e19b46a.
  • Loading branch information
Vidalnt committed Jul 25, 2024
1 parent e19b46a commit 047c699
Showing 1 changed file with 34 additions and 34 deletions.
68 changes: 34 additions & 34 deletions rvc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1302,12 +1302,12 @@ def main():
try:
if args.mode == "infer":
run_infer_script(
int(args.f0_up_key),
int(args.filter_radius),
float(args.index_rate),
float(args.rms_mix_rate),
float(args.protect),
int(args.hop_length),
str(args.f0_up_key),
str(args.filter_radius),
str(args.index_rate),
str(args.rms_mix_rate),
str(args.protect),
str(args.hop_length),
str(args.f0_method),
str(args.input_path),
str(args.output_path),
Expand All @@ -1325,12 +1325,12 @@ def main():
)
elif args.mode == "batch_infer":
run_batch_infer_script(
int(args.f0_up_key),
int(args.filter_radius),
float(args.index_rate),
float(args.rms_mix_rate),
float(args.protect),
int(args.hop_length),
str(args.f0_up_key),
str(args.filter_radius),
str(args.index_rate),
str(args.rms_mix_rate),
str(args.protect),
str(args.hop_length),
str(args.f0_method),
str(args.input_folder),
str(args.output_folder),
Expand All @@ -1350,13 +1350,13 @@ def main():
run_tts_script(
str(args.tts_text),
str(args.tts_voice),
int(args.tts_rate),
int(args.f0_up_key),
int(args.filter_radius),
float(args.index_rate),
float(args.rms_mix_rate),
float(args.protect),
int(args.hop_length),
str(args.tts_rate),
str(args.f0_up_key),
str(args.filter_radius),
str(args.index_rate),
str(args.rms_mix_rate),
str(args.protect),
str(args.hop_length),
str(args.f0_method),
str(args.output_tts_path),
str(args.output_rvc_path),
Expand All @@ -1376,18 +1376,18 @@ def main():
run_preprocess_script(
str(args.model_name),
str(args.dataset_path),
int(args.sampling_rate),
int(args.cpu_cores),
str(args.sampling_rate),
str(args.cpu_cores),
)
elif args.mode == "extract":
run_extract_script(
str(args.model_name),
str(args.rvc_version),
str(args.f0_method),
str(args.pitch_guidance),
int(args.hop_length),
int(args.cpu_cores),
int(args.sampling_rate),
str(args.hop_length),
str(args.cpu_cores),
str(args.sampling_rate),
str(args.embedder_model),
str(args.embedder_model_custom),
)
Expand All @@ -1398,13 +1398,13 @@ def main():
str(args.save_every_epoch),
str(args.save_only_latest),
str(args.save_every_weights),
int(args.total_epoch),
int(args.sampling_rate),
int(args.batch_size),
int(args.gpu),
str(args.total_epoch),
str(args.sampling_rate),
str(args.batch_size),
str(args.gpu),
str(args.pitch_guidance),
str(args.overtraining_detector),
int(args.overtraining_threshold),
str(args.overtraining_threshold),
str(args.pretrained),
str(args.custom_pretrained),
str(args.sync_graph),
Expand All @@ -1421,11 +1421,11 @@ def main():
run_model_extract_script(
str(args.pth_path),
str(args.model_name),
int(args.sampling_rate),
str(args.sampling_rate),
str(args.pitch_guidance),
str(args.rvc_version),
int(args.epoch),
int(args.step),
str(args.epoch),
str(args.step),
)
elif args.mode == "model_information":
run_model_information_script(
Expand All @@ -1436,7 +1436,7 @@ def main():
str(args.model_name),
str(args.pth_path_1),
str(args.pth_path_2),
float(args.ratio),
str(args.ratio),
)
elif args.mode == "tensorboard":
run_tensorboard_script()
Expand All @@ -1458,7 +1458,7 @@ def main():
elif args.mode == "api":
run_api_script(
str(args.host),
int(args.port),
str(args.port),
)
except Exception as error:
print(f"Error: {error}")
Expand Down

0 comments on commit 047c699

Please sign in to comment.