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 is not copying files but execute without error #30

Closed krishnainc closed 2 years ago

krishnainc commented 2 years ago

This is my code snippet

`import splitfolders import os

os.makedirs('output') images = 'img' splitfolders.ratio(images, output= 'output', seed=42, ratio = (.7,.2,.1))`

waterflyer commented 2 years ago

ok, I just found the right way to use it, you need to create a subfolder under your "img" 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.