🔨Fix the visualization issue of inference image
Description
-
Fixes #289
-
Fix the visualization issue when the input image is smaller than the canvas of inference result
-
Instead of overlay the inference result(Confidence Score) on the prediction image, make the inference result as a separate line above the prediction image
-
The demonstration is as below:
-
input image size = 1443 * 1443

-
input image size = 900 * 900

-
input image size = 41 * 41

Changes
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] This change requires a documentation update
Checklist
- [x] My code follows the pre-commit style and check guidelines of this project.
- [x] I have performed a self-review of my code
- [x] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my feature works
- [x] New and existing tests pass locally with my changes
@samet-akcay Could you review this PR? thanks
@ABoLei thank you for your PR. There has been some changes in the visualizer after this PR. Your PR would have some conflicts due to these changes? Can you check the development branch to see if the issue you reported still the case? If yes, we would update your PR based on the recent changes.
How does this sound?
@ABoLei thank you for your PR. There has been some changes in the visualizer after this PR. Your PR would have some conflicts due to these changes? Can you check the development branch to see if the issue you reported still the case? If yes, we would update your PR based on the recent changes.
How does this sound?
Sure thing, I will check it later on,
@samet-akcay I fixed the conflicts and remain the changes I made, please have a look, thanks
This issue is no longer present with the latest version of the visualizer.