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

splitfolders.ratio fail without error message #27

Closed leminhds closed 2 years ago

leminhds commented 3 years ago

I have correctly implemented splitfolders.ratio(input= input_folder, output=output_folder, seed=1337, ratio=(.9, 0.1))

There is no error message. However, the files are not split and remain in the input folder. the output folder does not change either. happens to python 3.9

waterflyer commented 2 years ago

ok, I just found the right way to use it, you need to create a subfolder under your "output_folder" folder, such as "data", then after you executed the program, it will generate 3 folders that are test, train and val under your output folder, and inside those 3 folders, it will create a subfolder named "data" as well, and finally it will contain the images after the splitting as your specified ratio.

jfilter commented 2 years ago

This is a duplicate of #13.