Giter VIP home page Giter VIP logo

Comments (4)

Tps-F avatar Tps-F commented on July 24, 2024

I'll make it!

from retrieval-based-voice-conversion.

ybwai avatar ybwai commented on July 24, 2024

doing something like this returns me two files that are the same as the input, what am I getting wrong?

from rvc.modules.uvr5.vr import AudioPreprocess

def separate():
    input_path = f"{project_dir}/sandbox/inputs/input.mp3"
    output_path = Path(f"{project_dir}/sandbox/outputs/")

    model_name = "HP5_only_main_vocal.pth"
    model_path = os.path.join(os.getenv("weight_uvr5_root"), model_name)
    agg = 10  

    pre_fun = AudioPreprocess(model_path, agg)
    result = pre_fun.process(input_path)

    wav_instrument, wav_vocals, sr, agg = result
    sf.write(f"{output_path}/instrumental.wav", wav_instrument / 32768, sr)
    sf.write(f"{output_path}/vocals.wav", wav_vocals / 32768, sr)


from retrieval-based-voice-conversion.

ybwai avatar ybwai commented on July 24, 2024

The cli and api endpoint seem to make use of a wrapper:

    uvr_module.uvr_wrapper(
        inputpath, outputpath, model_name=modelname, export_format=format
    )
    ```
    
    But not sure this actually works, as the wrapper does not accept an output_path, it returns the files.
    
    Have also tried to use the wrapper directly:
    
    ```
        uvr = UVR()
    results = uvr.uvr_wrapper(input_path, agg=10, model_name="HP3_all_vocals.pth")

    for i, result in enumerate(results):
        wav_instrument, wav_vocals, sr, agg = result
        sf.write(f"{output_path}/instrument_{i}.wav", wav_instrument / 32768, sr)
        sf.write(f"{output_path}/vocals_{i}.wav", wav_vocals / 32768, sr)

but sadly I still get the same issue of the instrumental and vocals files being the same (original audio). Any help @Tps-F ?

from retrieval-based-voice-conversion.

Tps-F avatar Tps-F commented on July 24, 2024

I will check, It could be a bug.

from retrieval-based-voice-conversion.

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.