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 size #9

Closed
shiomi326 opened this issue Aug 20, 2024 · 3 comments
Closed

Change input size #9

shiomi326 opened this issue Aug 20, 2024 · 3 comments
Labels
duplicate This issue or pull request already exists

Comments

@shiomi326
Copy link

Hi Thanks for your great repo.
I want to increase the input size. Like 512. Where do I need to change?

I know that I need to change arguments.

--resize 288
--image 288

But you set specific size in

def distribution_judge(img, name):

      img_ = cv2.resize(img, (289, 289))

So I need to change that or this methods need to use 288 size?
Thanks.

@cqylunlun cqylunlun added question Further information is requested duplicate This issue or pull request already exists and removed question Further information is requested labels Aug 21, 2024
@cqylunlun
Copy link
Owner

Thank you for your recognition. If you want to increase the input size to 512x512, you only need to modify arguments as follows:

--resize 512
--imagesize 512

Since distribution_judge does not affect the preprocessing of the training images, there is no need for any changes. For the purpose of this function or the selection of different variants, please refer to #6-1. Additionally, if your images are not square-shaped and you wish to output results in the original dimensions, you can refer to #6-2.

@shiomi326
Copy link
Author

Thanks for the detailed description and quick response.
I will give that a try!

@shiomi326
Copy link
Author

It worked fine. Thank you @cqylunlun

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants