MergingImageLabelFilesIterator and ImageLabelConfigIterator into ImageLabelFilesIterator.
I did nothing but merging the two classes. Eventually ImageLabelFilesIterator will work similarly to ImageLabelConfigIterator, except that if config_path is None, it will still work as it used to previously.
Motivation
When implementing new datasets, I realized that in lots of cases I wrote the following code:
What this PR is about
Merging
ImageLabelFilesIterator
andImageLabelConfigIterator
intoImageLabelFilesIterator
. I did nothing but merging the two classes. EventuallyImageLabelFilesIterator
will work similarly toImageLabelConfigIterator
, except that ifconfig_path
is None, it will still work as it used to previously.Motivation
When implementing new datasets, I realized that in lots of cases I wrote the following code:
So I realized that we should not have two classes for this, but just one.