generated from ultralytics/template
-
-
Notifications
You must be signed in to change notification settings - Fork 2
feat: ✨ Add rectangular inference support rect and speed optimization for pre-processors and post-processors
#59
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
Open
onuralpszr
wants to merge
15
commits into
main
Choose a base branch
from
feat/rect
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Onuralp SEZER <[email protected]>
Signed-off-by: Onuralp SEZER <[email protected]>
…ments - Added `#[allow(clippy::struct_excessive_bools)]` to `InferenceConfig` to suppress excessive bool warnings. - Removed unnecessary logging initialization code in `init_logging`. - Suppressed unnecessary wraps in the `main` function. - Enhanced `YOLOModel` with additional Clippy lints for better code quality. - Optimized image processing in `YOLOModel` by reducing unnecessary allocations and improving data handling. - Refactored post-processing to use zero-copy techniques and SIMD for faster detection extraction. - Introduced a new zero-copy preprocessing function to minimize memory allocations during image processing. - Improved letterbox resizing and bilinear interpolation with SIMD optimizations and LRU caching for X coordinate lookups. - Cleaned up deprecated code and comments for better readability and maintainability. Signed-off-by: Onuralp SEZER <[email protected]>
Signed-off-by: Onuralp SEZER <[email protected]>
Signed-off-by: Onuralp SEZER <[email protected]>
Signed-off-by: Onuralp SEZER <[email protected]>
…tests Signed-off-by: Onuralp SEZER <[email protected]>
Signed-off-by: Onuralp SEZER <[email protected]>
Signed-off-by: Onuralp SEZER <[email protected]>
Signed-off-by: Onuralp SEZER <[email protected]>
rect rect and speed optimization for pre-processors and post-processors
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
…ze, adjust IoU threshold, and improve download image path handling Signed-off-by: Onuralp SEZER <[email protected]>
…rgo.toml Signed-off-by: Onuralp SEZER <[email protected]>
Signed-off-by: Onuralp SEZER <[email protected]>
…onfig example Signed-off-by: Onuralp SEZER <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces several significant improvements and new features to the Ultralytics inference Rust library, focusing on enhanced performance, usability, and expanded functionality. Major highlights include support for rectangular and batch inference, improved hardware acceleration options, expanded CLI arguments, and optimizations for preprocessing and post-processing. The documentation and example outputs have also been updated to reflect these changes.
New Features and CLI Enhancements:
--rect) and batch inference (--batch) support, both enabled/configurable via CLI and passed through the inference pipeline. [1] [2] [3]Performance and Preprocessing Optimizations:
widecrate and introduced an LRU cache for preprocessing LUTs for faster image handling. [1] [2].cargo/config.tomlto simplify shared library loading.Batch Processing and Pipeline Improvements:
Documentation and Example Updates:
README.mdwith new CLI options, example commands, output samples, and a detailed breakdown of the codebase structure and dependencies. [1] [2] [3] [4] [5]Codebase and Dependency Updates:
0.0.8and added new dependencies (wide,lru) for preprocessing and caching. [1] [2]These changes collectively make the library faster, more flexible, and easier to use for a wider range of inference scenarios.
New Features and CLI Enhancements
--rect), batch inference (--batch), and expanded CLI options for IoU, max detections, and device selection. Updated CLI help and examples accordingly. [1] [2] [3] [4] [5] [6] [7] [8]Performance and Pipeline Improvements
wide), LRU cache for LUTs (lru), and improved release build optimization with "fat" LTO. [1] [2] [3]Hardware Acceleration and Platform Support
Documentation and Example Updates
README.mdwith new CLI options, example outputs, features checklist, and detailed module/dependency breakdowns. [1] [2] [3] [4] [5]Codebase and Dependency Updates
0.0.8, added new dependencies, and clarified module structure in documentation. [1] [2] [3]