Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileNotFoundError: [Errno 2] No such file or directory: 'trainset_preprocess_pipeline_print.py' #5

Open
RavneetDTU opened this issue Oct 2, 2023 · 0 comments

Comments

@RavneetDTU
Copy link

Dear @JarodMica , firstly thanks for uploading videos about AI on youtube and packaging RVC code into just 1 function. But I am facing error in running this. I just needs to run rvc_convert function, I provided .wav audio file generated from another TTS service.

Complete Error:
audio file path: /media/ravneet/Work SSD/RVC_TTS_Pipeline/ravneet_test_voice.wav
Traceback (most recent call last):
File "/media/ravneet/Work SSD/RVC_TTS_Pipeline/test.py", line 6, in
rvc_convert(model_path="guanguanV1.pth",
File "/media/ravneet/Work SSD/RVC_TTS_Pipeline/venv_pipeline/src/rvc-tts-pipe/rvc_infer.py", line 316, in rvc_convert
config=Config(device,is_half)
File "/media/ravneet/Work SSD/RVC_TTS_Pipeline/venv_pipeline/src/rvc-tts-pipe/rvc_infer.py", line 29, in init
self.x_pad, self.x_query, self.x_center, self.x_max = self.device_config()
File "/media/ravneet/Work SSD/RVC_TTS_Pipeline/venv_pipeline/src/rvc-tts-pipe/rvc_infer.py", line 63, in device_config
with open("trainset_preprocess_pipeline_print.py", "r") as f:
FileNotFoundError: [Errno 2] No such file or directory: 'trainset_preprocess_pipeline_print.py'

Here is my code:
from rvc_infer import rvc_convert
if name == "main":
audio_file_name = '/media/ravneet/Work SSD/RVC_TTS_Pipeline/ravneet_test_voice.wav'
print(f"audio file path: {audio_file_name}")
# play_audio(audio_file_name)
rvc_convert(model_path="guanguanV1.pth",
input_path=audio_file_name)

Please help me to resolve the error. Many thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant