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

[Feature] Support InShop Dataset (Image Retrieval). #1019

Merged
merged 10 commits into from
Jan 18, 2023

Conversation

zzc98
Copy link
Contributor

@zzc98 zzc98 commented Sep 8, 2022

Motivation

Support InShop dataset .

Example

>>> from mmcls.data import InShop

>>> data_root = 'data/inshop'
>>> inshop_train_cfg = dict(data_root='data/inshop', split='train')
>>> inshop_train = InShop(**inshop_train_cfg)
>>> len(inshop_train)
25882
>>> inshop_query_cfg = dict(data_root='data/inshop', split='query')
>>> inshop_query = InShop(**inshop_query_cfg)
>>> len(inshop_query)
14218
>>> inshop_gallery_cfg = dict(data_root='data/inshop', split='gallery')
>>> inshop_gallery = InShop(**inshop_gallery_cfg)
>>> len(inshop_gallery)
12612

Checklist

Before PR:

  • Pre-commit or other linting tools are used to fix the potential lint issues.
  • Bug fixes are fully covered by unit tests, the case that causes the bug should be added in the unit tests.
  • The modification is covered by complete unit tests. If not, please add more unit test to ensure the correctness.
  • The documentation has been modified accordingly, like docstring or example tutorials.

After PR:

  • If the modification has potential influence on downstream or other related projects, this PR should be tested with those projects, like MMDet or MMSeg.
  • CLA has been signed and all committers have signed the CLA in this PR.

@codecov
Copy link

codecov bot commented Sep 23, 2022

Codecov Report

Base: 0.02% // Head: 86.64% // Increases project coverage by +86.62% 🎉

Coverage data is based on head (e7b74ca) compared to base (b8b31e9).
Patch has no changes to coverable lines.

Additional details and impacted files
@@             Coverage Diff              @@
##           dev-1.x    #1019       +/-   ##
============================================
+ Coverage     0.02%   86.64%   +86.62%     
============================================
  Files          121      166       +45     
  Lines         8217    13440     +5223     
  Branches      1368     2136      +768     
============================================
+ Hits             2    11645    +11643     
+ Misses        8215     1448     -6767     
- Partials         0      347      +347     
Flag Coverage Δ
unittests 86.64% <ø> (+86.62%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
mmcls/datasets/transforms/compose.py
mmcls/engine/hooks/switch_recipe_hook.py 88.46% <0.00%> (ø)
mmcls/evaluation/metrics/multi_task.py 94.59% <0.00%> (ø)
mmcls/models/backbones/deit3.py 94.52% <0.00%> (ø)
mmcls/models/retrievers/base.py 100.00% <0.00%> (ø)
mmcls/structures/multi_task_data_sample.py 100.00% <0.00%> (ø)
mmcls/models/backbones/mvit.py 92.46% <0.00%> (ø)
mmcls/models/heads/multi_task_head.py 96.87% <0.00%> (ø)
mmcls/models/backbones/davit.py 84.94% <0.00%> (ø)
mmcls/models/tta/score_tta.py 100.00% <0.00%> (ø)
... and 157 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Collaborator

@Ezra-Yu Ezra-Yu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@mzr1996 mzr1996 merged commit 7e4502b into open-mmlab:dev-1.x Jan 18, 2023
@zzc98 zzc98 deleted the add-inshop branch May 5, 2023 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants