Skip to content
Advertisement

The system cannot find the path specified: ‘ ‘

I am trying to split my image data set into train test and val. It has already created the train, test and val folders, but its empty as I keep encountering an error. This is the code I am trying to run on jupyter notebook, I have imported the required libraries like os, numoy, shutil, random:

JavaScript

and this is the error it shows:

JavaScript

Advertisement

Answer

In the last 4 lines of code instead of using: allFileNames = os.listdir(src) I used:

JavaScript

This worked for me and the directory error got fixed.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement