cwerner/fastclass

Specify number of images to be downloaded

Closed this issue · 7 comments

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

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?

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.

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...

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

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

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 ;-)

Thanks very much! Will think about it as well.