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

Input an image of any size #1

Open
hanhan0521 opened this issue Apr 16, 2024 · 2 comments
Open

Input an image of any size #1

hanhan0521 opened this issue Apr 16, 2024 · 2 comments

Comments

@hanhan0521
Copy link

I am very interested in your work. But I have a question, can the entered image only say 512×512. I want to import an image of any size, what do I do?

@hanhan0521 hanhan0521 changed the title input an image of any size Input an image of any size Apr 16, 2024
@yuvraj108c
Copy link
Owner

hi, you have to resize the image before passing it into the model! As mentioned, this repo doesn't do any pre/post processing, only inference.

@yuvraj108c
Copy link
Owner

you can also export a onnx with different sizes using the export_onnx.py, then build the tensorrt engine from it

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