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

Preprocessing with respect to aspect ratio #36

Open
hma02 opened this issue Aug 9, 2017 · 0 comments
Open

Preprocessing with respect to aspect ratio #36

hma02 opened this issue Aug 9, 2017 · 0 comments

Comments

@hma02
Copy link
Contributor

hma02 commented Aug 9, 2017

As mentioned in #19 here. I think we need to do the preprocessing with respect to the aspect ratio of the image like pytorch is doing here. Instead of simply do

img = scipy.misc.imresize(img, target_shape)

as done here.

This will, however, raise a problem when storing the resulting numpy ndarrays into hickle files. The shapes of the numpy ndarrays will be irregular because the images are of different widths and heights.

This issue is opened for implementing this enhancement feature. If the aspect ratio is respected, the training quality is expected to be improved. Any suggestions are welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant