Text-to-Speech
Fairseq
English
audio

didn't run at my local

#15
by dwiraamadhan - opened

so i have try to run this model at my local with python 3.11.4 but it cant running and show this message error:
Traceback (most recent call last):
File "c:\PEMROGRAMAN\PYHTON\MODEL AI\TTSModel_1.py", line 1, in
from fairseq.checkpoint_utils import load_model_ensemble_and_task_from_hf_hub
File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\fairseq_init.py", line 20, in
from fairseq.distributed import utils as distributed_utils
File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\fairseq\distributed_init
.py", line 7, in
from .fully_sharded_data_parallel import (
File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\fairseq\distributed\fully_sharded_data_parallel.py", line 10, in
from fairseq.dataclass.configs import DistributedTrainingConfig
File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\fairseq\dataclass_init_.py", line 6, in
from .configs import FairseqDataclass
File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\fairseq\dataclass\configs.py", line 1104, in
@dataclass
^^^^^^^^^
File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\dataclasses.py", line 1230, in dataclass
return wrap(cls)
^^^^^^^^^
File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\dataclasses.py", line 1220, in wrap
return _process_class(cls, init, repr, eq, order, unsafe_hash,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\dataclasses.py", line 958, in _process_class
cls_fields.append(_get_field(cls, name, type, kw_only))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\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

can anyone help me to solve this error?

Installed the version of fairseq written by the guy on this issue(https://github.com/facebookresearch/fairseq/issues/5012)
pip install git+https://github.com/One-sixth/fairseq.git

Worked fine for me and had the same error as you

it works now, thanks a lot for ur help

Sign up or log in to comment