cffan / neural_seq_decoder

21 stars 12 forks source link

Import errors in `scripts/eval_competition.sh` #1

Open anna-charlotte opened 2 months ago

anna-charlotte commented 2 months ago

Hi, I am encountering an issue while running the scripts/eval_competition.sh script. The script is crashing with the following error traceback:

Traceback (most recent call last):
  File "/home/lina4471/thesis/neural_seq_decoder/scripts/eval_competition.py", line 12, in <module>
    from dataset import SpeechDataset
ModuleNotFoundError: No module named 'dataset'

Additionally, some later imports in the script are also highlighted as errors in my IDE, specifically:

import re
import time
import pickle
import numpy as np

from edit_distance import SequenceMatcher
import torch
from dataset import SpeechDataset  # UNDERLINED RED

import matplotlib.pyplot as plt  # UNDERLINED RED

from nnDecoderModel import getDatasetLoaders  # UNDERLINED RED
from nnDecoderModel import loadModel  # UNDERLINED RED
import neuralDecoder.utils.lmDecoderUtils as lmDecoderUtils  # UNDERLINED RED
import pickle 
import argparse

It seems like the dataset module and other modules are not being found, resulting in import errors.

Jacoo-Zhao commented 2 weeks ago

It is not in the same folder. Try to move eval_competion or import with the proper folder.