feat(v0.1.0): instance segmentation, GPU mask decode, RAII wrappers, internal header reorg, docs overhaul - #1
Merged
Conversation
…internal header reorg, docs overhaul
…internal header reorg, docs overhaul
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
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.
Description
Adds instance segmentation support, RAII CUDA memory management, internal header reorganization, GPU mask decode kernel, and a full documentation overhaul.
Type of Change
Motivation
Extends the library from detection-only to full instance segmentation. RAII wrappers eliminate manual CUDA memory management. Internal headers moved out of the public API surface to enforce PIMPL boundaries. GPU mask decode replaces the CPU resize+threshold path for significantly lower postprocessing latency.
Closes #
Changes Made
RFDetrSegmentertask class withsegment()andsegment_batch()APIsmaskDecodeKernel— GPU bilinear upsample + threshold, parallelized across all detections viablockIdx.zDevPtr/HostPtrRAII wrappers replacing rawvoid*buffers inTrtSessionandImagePreprocessortrt_session.hpp,cuda_preprocess.cuh,trt_logger.hpp,cuda_check.hpptosrc/internal/with backward-compat shimscuda_graph_active()accessor on bothRFDetrDetectorandRFDetrSegmenter[[nodiscard]]across all public task methodsschema_versionfield toEngineMetaapps/CLI_TOOLS.md,benchmarks/BENCHMARKING.md,trt-files/INT8_QUANTIZATION.md,examples/EXAMPLES.mdChecklist
cmake --build build)