huaaaliu / RGBX_Semantic_Segmentation

MIT License
315 stars 29 forks source link

FileNotFoundError: [Errno 2] No such file or directory: '/rgbx_semantic_segmentation/datasets/NYUDepthv2/test.txt' #3

Closed Geonhee-LEE closed 2 years ago

Geonhee-LEE commented 2 years ago

Hi, thanks for your contribution. I want to try the evaluate the pictures or video. But, the error which doesn't exist the test.txt file occurs.

$ CUDA_VISIBLE_DEVICES="0" python eval.py -d="0" -e="1": 

24 14:33:58 using devices 0
24 14:33:58 Using backbone: Segformer-B2
24 14:33:59 Using MLP Decoder
Traceback (most recent call last):
  File "eval.py", line 104, in <module>
    dataset = RGBXDataset(data_setting, 'val', val_pre)
  File "/home/geonhee/traversable_area/rgbx_semantic_segmentation/dataloader/RGBXDataset.py", line 25, in __init__
    self._file_names = self._get_file_names(split_name)
  File "/home/geonhee/traversable_area/rgbx_semantic_segmentation/dataloader/RGBXDataset.py", line 75, in _get_file_names
    with open(source) as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/geonhee/traversable_area/rgbx_semantic_segmentation/datasets/NYUDepthv2/test.txt'
huaaaliu commented 2 years ago

HI, thank you for your interest on our work. Our code is implement evaluate a dataset, if you want to inference a single image or video stream, You may need to write another program.