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

redundant inference in the sliding window of test_dota #146

Open
lizeshengh opened this issue Mar 2, 2022 · 1 comment
Open

redundant inference in the sliding window of test_dota #146

lizeshengh opened this issue Mar 2, 2022 · 1 comment

Comments

@lizeshengh
Copy link

In the sliding window inference of test_dota, the loops do not stop when the sliding window reach the boundary of the original image. It causes extra inference and slow down the performance. For example, an 800x800 image with h_len=w_len=400 and h_overlap=w_overlap=200 only need 9 sub images for inference. However, in the current code, it loops and infers 16 times.

@lizeshengh
Copy link
Author

Changing the stop conditions of those two for-loops in the function "worker()", or using a set to record (hh_, ww_) pairs that has been used can solve the problem.

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

1 participant