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

运行python app.py时报错:for field override_dirname is not allowed: use default_factory #10

Open
mikestut opened this issue Jun 2, 2024 · 0 comments

Comments

@mikestut
Copy link

mikestut commented Jun 2, 2024

base) root@tyn-Venue-11-Pro-7130-vPro:/home/tyn/motionagent# python app.py
2024-06-02 22:13:03,283 - modelscope - INFO - PyTorch version 2.0.1 Found.
2024-06-02 22:13:03,285 - modelscope - INFO - TensorFlow version 2.16.1 Found.
2024-06-02 22:13:03,285 - modelscope - INFO - Loading ast index from /root/.cache/modelscope/ast_indexer
2024-06-02 22:13:03,312 - modelscope - INFO - Loading done! Current index file version is 1.8.4, with md5 50f197fbf9140414ea7ff54927153e24 and a total number of 902 components indexed
Traceback (most recent call last):
File "/home/tyn/motionagent/app.py", line 8, in
from inference.music_infer import music_infer
File "/home/tyn/motionagent/inference/music_infer.py", line 5, in
from audiocraft.data.audio import audio_write
File "/root/miniconda3/lib/python3.11/site-packages/audiocraft/init.py", line 24, in
from . import data, modules, models
File "/root/miniconda3/lib/python3.11/site-packages/audiocraft/data/init.py", line 10, in
from . import audio, audio_dataset, info_audio_dataset, music_dataset, sound_dataset
File "/root/miniconda3/lib/python3.11/site-packages/audiocraft/data/audio_dataset.py", line 33, in
import dora
File "/root/miniconda3/lib/python3.11/site-packages/dora/init.py", line 68, in
import hydra
File "/root/miniconda3/lib/python3.11/site-packages/hydra/init.py", line 5, in
from hydra import utils
File "/root/miniconda3/lib/python3.11/site-packages/hydra/utils.py", line 10, in
from hydra._internal.utils import (
File "/root/miniconda3/lib/python3.11/site-packages/hydra/_internal/utils.py", line 21, in
from hydra.core.utils import get_valid_filename, split_config_path
File "/root/miniconda3/lib/python3.11/site-packages/hydra/core/utils.py", line 19, in
from hydra.core.hydra_config import HydraConfig
File "/root/miniconda3/lib/python3.11/site-packages/hydra/core/hydra_config.py", line 6, in
from hydra.conf import HydraConf
File "/root/miniconda3/lib/python3.11/site-packages/hydra/conf/init.py", line 62, in
class JobConf:
File "/root/miniconda3/lib/python3.11/site-packages/hydra/conf/init.py", line 87, in JobConf
@DataClass
^^^^^^^^^
File "/root/miniconda3/lib/python3.11/dataclasses.py", line 1230, in dataclass
return wrap(cls)
^^^^^^^^^
File "/root/miniconda3/lib/python3.11/dataclasses.py", line 1220, in wrap
return _process_class(cls, init, repr, eq, order, unsafe_hash,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/miniconda3/lib/python3.11/dataclasses.py", line 958, in _process_class
cls_fields.append(_get_field(cls, name, type, kw_only))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/miniconda3/lib/python3.11/dataclasses.py", line 815, in _get_field
raise ValueError(f'mutable default {type(f.default)} for field '
ValueError: mutable default <class 'hydra.conf.JobConf.JobConfig.OverrideDirname'> for field override_dirname is not allowed: use default_factory

求帮忙看下原因!!

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