Closed matsui528 closed 6 years ago
Hi @matsui528 glad you are making use of the library :-)
Yeah, basically although the error is a strange one and not very informative, I think it is because you have a directory img_single_class
and then another directory dog
for your single class. It would be better if you just initialised the pipeline within the dog
directory that contains the images.
However, thanks for making this issue, I guess my tests do not cover situations where the initialisation directory contains only one directory. In cases with only one class, I assumed users would just initialise within a directory containing only images. I will certainly fix that in the next release!
Got it. p = Augmentor.Pipeline('img_single_class/dog')
works perfectly. Thank you again for your great library!
Great, glad it's working. I am working a major update that will be released soon, hopefully I can also include this fix as well. Thanks again for pointing this out!
Hi, thanks for this wonderful library!
I found that an error is thrown if there exists only one class for images. Is this expected behavior?
Minimum code to reproduce the problem: If there are two classes, the following code works
However, if there is only one class, it doesn't seems the following code works:
My environment is:
Best,