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

Error importing the module #11

Closed DixitIshan closed 5 years ago

DixitIshan commented 5 years ago

import split_folders

Traceback (most recent call last): File "", line 1, in File "/home/linux/Ishan_work/tf_venv/lib/python3.5/site-packages/split_folders/init.py", line 1, in from .split import * File "/home/linux/Ishan_work/tf_venv/lib/python3.5/site-packages/split_folders/split.py", line 109 raise ValueError(f'The number of samples in class "{class_dir.stem}" are too few. There are only {len(files)} samples available but your fixed parameter {fixed} requires at least {sum(fixed)} files. You may want to split your classes by ratio.') ^ SyntaxError: invalid syntax

Any helps appreciated. Thanks in advance ! ![Uploading Screenshot from 2019-08-07 17-08-54.png…]()

jfilter commented 5 years ago

The module requires Python 3.6.