Repository navigation
refactor(yolo11): migrate to Task SDK - #1585
bodapatisaikrishna wants to merge 1 commit into
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (13)
Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review. 📝 SummarySummaryMigrates YOLO11 from Updates YOLO11 support, build, manifest, and benchmark declarations to use Reported offline validation includes architecture, performance-matrix, model, and support tests; Ruff checks; and C11/C++17 syntax checks. GPU TensorRT engine compilation and live GPU inference were not run locally. The supplied evidence does not establish current-head CI results or completion of all linked-issue validation criteria. Architecture impact
WalkthroughYOLO11 now builds and runs through the ChangesYOLO11 Task SDK
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Refactor Sequence Diagram(s)sequenceDiagram
participant E2ETest
participant CConsumer
participant CppConsumer
participant ImageToBoxesSDK
participant Yolo11ObjectDetectionPipeline
E2ETest->>CConsumer: Run with bundle, runtime, and RGB image
CConsumer->>ImageToBoxesSDK: Load model and run ImageToBoxes
ImageToBoxesSDK->>Yolo11ObjectDetectionPipeline: Submit image request and config
Yolo11ObjectDetectionPipeline-->>ImageToBoxesSDK: Return detected boxes
ImageToBoxesSDK-->>CConsumer: Return task result
E2ETest->>CppConsumer: Run with bundle, runtime, and RGB image
CppConsumer->>ImageToBoxesSDK: Load model and run ImageToBoxes
ImageToBoxesSDK->>Yolo11ObjectDetectionPipeline: Submit image request and config
Yolo11ObjectDetectionPipeline-->>ImageToBoxesSDK: Return detected boxes
ImageToBoxesSDK-->>CppConsumer: Return task result
E2ETest->>E2ETest: Compare consumer results with CLI detections
Merge Risk: 🔵 Low · up to The migration is largely covered by offline checks, but GPU inference remains unvalidated. Run the checkpoint and SDK end-to-end checks before relying on it in production. 🚥 Pre-merge checks | ✅ 7 | ❌ 1 | ❓ 1❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (7 passed)
Full details: Linked Issues checkExplanation For Full details: Docstring CoverageExplanation Docstring coverage is 6.78% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 59 functions across 10 files. (3 skipped: 3 unsupported.)
Comment |
Migrate yolo11 to the semantic image_to_boxes Task SDK. Binds IImageToBoxes, updates family support, manifests, and benchmarks, and adds CPU contract tests along with public C/C++ SDK consumers. Signed-off-by: bodapatisaikrishna <[email protected]>
bef695a to
88c3fb6
Compare
|
Thanks for the migration @bodapatisaikrishna requirements.txt already correctly pins opencv-python-headless but seems the error is (not verified yet): ultralytics==8.3.0 pulls in plain opencv-python transitively, which overwrites the headless cv2 install and needs libGL that the CI container doesn't have. Could help to check that? |
|
Checked this out Ultralytics declares opencv-python>=4.6.0 rather than the headless variant, so pip pulls in plain opencv during family dependency installation unless --no-deps is used or headless is reinstalled afterward (similar to what prepare_environment.py does for the benchmark runner). Would you prefer we add a post-install headless reinstall step in community_gpu_ci.py or install libgl1 in the runner image? |
Background
Epic #1430 tracks migrating model families to the semantic Task SDK. Issue #1538 covers migrating yolo11 to the image_to_boxes task.
Exit Criteria
Implementation
Fixes #1538
Change categories
Validation
Commands and Results
Offline validation:
Hardware, Environment, and Revisions
Not Run / Remaining Gaps
Contributor Self-Review
Notes For Future Readers
All changes are strictly contained within families/yolo11/**.
Risk level
Low risk because the TensorRT graph construction is untouched; changes are confined to the task interface binding and test plumbing.