Lesson 3 Camvid with another dataset - FileNotFoundError

Hello,

I am trying to recreate the Camvid notebook using another data source. I was able to load my data and assign paths in a similar method to the notebook (one for labels, one for images). However, I am running into a ‘FileNotFoundError: No such file or directory’ when attempting to run the code below:

image
image.png891x412 19.7 KB

Link for the notebook:
https://colab.research.google.com/drive/1UAKcDObHPk-htSDWJH95dDGcnvDFsyUl#scrollTo=s91rJ_qQ9Tqe

Please let me know if you need any additional information.

Thank you!

Hi,

get_image_files does not seem to support auto-translating ~ to your home folder, so you need to give it the full path. You can find your home folder path by running os.path.expanduser(’~’) in the notebook, it will most likely look something like /home/username, which then gives the (example) full path of /home/username/data/chaos/CHAOS-Test-1/images

Thanks.

Yijin

Great, that worked! Thank you Yijin!