Comments (3)
This indeed seems to be the cause of the crash. I took the liberty to add a print statement in the source code, right before the call to open()
And got the path: C:\Users\jeje9\Desktop\rvc_test\rvc\lib\uvr5_pack\lib_v5\modelparams\4band_v2.json
when the correct path should have been: C:\Users\jeje9\Desktop\rvc_test\lib\site-packages\rvc\lib\uvr5_pack\lib_v5\modelparams\4band_v2.json
from retrieval-based-voice-conversion.
Manually setting the CWD of the python script using os.chdir()
fixes the issue on my end.
import os
import pydub
cwd = os.getcwd()
ffmpeg_exec = cwd + "\\ffmpeg.exe" # or any other path to ffmpeg, as long as it is absolute and not relative.
pydub.AudioSegment.converter = ffmpeg_exec
from dotenv import load_dotenv
from rvc.modules.uvr5.modules import UVR
# downloaded model from:
# https://github.com/TRvlvr/model_repo/releases/
load_dotenv(".env")
print(cwd)
print("Loading UVR")
uvr = UVR()
print("Extracting vocals...")
os.chdir(cwd + "\\Lib\\site-packages")
result = uvr.uvr_wrapper(
model_name="2_HP-UVR.pth",
audio_path=cwd + "\\audio.wav",
save_vocal_path=cwd + "\\vocal",
save_ins_path=cwd + "\\inst",
agg=5,
export_format="wav",
temp_path=cwd + "\\tmp")
for i in result:
print(i)
from retrieval-based-voice-conversion.
Sorry it took me so long to notice.
I haven't tested it on windows yet, I'll fix it again.
from retrieval-based-voice-conversion.
Related Issues (20)
- Error when using UVR DeEcho models with UVR.uvr_wrapper() HOT 3
- 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
- Any docs/examples on how to do the audio separation with HP5_only_main_vocal and DeEcho HOT 4
- Index file argument broken HOT 5
- onnx infer problem
- support for python ^3.8 HOT 1
- Installed in virtual environment but permission denied with rvc commands (on Mac) HOT 9
- API speed slow vs CLI HOT 1
- Api not releasing memory after inference HOT 3
- From Pydub: [FileNotFoundError: [WinError 2] The system cannot find the file specified] OR [RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work]
- Solved: RVC being slower than the WebUI version
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.