#FileNotFoundError [Errno 2] No such file or directory, while that file exists

7 messages · Page 1 of 1 (latest)

trim trail
#

I had cloned one GitHub repository for applying GANs in medical X-ray images, and it shows this error while running:

" FileNotFoundError: [Errno 2] No such file or directory: 'datasets/covid\train\COVID(1147).png'"

The main problem is showing No such file or directory:'datasets/covid\train\COVID(1147).png', but actually the directory and pictures do exist. Also, why is it showing the path in an incorrect way?

From what I understand that the problem is in the data loader file, so I am sharing screenshots of the data loader file that can help see where the problem is.

kind dagger
#

Could you run treeon your bash?

#

Ugly way is to comment everything, inject directory reading snippets, and debug to get the right paths

trim trail
#

I ran tree, and this is the result

#

it shows me the directories

kind dagger