Add a range of features for augmentation and training, and fix a few bugs#3263
Open
chris-rapson-hectre wants to merge 34 commits into
Open
Conversation
For PR to mmpose
Comment on lines
+1402
to
+1403
| else: | ||
| results['img_mask'] = np.ascontiguousarray(np.rot90(results['img_mask'], k=k)) |
| self.backbone_stages = backbone_stages | ||
|
|
||
| def before_run(self, runner: Runner): | ||
| model = runner.model |
There was a problem hiding this comment.
These lines were added in other repo:
Suggested change
| model = runner.model | |
| assert hasattr(runner, 'epoch'), 'Runner must have an epoch attribute' | |
| assert hasattr(runner.model, 'backbone'), 'Model must have a backbone attribute' | |
| model = runner.model |
mock logger argument to Runner Co-authored-by: chanul-hectre <chanul@hectre.com>
Move handling of DistributedDataParallel wrapper earlier Co-authored-by: chanul-hectre <chanul@hectre.com>
set epoch=0 for unfreezing tests Co-authored-by: chanul-hectre <chanul@hectre.com>
set epoch=0 for unfreezing tests Co-authored-by: chanul-hectre <chanul@hectre.com>
* indentation for else block * check runner and model attributes, fail early with err msg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Improve augmentation and training for our model, and hopefully others' models as well.
Modification
BC-breaking (Optional)
No
Use cases (Optional)
pinvinstead ofinvmeans the typical case is unchanged and avoids crashing on a pathological edge case.Checklist
Before PR:
The only documentation in this PR is as docstrings. Please let me know if you want more.
After PR: