Skip to content

ModuleNotFoundError: No module named 'examples' #3

@mukherjeesougata-eros

Description

@mukherjeesougata-eros

For the installation of data2vec-aqc I have run the following set of commands:-

  1. git clone https://github.com/Speech-Lab-IITM/data2vec-aqc
  2. cd data2vec-aqc
  3. pip install --editable ./

After this I was trying to infer my custom dataset using data2vec-aqc model so I ran the following bash command:-

test_set_path= /data0/Senior-Engineer-audio/ASR/Fairseqv0.12.2/Datasets_tsv_files/Orpheus-PT
tsv_file_name= test
checkpoint_path= /data0/Senior-Engineer-audio/ASR/Data2vec_aqc/SPRING_INX_data2vec_aqc_Hindi.pt
result_dir_path= /data0/Senior-Engineer-audio/ASR/Fairseqv0.12.2/Results/Orpheus-PT
python3 /data0/Senior-Engineer-audio/ASR/Data2vec_aqc/data2vec-aqc/examples/speech_recognition/new/infer.py /
--config-dir /data0/Senior-Engineer-audio/ASR/Data2vec_aqc/data2vec-aqc/examples/speech_recognition/new/conf
--config-name infer task=audio_finetuning task.data=${test_set_path} common.user_dir=/data0/Senior-Engineer-audio/ASR/Data2vec_aqc/data2vec-aqc/examples/data2vec
task.labels=ltr decoding.type=viterbi
decoding.results_path=${result_dir_path} 

But I was encountering the following error:-

Traceback (most recent call last):
  File "/data0/Senior-Engineer-audio/ASR/Data2vec_aqc/data2vec-aqc/examples/speech_recognition/new/infer.py", line 20, in <module>
    from examples.speech_recognition.new.decoders.decoder_config import (
    ...<2 lines>...
    )
ModuleNotFoundError: No module named 'examples'

So, I ran the following command python setup.py build develop as given here. But it was again showing the following error:-

fatal error: examples/operators/alignment_train_cpu.cpp: No such file or directory
compilation terminated.
error: command '/usr/bin/g++' failed with exit code 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions