lhoyer/improving_segmentation_with_selfsupervised_depth

No files found by program

Closed this issue · 1 comments

Hi, I am trying to run the experiments, and have organised the data as described:

CITYSCAPES_DIR/

  • gtFine/
  • leftImg8bit_small/
  • leftImg8bit_sequence_small/

Each of the directories contains the val, train and test directories as obtained from cityscapes, however when running the experiments I get:
RuntimeError: Found no segmentation files in datasets/Cityscapes/leftImg8bit_small/train

However this directory is not empty, it contains the directories aachen, bochum etc. and in each of the directories there are the corresponding .png files.

The following line in cityscapes_loader.py returns an empty array:
self.files = sorted(recursive_glob(rootdir=self.images_base))

With images_base = datasets/Cityscapes/leftImg8bit_small/train

What am I doing wrong here? Can anyone advise?
I am on Ubuntu 18.04

Solved:

This is a PyCharm issue. It treats root direcory as the current working directory of the project, and not the Ubuntu root.