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

AttributeError: module 'split_folders' has no attribute 'ratio' #6

Closed chontipan closed 5 years ago

chontipan commented 5 years ago

Hi, i run "split_folders.ratio('img_data/', output="output", seed=1500, ratio=(.8, .1, .1))" and get AttributeError: module 'split_folders' has no attribute 'ratio'

My dataset have 15 sub-folders containing 100 images for each

chontipan commented 5 years ago

Sorry, I just know the cause. I set my filename as split_folders. py

mavaylon1 commented 4 years ago

I'm having the same issue. What is the fix?

chontipan commented 4 years ago

As I remember, it is about the filename. You can try to change your file name to others.