jfilter / split-folders

🗂 Split folders with files (i.e. images) into training, validation and test (dataset) folders
MIT License
414 stars 72 forks source link

Does not work with relative paths #21

Closed risto-trajanov closed 2 years ago

risto-trajanov commented 3 years ago
import splitfolders
splitfolders.ratio("./input_folder", output="./output", seed=1337, ratio=(.8, .1, .1), group_prefix=None)

Error:

FileNotFoundError: [WinError 3] The system cannot find the path specified: 'input_folder'

My folder

LindaK2013 commented 3 years ago

also my issue, I do not know how to call the output file(s) to use them

jfilter commented 2 years ago

Relative paths work, not sure why it wasn't working in your case. If anybody can create a reproducible environment (Dockerfile) where it's not working, I will take a look at it.