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

error running on googlecolab #162

Open
Jihad3336 opened this issue Jan 20, 2025 · 10 comments
Open

error running on googlecolab #162

Jihad3336 opened this issue Jan 20, 2025 · 10 comments

Comments

@Jihad3336
Copy link

on google collab it usually works just fine but now when running the last cell it gives this error : Timer: 00:09:48Traceback (most recent call last):
File "/content/HRVC/src/webui.py", line 10, in
from main import song_cover_pipeline
File "/content/HRVC/src/main.py", line 22, in
from rvc import Config, load_hubert, get_vc, rvc_infer
File "/content/HRVC/src/rvc.py", line 5, in
from fairseq import checkpoint_utils
File "/usr/local/lib/python3.11/dist-packages/fairseq/init.py", line 20, in
from fairseq.distributed import utils as distributed_utils
File "/usr/local/lib/python3.11/dist-packages/fairseq/distributed/init.py", line 7, in
from .fully_sharded_data_parallel import (
File "/usr/local/lib/python3.11/dist-packages/fairseq/distributed/fully_sharded_data_parallel.py", line 10, in
from fairseq.dataclass.configs import DistributedTrainingConfig
File "/usr/local/lib/python3.11/dist-packages/fairseq/dataclass/init.py", line 6, in
from .configs import FairseqDataclass
File "/usr/local/lib/python3.11/dist-packages/fairseq/dataclass/configs.py", line 1104, in
@DataClass
^^^^^^^^^
File "/usr/lib/python3.11/dataclasses.py", line 1232, in dataclass
return wrap(cls)
^^^^^^^^^
File "/usr/lib/python3.11/dataclasses.py", line 1222, in wrap
return _process_class(cls, init, repr, eq, order, unsafe_hash,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/dataclasses.py", line 958, in _process_class
cls_fields.append(_get_field(cls, name, type, kw_only))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/dataclasses.py", line 815, in _get_field
raise ValueError(f'mutable default {type(f.default)} for field '
ValueError: mutable default <class 'fairseq.dataclass.configs.CommonConfig'> for field common is not allowed: use default_factory
Timer: 00:09:50

@Bebra777228
Copy link

Google Colab has updated the Python version to 3.11, but fairseq does not support this version.

Use this to upgrade fairseq:

!pip install --upgrade https://github.com/Bebra777228/TrainVocModel-EN/releases/download/fixed-packages/fairseq_fixed-0.13.0-cp311-cp311-linux_x86_64.whl

@Jihad3336
Copy link
Author

i did it but when i run it it tells me te restart the session and then if i do everyting is lost where do i put that code in wish part and what should i remove :

@Bebra777228
Copy link

There is no need to restart the environment; you can skip this step. However, you might need to update other packages as well, since many of them do not support Python 3.11 (although everything worked fine during the test run).

You can insert this code anywhere, or create a separate cell and run it after the "Install requirements" cell, or insert it at the very bottom of the "Install requirements" cell itself.

@ninne120
Copy link

I’m facing the same issue as well. Do you happen to have a more detailed solution for me? I’m new to this field.

@Bebra777228
Copy link

Use this notebook, everything seems to work great here:
https://colab.research.google.com/github/hinabl/AICoverGen-Colab/blob/main/Hina_Mod_AICoverGen_colab.ipynb

@ninne120
Copy link

Thank you this is great. but i have a new error agin
"error
Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx"

@Bebra777228
Copy link

In Google Colab, there is a menu at the top. Find «Runtime» → «Change runtime type» and in the opened window select «T4 GPU». After that, you will need to run all the code cells again.

If the error persists after performing these actions, it means you have reached the maximum quota of 5 hours per day for using Colab. In this case, you have two options: switch to another Google account or wait for 12–24 hours.

@JackismyShephard
Copy link

@Jihad3336 @ninne120 If you want a more seamless solution with more features you can also check out the notebook for my fork of this project at https://github.com/JackismyShephard/ultimate-rvc 😄

@brolongo
Copy link

brolongo commented Jan 30, 2025

Use this notebook, everything seems to work great here: https://colab.research.google.com/github/hinabl/AICoverGen-Colab/blob/main/Hina_Mod_AICoverGen_colab.ipynb

This no longer works.
It gives the error:
[E:onnxruntime:Default, provider_bridge_ort.cc:1836 TryGetProviderInfo_CUDA] /onnxruntime_src/onnxruntime/core/session/provider_bridge_ort.cc:1511 onnxruntime::Provider& onnxruntime::ProviderLibrary::Get() [ONNXRuntimeError] : 1 : FAIL : Failed to load library libonnxruntime_providers_cuda.so with error: libcudnn.so.8: cannot open shared object file: No such file or directory

[W:onnxruntime:Default, onnxruntime_pybind_state.cc:921 CreateExecutionProviderInstance] Failed to create CUDAExecutionProvider. Please reference https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html#requirementsto ensure all dependencies are met.

@JackismyShephard
Copy link

Use this notebook, everything seems to work great here: https://colab.research.google.com/github/hinabl/AICoverGen-Colab/blob/main/Hina_Mod_AICoverGen_colab.ipynb

This no longer works.
It gives the error:
[E:onnxruntime:Default, provider_bridge_ort.cc:1836 TryGetProviderInfo_CUDA] /onnxruntime_src/onnxruntime/core/session/provider_bridge_ort.cc:1511 onnxruntime::Provider& onnxruntime::ProviderLibrary::Get() [ONNXRuntimeError] : 1 : FAIL : Failed to load library libonnxruntime_providers_cuda.so with error: libcudnn.so.8: cannot open shared object file: No such file or directory

[W:onnxruntime:Default, onnxruntime_pybind_state.cc:921 CreateExecutionProviderInstance] Failed to create CUDAExecutionProvider. Please reference https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html#requirementsto ensure all dependencies are met.

Use ultimate rvc

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

5 participants