diff --git a/core.py b/core.py index 7b9de5a5..81743bce 100644 --- a/core.py +++ b/core.py @@ -114,7 +114,6 @@ def run_infer_script( delay_mix: float = 0.5, sid: int = 0, ): - infer_pipeline = import_voice_converter() kwargs = { "audio_input_path": input_path, "audio_output_path": output_path, @@ -153,19 +152,6 @@ def run_infer_script( "clipping": clipping, "compressor": compressor, "delay": delay, - "formant_shifting": formant_shifting, - "formant_qfrency": formant_qfrency, - "formant_timbre": formant_timbre, - "reverb": reverb, - "pitch_shift": pitch_shift, - "limiter": limiter, - "gain": gain, - "distortion": distortion, - "chorus": chorus, - "bitcrush": bitcrush, - "clipping": clipping, - "compressor": compressor, - "delay": delay, "reverb_room_size": reverb_room_size, "reverb_damping": reverb_damping, "reverb_wet_level": reverb_wet_gain, @@ -193,6 +179,7 @@ def run_infer_script( "delay_mix": delay_mix, "sid": sid, } + infer_pipeline = import_voice_converter() infer_pipeline.convert_audio( **kwargs, ) @@ -277,8 +264,6 @@ def run_batch_infer_script( "protect": protect, "hop_length": hop_length, "f0_method": f0_method, - "input_folder": input_folder, - "output_folder": output_folder, "pth_path": pth_path, "index_path": index_path, "split_audio": split_audio, @@ -2353,12 +2338,12 @@ def main(): clean_strength=args.clean_strength, export_format=args.export_format, embedder_model=args.embedder_model, + embedder_model_custom=args.embedder_model_custom, upscale_audio=args.upscale_audio, f0_file=args.f0_file, formant_shifting=args.formant_shifting, formant_qfrency=args.formant_qfrency, formant_timbre=args.formant_timbre, - embedder_model_custom=args.embedder_model_custom, sid=args.sid, post_process=args.post_process, reverb=args.reverb,