recipe(rtdetr-r18vd): add CPU object detection recipes#1190
Draft
kujin66 wants to merge 1 commit into
Draft
Conversation
Contributor
Author
|
APPROVE (skill reviewer verdict) Reviewed PR #1190 against the
No requested changes. Leave the PR in draft state per skill workflow. |
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.
Summary
Adds verified CPU recipes for
PekingU/rtdetr_r18vd_coco_o365object detection. This is an L0 recipe-only contribution with CPU fp32/fp16 build, perf, L2 PyTorch-vs-ONNX numeric comparison, analyze evidence, and explicit L3 dataset/label blocker evidence on current PR head.Model metadata
What the model does
PekingU/rtdetr_r18vd_coco_o365is an RT-DETR object detection model. It consumes an RGB image tensor and emits class logits plus normalized predicted boxes for COCO-style detection.Primary user stories
verifiedfrom config and WinML build output).Supported tasks
RTDetrForObjectDetection; WinML build/perf/L2 commands belowModel architecture
Validation and support evidence
Baseline
origin/mainatd9feefffccecfe47f08b7d2cfffb11fe57eb94df.winml config -m PekingU/rtdetr_r18vd_coco_o365 --task object-detectionsucceeded and auto-detectedAutoModelForObjectDetection/object-detectionwithpixel_values [1, 3, 640, 640]and outputslogits,pred_boxes.Goal
(cpu, cpu, fp32)and(cpu, cpu, fp16)tuples.Outcome
examples/recipes/PekingU_rtdetr_r18vd_coco_o365/cpu/cpu/object-detection_fp32_config.jsonexamples/recipes/PekingU_rtdetr_r18vd_coco_o365/cpu/cpu/object-detection_fp16_config.jsondetection-datasets/cocoand this model's label set, with exact CLI error recorded below.Per-EP/device/precision results
motorcyclenot in model label2id (motorbike)Build evidence:
Build complete in 137.3s; final artifactmodel.onnx; inputpixel_values [1, 3, 640, 640]; outputslogits [1, 300, 80],pred_boxes [1, 300, 4].Build complete in 53.3s; FP16 stage emitted 38.8 MB artifact; perf reportedModel Precision: fp16.L3 eval attempt evidence:
winml eval -m temp\verify_rtdetr_fp32\model.onnx --model-id PekingU/rtdetr_r18vd_coco_o365 --task object-detection --ep cpu --device cpudownloaded/generateddetection-datasets/coco, then failed because dataset labelmotorcycleis not in model label2id; this model usesmotorbike.Quality gates:
c973471005ebb6f6cfbd980754574bb963602002:lint,Analyze (Python),test (models),test (commands),test (analyze),test (optim),test (remaining),CodeQL, andlicense/claall completed successfully.Delta
Analyze summary
Static rule analysis completed for fp32. fp16 standalone analyze was attempted and failed in ONNX type inference; this is recorded as analyzer coverage blocker, not runtime failure.
Component-level summary
Analysis failed: [TypeInferenceError] Inferred elem type differs from existing elem type: (1) vs (10)Op-level summary
Rule-less EPs (CUDA, MIGraphX, DML): all operators unknown in static rules where analysis reaches EP classification.
Reproduce commands