Skip to content

Import errors in scripts/eval_competition.sh #1

@anna-charlotte

Description

@anna-charlotte

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions