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

Change input image size #11

Open
prash-p opened this issue Dec 1, 2018 · 3 comments
Open

Change input image size #11

prash-p opened this issue Dec 1, 2018 · 3 comments

Comments

@prash-p
Copy link

prash-p commented Dec 1, 2018

Changing IMAGE_HEIGHT and IMAGE_WIDTH in model.py to anything other than 256 x 256 gives rise to errors. How can the model be changed to adapt to any input image size (not necessarily square)?

@nickkimer
Copy link

@prash-p have you experimented with images of varying input size? Would like to know what type of results you've been able to achieve

@prash-p
Copy link
Author

prash-p commented Jan 16, 2019

When I tested in December, no other image size would work except 256 x 256, even when I changed the IMAGE_HEIGHT and IMAGE_WIDTH parameters. Would appreciate if @AlamiMejjati could direct me towards adjusting the parameters correctly for variable image size input

@prash-p
Copy link
Author

prash-p commented Jan 30, 2019

@nickkimer went back to this repo and realised that you also need to change line 30 in main.py:
self._size_before_crop
to your desired size. It has to be the same size or larger than IMAGE_HEIGHT and IMAGE_WIDTH from models.py
I'm experimenting to see what the results look like.

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

No branches or pull requests

2 participants