feat(compressors/proposal): add OWLv2 object detection pipeline and typed results

- switch OWLv2 loader return type to Owlv2ForObjectDetection
- add detect_objects and detect_objects_batch with two-stage score filtering
- add DetectionResult typed dict and conversion helper for post-processed outputs
- export new detection APIs from proposal module
This commit is contained in:
2026-04-02 19:41:54 +08:00
parent 42acb3ee1b
commit af0531a5eb
3 changed files with 157 additions and 6 deletions

View File

@@ -1,9 +1,16 @@
"""Proposal module — SAM mask generation and extraction."""
"""Proposal module — SAM mask generation and OWLv2 object detection."""
from .core import generate_proposals, generate_proposals_batch
from .core import (
detect_objects,
detect_objects_batch,
generate_proposals,
generate_proposals_batch,
)
from .utils import extract_masked_region
__all__ = [
"detect_objects",
"detect_objects_batch",
"generate_proposals",
"generate_proposals_batch",
"extract_masked_region",