IndexError: list index out of range, Filenames list is an empty list

  Kiến thức lập trình
Loading the best model and predicting results on the testing split
    Loading testing dataset:
Computing some stats about the dataset
ERROR::clc_Data_generator::Loading features failed : len(temp_feat) != 0 | 0 | F:/AL project/feat_labelfoa_dev_norm
Label directory: F:/AL project/feat_labelfoa_dev_label
Filenames list: []
Traceback (most recent call last):
  File "F:AL projectseld-dcase2022-mainvisualize_seldnet_output.py", line 121, in <module>
    sys.exit(main(sys.argv))
  File "F:AL projectseld-dcase2022-mainvisualize_seldnet_output.py", line 36, in main
    data_gen_test = cls_data_generator.DataGenerator(
  File "F:AL projectseld-dcase2022-maincls_data_generator.py", line 40, in __init__
    self._get_filenames_list_and_feat_label_sizes()
  File "F:AL projectseld-dcase2022-maincls_data_generator.py", line 105, in _get_filenames_list_and_feat_label_sizes
    temp_label = np.load(os.path.join(self._label_dir, self._filenames_list[0]))
IndexError: list index out of range

I have files in my tag file, but the Filenames list is an empty list

New contributor

Sait Agela is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

LEAVE A COMMENT