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

Slice and keep dim for easy deployment of vit #1642

Merged
merged 1 commit into from
Jun 7, 2022
Merged

Conversation

RunningLeon
Copy link
Collaborator

Motivation

Operations on weight is not good for tracing and exporting to ONNX.

Modification

Use slice to keep dim in mmseg/models/backbones/vit.py

BC-breaking (Optional)

None

Use cases (Optional)

If this PR introduces a new feature, it is better to list some use cases here, and update the documentation.

Checklist

  1. Pre-commit or other linting tools are used to fix the potential lint issues.
  2. The modification is covered by complete unit tests. If not, please add more unit test to ensure the correctness.
  3. If the modification has potential influence on downstream projects, this PR should be tested with downstream projects, like MMDet or MMDet3D.
  4. The documentation has been modified accordingly, like docstring or example tutorials.

@RunningLeon RunningLeon changed the title Slice and keep dim for easy deployment of segmenter Slice and keep dim for easy deployment of vit Jun 6, 2022
@codecov
Copy link

codecov bot commented Jun 6, 2022

Codecov Report

Merging #1642 (056a906) into master (46326f6) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #1642      +/-   ##
==========================================
- Coverage   90.25%   90.25%   -0.01%     
==========================================
  Files         142      142              
  Lines        8477     8476       -1     
  Branches     1428     1428              
==========================================
- Hits         7651     7650       -1     
  Misses        586      586              
  Partials      240      240              
Flag Coverage Δ
unittests 90.25% <100.00%> (-0.01%) ⬇️

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

Impacted Files Coverage Δ
mmseg/models/backbones/vit.py 90.85% <100.00%> (-0.06%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 46326f6...056a906. Read the comment docs.

@MeowZheng MeowZheng merged commit 60655de into master Jun 7, 2022
@MeowZheng MeowZheng deleted the deploy_segmenter branch June 7, 2022 10:00
ZhimingNJ pushed a commit to AetrexTechnology/mmsegmentation that referenced this pull request Jun 29, 2022
aravind-h-v pushed a commit to aravind-h-v/mmsegmentation that referenced this pull request Mar 27, 2023
…pen-mmlab#1827)

* add add_noise to scheduling-sde-ve

* run Black formater
huajiangjiangLi pushed a commit to pytorchuser/HDB-Seg that referenced this pull request Apr 12, 2023
wjkim81 pushed a commit to wjkim81/mmsegmentation that referenced this pull request Dec 3, 2023
* minor modifications to installation.md

* refine installation and faq

* add zh_cn/installation.md

Co-authored-by: liqikai <tiger19971215@sjtu.edu.cn>
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.

3 participants