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

[Telemelody] getting error when loading template to melody checkpoint #204

Open
ibnrushud opened this issue Nov 15, 2024 · 0 comments
Open

Comments

@ibnrushud
Copy link

ibnrushud commented Nov 15, 2024

Hey I would be glad if any one can help me
I cant underderstand why I am getting this error :

`
Traceback (most recent call last):
File "/home/user/app/app.py", line 22, in
trend2notes = TransformerModel.from_pretrained('models/', checkpoint_file='t2m.pt')
File "/usr/local/lib/python3.9/site-packages/fairseq/models/fairseq_model.py", line 257, in from_pretrained
x = hub_utils.from_pretrained(
File "/usr/local/lib/python3.9/site-packages/fairseq/hub_utils.py", line 73, in from_pretrained
models, args, task = checkpoint_utils.load_model_ensemble_and_task(
File "/usr/local/lib/python3.9/site-packages/fairseq/checkpoint_utils.py", line 308, in load_model_ensemble_and_task
state = load_checkpoint_to_cpu(filename, arg_overrides)
File "/usr/local/lib/python3.9/site-packages/fairseq/checkpoint_utils.py", line 242, in load_checkpoint_to_cpu
state = _upgrade_state_dict(state)
File "/usr/local/lib/python3.9/site-packages/fairseq/checkpoint_utils.py", line 519, in _upgrade_state_dict
state["cfg"] = convert_namespace_to_omegaconf(state["args"])
File "/usr/local/lib/python3.9/site-packages/fairseq/dataclass/utils.py", line 343, in convert_namespace_to_omegaconf
overrides, deletes = override_module_args(args)
File "/usr/local/lib/python3.9/site-packages/fairseq/dataclass/utils.py", line 286, in override_module_args
_override_attr(k, FairseqConfig.dataclass_fields[k].type, args)
File "/usr/local/lib/python3.9/site-packages/fairseq/dataclass/utils.py", line 226, in _override_attr
val = ast.literal_eval(val)
File "/usr/local/lib/python3.9/ast.py", line 62, in literal_eval
node_or_string = parse(node_or_string, mode='eval')
File "/usr/local/lib/python3.9/ast.py", line 50, in parse
return compile(source, filename, mode, flags,
File "", line 0

SyntaxError: unexpected EOF while parsing`

my requirements.txt
accelerate
diffusers
invisible_watermark
torch
transformers
xformers
miditoolkit
phonemizer
git+https://github.com/facebookresearch/fairseq.git@b8ea8a9b72c82192da07e3377adf4ebbde16716d
numpy==1.23.4

python_version: 3.9.7

Thankyou for helping

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