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

Minimum size for training #29

Open
ramonhollands opened this issue Jun 2, 2023 · 2 comments
Open

Minimum size for training #29

ramonhollands opened this issue Jun 2, 2023 · 2 comments

Comments

@ramonhollands
Copy link

Hi Shihan Liu,

What is the reason there is a minimum input size for the model? In my experiments 192x192.

What would be needed to adapt the model to handle smaller sizes, eg 96x96?

Best regards,
Ramon

@LSH9832
Copy link
Owner

LSH9832 commented Dec 6, 2023

see params/train/train_settings.yaml

input_size: [672, 672]   # image input size for model
multiscale_range: 5      # real_input_size = input_size + randint(-multiscale_range, multiscale_range) * 32

so if you want to use a very small size, just set multiscale_range to zero

@verrassendhollands
Copy link

verrassendhollands commented Apr 22, 2024

Thanks for your answer!

I fixed it by preventing random_resize (trainer.py) on small inputs, but this is the improved way.

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

3 participants