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

General information regarding input image #4484

Open
ttdd11 opened this issue Dec 9, 2019 · 5 comments
Open

General information regarding input image #4484

ttdd11 opened this issue Dec 9, 2019 · 5 comments

Comments

@ttdd11
Copy link

ttdd11 commented Dec 9, 2019

Your work is amazing.

In terms of the input image, if we are using 608x608 pretrained weights, do you recommend we resize the image to 608x608, or pad and resize to 608 to 608 for better results?

From the .dll (that I've used previously) I don't recall that there was a pad before the resize. What do you think?

@AlexeyAB
Copy link
Owner

AlexeyAB commented Dec 9, 2019

In terms of the input image, if we are using 608x608 pretrained weights, do you recommend we resize the image to 608x608, or pad and resize to 608 to 608 for better results?

No.

Any image will be automatically resized to the network size.

@ttdd11
Copy link
Author

ttdd11 commented Dec 9, 2019

I'm using tensorRT where we have to manage the input more comprehensively.

The problem I see is that calling a resize on the image with larger aspect ratios leads to some stretching and distortion.

In that case do you recommend padding before resizing to avoid this?

@AlexeyAB
Copy link
Owner

AlexeyAB commented Dec 9, 2019

It depends on which approach of resizing did you use for training: #232 (comment)

@ttdd11
Copy link
Author

ttdd11 commented Dec 9, 2019

Just using the pretrained weights from your site!

@AlexeyAB
Copy link
Owner

AlexeyAB commented Dec 9, 2019

So it also depends on your images.
If aspect ratio ~ 1:1 then just use resizing.
If more than 1:2 or 2:1 than use letter_box (resizing with padding with keeping aspect ratio).

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