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

How to evaluate TBPP on arbitrary sized input without resize? #10

Open
Juwon-Suk opened this issue Mar 15, 2019 · 2 comments
Open

How to evaluate TBPP on arbitrary sized input without resize? #10

Juwon-Suk opened this issue Mar 15, 2019 · 2 comments

Comments

@Juwon-Suk
Copy link

Can I evaluate on arbitrary sized input? is there a way?

Model seems to return error when I change

Input in the TBPP model to None sized array

@mvoelk
Copy link
Owner

mvoelk commented Mar 23, 2019

The architecture is fully convolutional. Therefore, it should not be a problem to scale the input up in powers of 2 and use the provided weights. If you do so, you have to recompute the geometry related to the prior boxes. The easiest way to do this is to creating a new instance of the PriorUtility. If you want to scale down the model input by powers of 2, you have to remove appropriated many layers and prediction paths from the end of the architecture. In general, an arbitrary input size requires changing the architecture and training the model.

You can always resize your image to the models input size of 512x512 and scale the predicted bounding boxes back to the original image size. Also, consider padding the image to maintain an aspect ratio that is appropriate to the features learned from the training data.

@Juwon-Suk
Copy link
Author

@mvoelk Thank you 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