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

Fixed issue with padding on CI #5875

Merged
merged 4 commits into from
Apr 26, 2022
Merged

Fixed issue with padding on CI #5875

merged 4 commits into from
Apr 26, 2022

Conversation

vfdev-5
Copy link
Collaborator

@vfdev-5 vfdev-5 commented Apr 25, 2022

Related to #5873

  • Fixing issue with padding

@vfdev-5 vfdev-5 marked this pull request as ready for review April 25, 2022 10:49
@vfdev-5 vfdev-5 requested a review from datumbox April 25, 2022 12:33
Copy link
Contributor

@datumbox datumbox left a comment

Choose a reason for hiding this comment

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

@vfdev-5 I have undone your skipping of the ColourJitter tests. I believe the issue was fixed. by reverting the upstream PR in question.

I think this should fix the issue, let's wait for the CI results and if green we can merge.

if padding_mode in ("reflect", "replicate"):
img = torch_pad(img, p, mode=padding_mode)
else:
img = torch_pad(img, p, mode=padding_mode, value=float(fill))
Copy link
Contributor

Choose a reason for hiding this comment

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

There is a PR that resolves the accidental BC break at pytorch/pytorch#76307

It's not merged yet but we can go ahead and adopt this approach in TorchVision to avoid it regardless.

@datumbox
Copy link
Contributor

I'm merging this to fix the breakages from the previous nightly. Thanks for the contribution @vfdev-5

@datumbox datumbox merged commit cc53cd0 into pytorch:main Apr 26, 2022
@datumbox datumbox added dependency issue other if you have no clue or if you will manually handle the PR in the release notes labels Apr 26, 2022
@vfdev-5 vfdev-5 deleted the fix-pad-ci branch April 26, 2022 13:15
facebook-github-bot pushed a commit that referenced this pull request May 6, 2022
Summary:
* Fixed issue with padding on CI

* Disabled failing tests with color_jitter

* Remove Jitter workaround

Reviewed By: jdsgomes, NicolasHug

Differential Revision: D36095701

fbshipit-source-id: 433b74ba300044a7a95760f3eff0e0e267d8a67f

Co-authored-by: Vasilis Vryniotis <datumbox@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla signed dependency issue module: ci other if you have no clue or if you will manually handle the PR in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants