mdbloice / Augmentor

Image augmentation library in Python for machine learning.
https://augmentor.readthedocs.io/en/stable
MIT License
5.07k stars 866 forks source link

add_further_directory means to change the source_directory ? #161

Open mifenfeifen opened 5 years ago

mifenfeifen commented 5 years ago

I thought that add_further_directory can help me with processing multi directory, so I wrote these code:

for digit in range(10):
    p.add_further_directory(str(base/str(digit)))

but I found that only the last folder got outputs.

so I browsed the source code: add_further_directory use _populate, and in _populate, there is

self.augmentor_images, self.class_labels = scan(source_directory, abs_output_directory)

this command will replace the original images with new images in source_directory

Is that your purpose?

mdbloice commented 5 years ago

Hi @mifenfeifen no that is not my purpose, thanks for pointing this out. I will fix that for the next version (which I will be updating soon, most likely next week if all goes well). Thanks again for opening this issue.