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
I am getting this error while running this command
python3 infer.py model_path audio_path
I have successfully installed the Fairseq-Inference repository provided here and pip3 install --editable ./ also worked fine for me.
File "/home/ec2-user/SageMaker/fairseq_inference/infer.py", line 3, in <module>
import fairseq
File "/home/ec2-user/SageMaker/fairseq_inference/fairseq-0.12.2/fairseq/__init__.py", line 33, in <module>
import fairseq.criterions # noqa
File "/home/ec2-user/SageMaker/fairseq_inference/fairseq-0.12.2/fairseq/criterions/__init__.py", line 36, in <module>
importlib.import_module("fairseq.criterions." + file_name)
File "/home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/home/ec2-user/SageMaker/fairseq_inference/fairseq-0.12.2/fairseq/criterions/ctc.py", line 19, in <module>
from fairseq.tasks import FairseqTask
File "/home/ec2-user/SageMaker/fairseq_inference/fairseq-0.12.2/fairseq/tasks/__init__.py", line 136, in <module>
import_tasks(tasks_dir, "fairseq.tasks")
File "/home/ec2-user/SageMaker/fairseq_inference/fairseq-0.12.2/fairseq/tasks/__init__.py", line 117, in import_tasks
importlib.import_module(namespace + "." + task_name)
File "/home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/home/ec2-user/SageMaker/fairseq_inference/fairseq-0.12.2/fairseq/tasks/online_backtranslation.py", line 34, in <module>
from fairseq.sequence_generator import SequenceGenerator
File "/home/ec2-user/SageMaker/fairseq_inference/fairseq-0.12.2/fairseq/sequence_generator.py", line 16, in <module>
from fairseq.models import FairseqIncrementalDecoder
File "/home/ec2-user/SageMaker/fairseq_inference/fairseq-0.12.2/fairseq/models/__init__.py", line 237, in <module>
import_models(data2vec_dir, "examples.data2vec.models")
File "/home/ec2-user/SageMaker/fairseq_inference/fairseq-0.12.2/fairseq/models/__init__.py", line 217, in import_models
importlib.import_module(namespace + "." + model_name)
File "/home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named 'examples.data2vec
The text was updated successfully, but these errors were encountered:
I am getting this error while running this command
I have successfully installed the Fairseq-Inference repository provided here and
pip3 install --editable ./
also worked fine for me.The text was updated successfully, but these errors were encountered: