Comments (4)
I'll make it!
from retrieval-based-voice-conversion.
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.
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.
I will check, It could be a bug.
from retrieval-based-voice-conversion.
Related Issues (20)
- What does this mean? HOT 1
- ValueError: mutable default <class 'fairseq.dataclass.configs.CommonConfig'> for field common is not allowed: use default_factory HOT 3
- TypeError: expected str, bytes or os.PathLike object, not NoneType HOT 1
- some errors throw during infer, and output file generated is bad quality HOT 1
- rvc init command is not implemented HOT 5
- How can I use RVC on my CPU? HOT 2
- Is there any plan to migrate this to Android or iOS? HOT 4
- AttributeError: 'NoneType' object has no attribute 'dtype' HOT 6
- AttributeError: 'VC' object has no attribute 'vc_infer'. HOT 1
- Index file argument broken HOT 5
- onnx infer problem
- Outdated RVC HOT 3
- UVR not working: same output as the input and freezes on using CPU HOT 5
- index_file implementation is currently broken
- How can i upload file audio from body form data
- BGM problem
- how to install this,the commmand rvc init doesn't work. HOT 2
- RVC in API form
- RVC API Problem with Gradio in F0 Curve File HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from retrieval-based-voice-conversion.