Skip to content

Add scriptable transform: center_crop, five crop and ten_crop #1615

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

Merged
merged 5 commits into from
Dec 4, 2019

Conversation

PyExtreme
Copy link
Contributor

In this PR, I will add scriptable transforms #1375 for center_crop, five_crop and ten_crop along with the tests.

@PyExtreme
Copy link
Contributor Author

@fmassa , I am planning to first add all the crops with the tests and then would be requesting you for the review.

Thanks

@codecov-io
Copy link

codecov-io commented Nov 26, 2019

Codecov Report

Merging #1615 into master will increase coverage by <.01%.
The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1615      +/-   ##
==========================================
+ Coverage   65.97%   65.97%   +<.01%     
==========================================
  Files          91       91              
  Lines        7229     7262      +33     
  Branches     1095     1100       +5     
==========================================
+ Hits         4769     4791      +22     
- Misses       2153     2159       +6     
- Partials      307      312       +5
Impacted Files Coverage Δ
torchvision/transforms/functional_tensor.py 62.68% <66.66%> (+3.86%) ⬆️

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 2e8bcf8...11f1649. Read the comment docs.

@PyExtreme PyExtreme changed the title Add scriptable transform: center_crop Add scriptable transform: center_crop, five crop and ten_crop Nov 27, 2019
@PyExtreme
Copy link
Contributor Author

@fmassa , I have added transforms for center_crop, five_crop and ten_crop.

Please note that in the tests of five_crop and ten_crop, there is a mismatch between tensors. So, I have made the modifications accordingly.
Would be great if you can please review it.

Copy link
Member

@fmassa fmassa 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 a lot!

@fmassa fmassa merged commit cec7ea7 into pytorch:master Dec 4, 2019
fmassa pushed a commit to fmassa/vision-1 that referenced this pull request Jan 28, 2020
…h#1615)

* add scriptable transform: center_crop

* add test: center_crop

* add scriptable transform: five_crop

* add scriptable transform: five_crop

* add scriptable transform: fix minor issues
facebook-github-bot pushed a commit that referenced this pull request Jan 28, 2020
…#1803)

Summary:
* add scriptable transform: center_crop

* add test: center_crop

* add scriptable transform: five_crop

* add scriptable transform: five_crop

* add scriptable transform: fix minor issues
Pull Request resolved: #1803

Reviewed By: lerks

Differential Revision: D19598584

Pulled By: fmassa

fbshipit-source-id: 6cd619da2982aed00104300b9086cc8ca69ecd82
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.

3 participants