-
Notifications
You must be signed in to change notification settings - Fork 268
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 size crops #272
base: master
Are you sure you want to change the base?
Fixed size crops #272
Conversation
d683774
to
4f77868
Compare
@markusnagel Very sorry for the delay! I'll try to have a look at it by the end of the week. |
|
||
|
||
class FixedSizeCrop(SourcewiseTransformer, ExpectsAxisLabels): | ||
"""Crop images to a fixed window size. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sections in the docstring should have newlines.
There seems to be quite a lot of overlap between |
…_size_crops Conflicts: fuel/transformers/image.py tests/transformers/test_image.py
The FixedSizeCrop transformer will afaik not benefit from using
rather than first constructing arrays Therefore, the FixedSizeCrop transformer currently does not call |
I added a transformer that performs a fixed size crop. It is similar to the already existing RandomFixedSizeCrop transformer. One key difference is that the user can specify the crop with a relative location instead of taking a random crop. This is useful for example for predicting on imagenet where often a center crop of the image is used or a center crop plus the 4 corner crops.