Git Product home page Git Product logo

Comments (8)

blaisewf avatar blaisewf commented on August 11, 2024 1

I'll check.

from rvc_cli.

blaisewf avatar blaisewf commented on August 11, 2024 1

Ready, fixed.

from rvc_cli.

Chilluminati91 avatar Chilluminati91 commented on August 11, 2024 1

Awesome, working now. Thanks!

from rvc_cli.

Chilluminati91 avatar Chilluminati91 commented on August 11, 2024

Okay, I have no idea what I am doing here or why, but I managed to get it to work by replacing parts of the run_batch_infer_script function in "main.py".
Replace lines 112 to 128 with a copy of the single infer command.

From:

command = [
                "python",
                infer_script_path,
                f0up_key,
                filter_radius,
                index_rate,
                rms_mix_rate,
                protect,
                hop_length,
                f0method,
                input_path,
                output_path,
                pth_path,
                index_path,
                split_audio,
                f0autotune,
            ]

To:

command = [
                "python",
                *map(
                    str,
                    [
                        infer_script_path,
                        f0up_key,
                        filter_radius,
                        index_rate,
                        hop_length,
                        f0method,
                        input_path,
                        output_path,
                        pth_path,
                        index_path,
                        split_audio,
                        f0autotune,
                        rms_mix_rate,
                        protect,
                    ],
                ),
            ]

from rvc_cli.

aitronz avatar aitronz commented on August 11, 2024

I think you have like an outdated version because in the latest is working and that code is already added
image
y added

from rvc_cli.

Chilluminati91 avatar Chilluminati91 commented on August 11, 2024

Pulled the latest changes today, code has been changed but it seems like the bug is still present now.

Detected 4 audio files for inference.
Inferring /Users/liam/Music/RVC/love_me_down/ValYoung/Ladada.wav.wav...
No supported Nvidia GPU found
Traceback (most recent call last):
  File "/Users/liam/Downloads/RVC_CLI/rvc/infer/infer.py", line 246, in <module>
    rms_mix_rate = float(sys.argv[12])
ValueError: could not convert string to float: 'True'

from rvc_cli.

blaisewf avatar blaisewf commented on August 11, 2024

The "rms_mix_rate" parameter must be a numerical value ranging from 0.0 to 1.0. If you're unsure of what value to set, you can omit the argument, and the default value will be used.

image

from rvc_cli.

Chilluminati91 avatar Chilluminati91 commented on August 11, 2024

Checked that already, it doesnt matter whether it is ommitted or correctly used, it always ends with the ValueError string to float "true". If i input a non-working value like "2" it outputs the typical help info ofc. Maybe a different parameter from another argument gets passed as sys.argv[12]?!

Edit: Seems to be the case. If I reduce my cmd to the most barebones command like this:

python main.py batch_infer --f0up_key "0" --filter_radius "3" --index_rate "0.8" --f0method "rmvpe" --input_folder "/Users/liam/Music/RVC/love_me_down/ValYoung" --output_folder "/Users/liam/Downloads/test" --pth_path "/Applications/RVC/assets/weights/40k_2pac_hoarse_e500.pth" --index_path "/Applications/RVC/logs/2pac/added_IVF1465_Flat_nprobe_1_48k_2pac_hoarse_new_v2.index"

I get a string to float "false":

Traceback (most recent call last):
  File "/Users/liam/Downloads/RVC_CLI/rvc/infer/infer.py", line 246, in <module>
    rms_mix_rate = float(sys.argv[12])
ValueError: could not convert string to float: 'False'

If i use more parameters (especially split_audio = true here):
python main.py batch_infer --f0up_key "0" --filter_radius "3" --index_rate "0.8" --hop_length "64" --split_audio "True" --f0autotune "False" --f0method "rmvpe" --input_folder "/Users/liam/Music/RVC/love_me_down/ValYoung" --output_folder "/Users/liam/Downloads/test" --pth_path "/Applications/RVC/assets/weights/40k_2pac_hoarse_e500.pth" --index_path "/Applications/RVC/logs/2pac/added_IVF1465_Flat_nprobe_1_48k_2pac_hoarse_new_v2.index" --rms_mix_rate "1.0"

I get a string to float "true":

Traceback (most recent call last):
  File "/Users/liam/Downloads/RVC_CLI/rvc/infer/infer.py", line 246, in <module>
    rms_mix_rate = float(sys.argv[12])
ValueError: could not convert string to float: 'True'

from rvc_cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.