Closed v-prgmr closed 5 years ago
How many items to you have as input?
I have 43 classes. And the classes are unballanced. The total number of images would be 1200.
So I assume for some classes, there are fewer than 135 samples, right? Can you try to turn oversampling on?
Just let me know if this was the cause for your problem. I agree that the error message was not useful and I could improve it.
hello , first of all thanks for the great job, the tool is awesome :-) I am experiencing the same issue with my unbalanced dataset. If I set the fixed param to a value above the maximum amount of files for one of the class i have the assertion error , and this even if i enable the oversample parameter.
I am having the same issue, when I try to use
import split_folders
split_folders.fixed('/content/Data', output = "output", seed = 1337, fixed = (275, 275), oversample = True)
AssertionError Traceback (most recent call last)
Okay people, I improved the error message. Use a ratio
instead of fixed
if the number of samples are to few.
The problem is that I don't want to encourage over-sampling for the validation and test set. So if only 10 files exists and you want to use fixed with, i.e., (8, 8), it's impossible. So I raise an error. The error message was not very helpful, though.
I get this error when i use the fixed attribute. Error:
AssertionError Traceback (most recent call last)