You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The CenterCrop image preprocessor is missed in KotlinDL.
It should crop the given image at the center. If the image size is smaller than the output size along any edge, the image is padded with 0 and then center cropped.
The main question is: should we keep both Cropping and CenterCrop ops, or should it be merged in one operation?
The desired PR addressing this issue should include:
Implementation (you can take inspiration from the implementation of Cropping as reference)
Documentation
JUnit tests in dataset module
An example with usage of this image preprocessor
P.S. If you want to take this ticket, please leave the comment below
P.P.S Read the Contributing Guidelines.
The CenterCrop image preprocessor is missed in KotlinDL.
It should crop the given image at the center. If the image size is smaller than the output size along any edge, the image is padded with 0 and then center cropped.
The main question is: should we keep both Cropping and CenterCrop ops, or should it be merged in one operation?
The desired PR addressing this issue should include:
Cropping
as reference)dataset
moduleP.S. If you want to take this ticket, please leave the comment below
P.P.S Read the Contributing Guidelines.
The reference implementation could be taken from torchvision.transforms
The text was updated successfully, but these errors were encountered: