[Bug Fix] Fix TTA resize scale#334
Merged
Merged
Conversation
xvjiarui
reviewed
Jan 7, 2021
| if self.img_scale is None: | ||
| scale, scale_idx = self.random_sample_ratio( | ||
| results['img'].shape[:2], self.ratio_range) | ||
| results['img'].shape[:2:-1], self.ratio_range) |
Collaborator
There was a problem hiding this comment.
Suggested change
| results['img'].shape[:2:-1], self.ratio_range) | |
| h, w = results['img'].shape[:2] | |
| (w, h), self.ratio_range) |
is more intuitive.
Codecov Report
@@ Coverage Diff @@
## master #334 +/- ##
=======================================
Coverage 86.47% 86.47%
=======================================
Files 95 95
Lines 4761 4762 +1
Branches 765 765
=======================================
+ Hits 4117 4118 +1
Misses 499 499
Partials 145 145
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
xvjiarui
approved these changes
Jan 7, 2021
bowenroom
pushed a commit
to bowenroom/mmsegmentation
that referenced
this pull request
Feb 25, 2022
* fix tta bug * modify as suggested * fix test_tta bug
aravind-h-v
pushed a commit
to aravind-h-v/mmsegmentation
that referenced
this pull request
Mar 27, 2023
…return tuples (open-mmlab#334) * add outputs for models * add for pipelines * finish schedulers * better naming * adapt tests as well * replace dict access with . access * make schedulers works * finish * correct readme * make bcp compatible * up * small fix * finish * more fixes * more fixes * Apply suggestions from code review Co-authored-by: Suraj Patil <surajp815@gmail.com> Co-authored-by: Pedro Cuenca <pedro@huggingface.co> * Update src/diffusers/models/vae.py Co-authored-by: Pedro Cuenca <pedro@huggingface.co> * Adapt model outputs * Apply more suggestions * finish examples * correct Co-authored-by: Suraj Patil <surajp815@gmail.com> Co-authored-by: Pedro Cuenca <pedro@huggingface.co>
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.
No description provided.