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

img_size #29

Open
nhathoang0110 opened this issue Jan 18, 2021 · 2 comments
Open

img_size #29

nhathoang0110 opened this issue Jan 18, 2021 · 2 comments

Comments

@nhathoang0110
Copy link

How do I choose img_size for the model? Thanks you

@ZhengPeng7
Copy link

Search the variable keep_res in dataset.py and you will know how to do it.

@nhathoang0110
Copy link
Author

keep_res = False #
if keep_res:
input_h = (height | 31) + 1
input_w = (width | 31) + 1
s = np.array([input_w, input_h], dtype=np.float32)
else:
s = max(img.shape[0], img.shape[1]) * 1.0
input_h, input_w = 512, 512

Did I just change input_h and input_w in the last command line?
Thanks very much

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