This repository has been archived by the owner on Oct 31, 2023. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Wrapper
In cases when multiple datasets are combined to train the network, we may end up doing a lot of extra work finding out which index refers to which class (e.g. training on CityScapes with keeping the ROI heads from a COCO pre-training as in #259).
When multiple dataset are provided in a config file, the dataset builder checks if the datasets belong to different classes, and if possible it will match the 2nd, 3rd ... nth dataset's categories to the 1st dataset's in such a way that the corresponding class indices will be identical to the 1st dataset.
Instances belonging to classes that were left unmatched by this process are discarded on the fly.
The dataset comes with a pretty printing
__str__
that helps debugging.Example output