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 Pytorch HardSwish assertion in unit test #1294

Merged
merged 6 commits into from
Feb 16, 2022

Conversation

MengzhangLI
Copy link
Contributor

In latest MMCV==1.4.5, it uses PyTorch official implementation of HardSwish when Pytorch > 1.6.

Related PR: open-mmlab/mmcv#1709.

We would add more flexible assertion in MMSegmentation unit test to pass CI.

@MengzhangLI MengzhangLI self-assigned this Feb 16, 2022
@MeowZheng MeowZheng changed the title [Fix] Add original HardSwish assertion in unit test [Fix] Add Pytorch HardSwish assertion in unit test Feb 16, 2022
@codecov
Copy link

codecov bot commented Feb 16, 2022

Codecov Report

Merging #1294 (dcf7197) into master (346f70d) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1294   +/-   ##
=======================================
  Coverage   90.22%   90.22%           
=======================================
  Files         130      130           
  Lines        7560     7560           
  Branches     1258     1258           
=======================================
  Hits         6821     6821           
  Misses        531      531           
  Partials      208      208           
Flag Coverage Δ
unittests 90.22% <ø> (ø)

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


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 92068b4...dcf7197. Read the comment docs.

@MeowZheng MeowZheng merged commit 0e3d1b8 into open-mmlab:master Feb 16, 2022
bowenroom pushed a commit to bowenroom/mmsegmentation that referenced this pull request Feb 25, 2022
* assert original HardSwish when PyTorch > 1.6 in unit test

* assert original HardSwish when PyTorch > 1.6 in unit test

* assert original HardSwish when PyTorch > 1.6 in unit test

* assert original HardSwish when PyTorch > 1.6 in unit test

* assert original HardSwish when PyTorch > 1.6 in unit test

* assert original HardSwish when PyTorch > 1.6 in unit test
@MengzhangLI MengzhangLI deleted the fix_unittest_HSwish branch February 28, 2022 12:30
aravind-h-v pushed a commit to aravind-h-v/mmsegmentation that referenced this pull request Mar 27, 2023
* vq diffusion classifier free sampling

* correct

* uP

Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
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