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

Negative padding for functional_pil #2381 #2744

Merged
merged 5 commits into from
Oct 3, 2020

Conversation

jamt9000
Copy link
Contributor

@jamt9000 jamt9000 commented Oct 2, 2020

Fix as discussed in #2381 (tests to follow)

@codecov
Copy link

codecov bot commented Oct 2, 2020

Codecov Report

Merging #2744 into master will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2744      +/-   ##
==========================================
+ Coverage   73.05%   73.07%   +0.01%     
==========================================
  Files          96       96              
  Lines        8298     8304       +6     
  Branches     1291     1292       +1     
==========================================
+ Hits         6062     6068       +6     
  Misses       1838     1838              
  Partials      398      398              
Impacted Files Coverage Δ
torchvision/transforms/functional_pil.py 66.19% <100.00%> (+0.97%) ⬆️

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 a9a8220...2d67fd9. Read the comment docs.

Copy link
Collaborator

@vfdev-5 vfdev-5 left a comment

Choose a reason for hiding this comment

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

@jamt9000 thanks for the PR ! Looks good.
I left a comment to change the test.

test/test_transforms.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@vfdev-5 vfdev-5 left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks @jamt9000

jamt9000 added a commit to jamt9000/vision that referenced this pull request Oct 3, 2020
Along with pytorch#2744 this will make negative padding
uniform between PIL and Tensor pytorch#2381
@vfdev-5 vfdev-5 merged commit 588f7ae into pytorch:master Oct 3, 2020
vfdev-5 added a commit that referenced this pull request Oct 5, 2020
* Negative padding for functional_tensor symmetric

Along with #2744 this will make negative padding
uniform between PIL and Tensor #2381

* Enable tests for negative symmetric pad with tensor

Co-authored-by: vfdev <[email protected]>
bryant1410 pushed a commit to bryant1410/vision-1 that referenced this pull request Nov 22, 2020
* Negative padding for functional_pil pytorch#2381

* Tests for PIL negative padding pytorch#2381

* Move PIL vs tensor test inside test_pad

* Adapt test_pad from test_transforms_tensor.py

Co-authored-by: vfdev <[email protected]>
bryant1410 pushed a commit to bryant1410/vision-1 that referenced this pull request Nov 22, 2020
* Negative padding for functional_tensor symmetric

Along with pytorch#2744 this will make negative padding
uniform between PIL and Tensor pytorch#2381

* Enable tests for negative symmetric pad with tensor

Co-authored-by: vfdev <[email protected]>
vfdev-5 added a commit to Quansight/vision that referenced this pull request Dec 4, 2020
* Negative padding for functional_pil pytorch#2381

* Tests for PIL negative padding pytorch#2381

* Move PIL vs tensor test inside test_pad

* Adapt test_pad from test_transforms_tensor.py

Co-authored-by: vfdev <[email protected]>
vfdev-5 added a commit to Quansight/vision that referenced this pull request Dec 4, 2020
* Negative padding for functional_tensor symmetric

Along with pytorch#2744 this will make negative padding
uniform between PIL and Tensor pytorch#2381

* Enable tests for negative symmetric pad with tensor

Co-authored-by: vfdev <[email protected]>
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.

2 participants