Comments (9)
I was able to get it to open by right clicking and opening in terminal rvc in the bin and then copying and pasting that instead so like: "/Users/omni/Documents/rvc/projects/testing-rvc/venv/bin/python3.11" "/Users/omni/Documents/rvc/projects/testing-rvc/venv/bin/rvc"
This is ok but rvc-api doesn't work this way and it's generally not ideal. Any insight you have into getting it to work with the rvc and rvc-api commands on a mac would be very helpful!
from retrieval-based-voice-conversion.
Now that I have it running (in the CLI) I've run into an error. Any insight would be greatly appreciated.
INFO:rvc.configs.config:No supported Nvidia GPU found
INFO:rvc.configs.config:overwrite configs.json
INFO:rvc.configs.config:Use mps instead
INFO:rvc.configs.config:is_half:False, device:mps
INFO:rvc.modules.vc.modules:Get sid: /Users/omni/Documents/rvc/weights/test.pth
INFO:rvc.modules.vc.modules:Loading: /Users/omni/Documents/rvc/weights/test.pth
/Users/omni/Documents/rvc/projects/rvc Desktop App/testing-rvc/venv/lib/python3.11/site-packages/torch/nn/utils/weight_norm.py:30: UserWarning: torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weight_norm.
warnings.warn("torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weight_norm.")
DEBUG:rvc.lib.infer_pack.models:gin_channels: 256, self.spk_embed_dim: 109
INFO:rvc.modules.vc.modules:Select index:
WARNING:rvc.modules.vc.modules:Traceback (most recent call last):
File "/Users/omni/Documents/rvc/projects/rvc Desktop App/testing-rvc/rvc/modules/vc/modules.py", line 114, in vc_single
self.hubert_model = load_hubert(self.config, hubert_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/omni/Documents/rvc/projects/rvc Desktop App/testing-rvc/rvc/modules/vc/utils.py", line 23, in load_hubert
models, _, _ = checkpoint_utils.load_model_ensemble_and_task(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/omni/Documents/rvc/projects/rvc Desktop App/testing-rvc/venv/lib/python3.11/site-packages/fairseq/checkpoint_utils.py", line 448, in load_model_ensemble_and_task
raise IOError("Model file not found: {}".format(filename))
OSError: Model file not found:
Traceback (most recent call last):
File "/Users/omni/Documents/rvc/projects/rvc Desktop App/testing-rvc/venv/bin/rvc", line 6, in
sys.exit(main())
^^^^^^
File "/Users/omni/Documents/rvc/projects/rvc Desktop App/testing-rvc/rvc/utils/cli/cli.py", line 29, in main
cli()
File "/Users/omni/Documents/rvc/projects/rvc Desktop App/testing-rvc/venv/lib/python3.11/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/omni/Documents/rvc/projects/rvc Desktop App/testing-rvc/venv/lib/python3.11/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/Users/omni/Documents/rvc/projects/rvc Desktop App/testing-rvc/venv/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/omni/Documents/rvc/projects/rvc Desktop App/testing-rvc/venv/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/omni/Documents/rvc/projects/rvc Desktop App/testing-rvc/venv/lib/python3.11/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/omni/Documents/rvc/projects/rvc Desktop App/testing-rvc/rvc/utils/cli/handler/infer.py", line 130, in infer
wavfile.write(outputpath, tgt_sr, audio_opt)
File "/Users/omni/Documents/rvc/projects/rvc Desktop App/testing-rvc/venv/lib/python3.11/site-packages/scipy/io/wavfile.py", line 771, in write
dkind = data.dtype.kind
^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'dtype'
from retrieval-based-voice-conversion.
I believe this is because my hubert_path is set to nothing in .env but I'm not sure what I'm supposed to set it to
from retrieval-based-voice-conversion.
I think maybe the init command isn't actually going through even though it's not giving an error. I see that there is a get hubert script that never ran so I manually added hubert and it looks like other files are missing. Now trying to resolve rmvpe.pt.
This can probably be traced back to my original issue of not being able to run the rvc command in a normal way. Let me know if you have any recommendations!
from retrieval-based-voice-conversion.
Ok so I was able to get it working by copying rmvpe and hubert_base from the RVC Beta 0717 folder on hugging face and then explicitly adding their file paths to .env
If rvc init had the right permissions and was working properly, would all of this been automatic?
For anyone who needs it, here was my process:
- Install RVC in a Python 3.11 virtual environment (3.12 wouldn't work with torch)
- rvc commands wouldn't work for me, so I right-clicked rvc in the venv bin in vscode and selected run in terminal. I then copied that command (which is a python path and an rvc path) and used that in place of "rvc" whenever I want to run it
- rvc init didn't seem to do anything so I did rvc env create - set manual paths for rmvpe and hubert and grabbed them from the RVC Beta 0717 on hugging face
- run the rvc infer command using whatever settings you choose
- MPS didn't work on macbook air so I had to add this env variable - export PYTORCH_ENABLE_MPS_FALLBACK=1 - to ./venv/bin/activate - I added it after export PATH
- works!
from retrieval-based-voice-conversion.
After all of that, I reinstalled the whole thing in another folder and it worked perfectly well! Very strange, but glad it was a fluke. Hopefully my journey helps someone else. Going to open a new issue for a problem I'm having with the api
from retrieval-based-voice-conversion.
having the same issue @briangrider , how did you get it working on a fresh clone?
these are the steps i am doing:
git clone https://github.com/RVC-Project/Retrieval-based-Voice-Conversion.git
python -m venv .venv && source .venv/bin/activate
poetry install
rvc init
the init shows no output but seems to do nothing...
Python 3.11.7
Poetry 1.7.1
from retrieval-based-voice-conversion.
@beatsgithub I just ignored it and used env create
I also had to grab the hubert and rmvpe.pt from RVC 0717 beta from hugging face, put them in relative folders and put them in the env file
from retrieval-based-voice-conversion.
yeh got it working in the same way thanks @briangrider seems the init script is empty and does nothing.
from retrieval-based-voice-conversion.
Related Issues (20)
- info HOT 1
- 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
- Will this library be the base repo? 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
- support for python ^3.8 HOT 1
- API speed slow vs CLI HOT 1
- Api not releasing memory after inference HOT 3
- FileNotFoundError: [Errno 2] No such file or directory: 'rvc/lib/uvr5_pack/lib_v5/modelparams/4band_v2.json' when using UVR.uvr_wrapper() 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.