cwerner / fastclass

Little tools to download and then weed through images, delete and classify them into groups for building deep learning image datasets (based on crawler and tkinter)
Apache License 2.0
133 stars 25 forks source link

Specify number of images to be downloaded #7

Closed tomasn4a closed 4 years ago

tomasn4a commented 5 years ago

Thanks for the great tool! Is there any way we can specify how many images we need to download for each class?

cwerner commented 5 years ago

Sorry for the delay...

You can specify how many images you want in total (with the -m flag, max. value is 1000). But I could add a new column for the config file if you want a bunch of classes with differing amounts?

tomasn4a commented 5 years ago

No worries, thanks for the reply. I tried using the -m flag but it didn't seem to work, it ended up pulling a different number of images per class, all of them far greater than the -m flag value.

cwerner commented 5 years ago

Hm. I'll have a look when I pull a new dataset. Did you use multiple sources ('ALL')? I sometimes get funny results depending on how many results individual crawlers return...

tomasn4a commented 5 years ago

Aaah, that might be it, yeah I was using multiple sources. Let me try again specifying a single crawler.

tomasn4a commented 5 years ago

The -m flag seems to be working OK on single crawlers,

cwerner commented 5 years ago

Ok. Have to think about how one would make this work over multiple crawlers... Feel free to contribute a PR if you come up with something ;-)

tomasn4a commented 5 years ago

Thanks very much! Will think about it as well.