Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] Add ignore_keys in ConcatDataset #556

Merged
merged 13 commits into from
Nov 1, 2022

Conversation

BIGWangYuDong
Copy link
Contributor

Sometimes there are some unnecessary keys in dataset.metainfo, but in ConcatDataset, it is forced to set all dataset.metainfo equal. In this PR, we add an ignore_key to avoid some unnecessary keys not equal in some concat dataset.

Related PR: open-mmlab/mmdetection#8847

@BIGWangYuDong BIGWangYuDong changed the title [Fix] Fix ConcatDataset error in VOCDataset [Fix] Add ignore_keys in ConcatDataset Sep 28, 2022
@ZwwWayne ZwwWayne added this to the 0.3.0 milestone Oct 8, 2022
@ZwwWayne
Copy link
Collaborator

ZwwWayne commented Oct 9, 2022

This PR resolves #559 and open-mmlab/mmdetection#8847

@zhouzaida
Copy link
Collaborator

zhouzaida commented Oct 12, 2022

Hi @BIGWangYuDong, please merge the upstream main branch to fix the lint error. Besides, unit tests should be added to cover the modification.

@BIGWangYuDong BIGWangYuDong requested review from zhouzaida and HAOCHENYE and removed request for HAOCHENYE and zhouzaida October 18, 2022 02:23
@BIGWangYuDong BIGWangYuDong requested review from zhouzaida and HAOCHENYE and removed request for zhouzaida and HAOCHENYE October 18, 2022 02:23
@BIGWangYuDong BIGWangYuDong requested review from HAOCHENYE and removed request for zhouzaida October 19, 2022 09:28
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
@BIGWangYuDong BIGWangYuDong requested review from zhouzaida and removed request for HAOCHENYE October 26, 2022 09:41
@HAOCHENYE HAOCHENYE added the enhancement New feature or request label Oct 27, 2022
@BIGWangYuDong BIGWangYuDong requested review from HAOCHENYE and removed request for zhouzaida October 31, 2022 02:41
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
@ZwwWayne ZwwWayne merged commit 3762519 into open-mmlab:main Nov 1, 2022
ly015 pushed a commit to ly015/mmengine that referenced this pull request Nov 9, 2022
* [Fix] Fix ConcatDataset error in VOCDataset

* minor fix

* minor fix

* minor fix

* add UT

* minor fix

* minor fix

* minor fix

* Update mmengine/dataset/dataset_wrapper.py

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>

* minor fix

* Update mmengine/dataset/dataset_wrapper.py

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants