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 specify --img-size during inferencing #178

Closed
fjremnav opened this issue Jun 30, 2022 · 3 comments · Fixed by #187
Closed

how to specify --img-size during inferencing #178

fjremnav opened this issue Jun 30, 2022 · 3 comments · Fixed by #187

Comments

@fjremnav
Copy link

I tried --img-size 1920 1080, or --img-size 1920,1080 to infer.py and both don't work.
How to specify --img-size with w and h in infer.py?

Thanks,

@fjremnav
Copy link
Author

My image is 960x540 and I like to use this size without rescaling during inferencing if possible.
If this is not possible, I like to preserve aspect ratio of 960x540 if rescaling is needed during inferencing.

Thanks,

@Mobu59
Copy link

Mobu59 commented Jul 1, 2022

@fjremnav Maybe you can add "args.img_size = [1920, 1080]" in infer.py, that is adding it after line 107

@shensheng272
Copy link
Collaborator

shensheng272 commented Sep 7, 2022

Thanks for the pr.

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

Successfully merging a pull request may close this issue.

3 participants