Skip to content

Commit fd3ac2e

Browse files
committed
[RNE Rewrite] feat: add keypointDetection feature mapping (#1280)
Rebased onto rne-rewrite incl. #1280 keypoint detection. Rename the poseEstimation FEATURE_MAP entry to keypointDetection (tracks the useKeypointDetector hook) and set backends to xnnpack+coreml+mlx (RF-DETR keypoint ships CoreML + MLX variants) + opencv. Declare it in the computer-vision demo app.
1 parent c385df2 commit fd3ac2e

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

‎apps/computer-vision/package.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"react-native-executorch": {
66
"features": [
77
"classification",
8+
"keypointDetection",
89
"semanticSegmentation",
910
"styleTransfer"
1011
]

‎packages/react-native-executorch/scripts/download-libs.js‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
* features: llm, multimodalLLM, speechToText, textToSpeech, vad, privacyFilter,
4141
* textEmbeddings, imageEmbeddings,
4242
* classification, objectDetection, semanticSegmentation, instanceSegmentation,
43-
* ocr, verticalOCR, poseEstimation, styleTransfer, textToImage, segmentAnything,
43+
* ocr, verticalOCR, keypointDetection, styleTransfer, textToImage, segmentAnything,
4444
* tokenizer
4545
*
4646
* Platform applicability:
@@ -117,8 +117,10 @@ const FEATURE_MAP = {
117117
classification: { backends: ['xnnpack', 'coreml'], libs: ['opencv'] },
118118
// YOLO is xnnpack-only, ssdlite/rf_detr add coreml → union.
119119
objectDetection: { backends: ['xnnpack', 'coreml'], libs: ['opencv'] },
120-
// YOLO-pose only.
121-
poseEstimation: { backends: ['xnnpack'], libs: ['opencv'] },
120+
// Keypoint detection (#1280): BlazeFace + YOLO26-pose ship xnnpack; RF-DETR
121+
// keypoint adds coreml + mlx → union. (Named to track the useKeypointDetector
122+
// hook; main calls this poseEstimation.)
123+
keypointDetection: { backends: ['xnnpack', 'coreml', 'mlx'], libs: ['opencv'] },
122124
// DeepLab/FCN/LR-ASPP/selfie — xnnpack only.
123125
semanticSegmentation: { backends: ['xnnpack'], libs: ['opencv'] },
124126
// YOLO-seg xnnpack-only, rf_detr-seg/fastsam add coreml → union.

0 commit comments

Comments
 (0)