You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
The text was updated successfully, but these errors were encountered: