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

Ratio not found #18

Closed mavaylon1 closed 4 years ago

mavaylon1 commented 4 years ago

import splitfolders

splitfolders.ratio("/Users/mavaylon/Research/Research_Gambier/Data_P/BP", output="/Users/mavaylon/Research/Research_Gambier/Data_P/output", seed=1337, ratio=(.7, .3), group_prefix=None) # default values

This just returns ratio is not an attribute.

jfilter commented 4 years ago

What's the output of the following?

print(splitfolders.__version__)
mavaylon1 commented 4 years ago

0.4.2

jfilter commented 4 years ago

What Python version are you using? What's your OS?

mavaylon1 commented 4 years ago

OS Catalina 10.15.6 Python 3.7.6

jfilter commented 4 years ago

Do you have file named splitfolders.py in your folder? Does it work with by using this package like this?

import split_folders
jfilter commented 4 years ago

So I assume @mavaylon1 named her or his script splitfolders.py and close this for now. If not, please comment again and we will find a solution.