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

SImplified chained-comparison. #265

Merged
merged 3 commits into from
Nov 11, 2020
Merged

SImplified chained-comparison. #265

merged 3 commits into from
Nov 11, 2020

Conversation

yaochaorui
Copy link
Contributor

@yaochaorui yaochaorui commented Nov 10, 2020

Fix #245

@codecov
Copy link

codecov bot commented Nov 10, 2020

Codecov Report

Merging #265 (a2b1937) into master (28256fe) will increase coverage by 0.05%.
The diff coverage is 55.88%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #265      +/-   ##
==========================================
+ Coverage   83.03%   83.09%   +0.05%     
==========================================
  Files         112      112              
  Lines        6448     6441       -7     
  Branches     1029     1029              
==========================================
- Hits         5354     5352       -2     
+ Misses        901      896       -5     
  Partials      193      193              
Flag Coverage Δ
unittests 83.06% <55.88%> (+0.05%) ⬆️

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

Impacted Files Coverage Δ
mmpose/apis/test.py 27.90% <0.00%> (ø)
mmpose/core/evaluation/eval_hooks.py 66.66% <0.00%> (ø)
...asets/datasets/bottom_up/bottom_up_base_dataset.py 82.50% <0.00%> (ø)
mmpose/datasets/pipelines/bottom_up_transform.py 89.95% <0.00%> (ø)
mmpose/models/backbones/base_backbone.py 100.00% <ø> (+6.66%) ⬆️
mmpose/models/backbones/cpm.py 90.19% <ø> (-0.19%) ⬇️
mmpose/models/backbones/hourglass.py 92.85% <ø> (-0.11%) ⬇️
mmpose/models/detectors/base.py 60.41% <ø> (+4.64%) ⬆️
mmpose/models/losses/mesh_loss.py 97.65% <0.00%> (ø)
mmpose/models/losses/multi_loss_factory.py 100.00% <ø> (ø)
... and 14 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 28256fe...38c9f10. Read the comment docs.

if (pt[2] > 0 and x >= 0 and y >= 0 and x < self.output_res
and y < self.output_res):
if (pt[2] > 0 and self.output_res > y >= 0
and self.output_res > x >= 0):
Copy link
Contributor

Choose a reason for hiding this comment

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

< is more natural, 0 <= x < self.output_res

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Modified.

@innerlee innerlee merged commit 228a6c0 into master Nov 11, 2020
@innerlee innerlee deleted the ycr/R1716 branch November 12, 2020 12:31
wusize pushed a commit that referenced this pull request Nov 13, 2020
* SImplified chained-comparison.

* Modified following mentor's convention.

* Pre-commit.
wusize pushed a commit that referenced this pull request Nov 13, 2020
* SImplified chained-comparison.

* Modified following mentor's convention.

* Pre-commit.
shuheilocale pushed a commit to shuheilocale/mmpose that referenced this pull request May 6, 2023
* SImplified chained-comparison.

* Modified following mentor's convention.

* Pre-commit.
HAOCHENYE added a commit to HAOCHENYE/mmpose that referenced this pull request Jun 27, 2023
* Support multiple optimizers

* minor refinement

* improve unit tests

* minor fix

* Update unit tests for resuming or saving ckpt for multiple optimizers

* refine docstring

* refine docstring

* fix typo

* update docstring

* refactor the logic to build multiple optimizers

* resolve comments

* ParamSchedulers spports multiple optimizers

* add optimizer_wrapper

* fix comment and docstirng

* fix unit test

* add unit test

* refine docstring

* RuntimeInfoHook supports printing multi learning rates

* resolve comments

* add optimizer_wrapper

* fix mypy

* fix lint

* fix OptimizerWrapperDict docstring and add unit test

* rename OptimizerWrapper to OptimWrapper, OptimWrapperDict inherit OptimWrapper, and fix as comment

* Fix AmpOptimizerWrapper

* rename build_optmizer_wrapper to build_optim_wrapper

* refine optimizer wrapper

* fix AmpOptimWrapper.step, docstring

* resolve confict

* rename DefaultOptimConstructor

* fix as comment

* rename clig grad auguments

* refactor optim_wrapper config

* fix docstring of DefaultOptimWrapperConstructor

fix docstring of DefaultOptimWrapperConstructor

* add get_lr method to OptimWrapper and OptimWrapperDict

* skip some amp unit test

* fix unit test

* fix get_lr, get_momentum docstring

* refactor get_lr, get_momentum, fix as comment

* fix error message

Co-authored-by: zhouzaida <zhouzaida@163.com>
ajgrafton pushed a commit to ajgrafton/mmpose that referenced this pull request Mar 6, 2024
* SImplified chained-comparison.

* Modified following mentor's convention.

* Pre-commit.
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.

Pylint: R1716
2 participants