Selfie segmentation: single-channel mask is passed through sigmoid twice
I maintainer di solito rispondono entro 1 giorno
@barhanc ci sta già lavorando.
Dal 27/11/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Description
For single-output-channel models the semantic segmentation task applies sigmoid -> x255 -> GRAY2RGBA (src/extensions/cv/tasks/semanticSegmentation.ts). The selfie segmentation XNNPACK export already ends in a sigmoid, so the returned mask is sigmoid(sigmoid(x)).
Observed mask values on a 1024x685 photo of three people:
- grey values span only 116-199 instead of 0-255
- the histogram is bimodal at ~128 (65 % of pixels, = sigmoid(0)) and ~186 (30 %, = sigmoid(1))
- thresholding at 128 marks 98.8 % of the image as "person"; thresholding at sigmoid(0.5)*255 = 159 gives 32 %, which matches the picture
Effect for apps: overlaying the mask as alpha gives 0.5-0.73 everywhere instead of a 0/1 cut-out.
Expected: mask in the full 0-255 range (either the export returns logits, or the task skips the sigmoid for this model).
Steps to reproduce
- Load the selfie segmentation model from the registry, XNNPACK fp32 (file from the
v0.10.0tag). - Run it on any photo with a person.
- Build a histogram of the returned mask (R channel).
- Values stay within about 116-199.
Snack or a link to a repository
No response
React Native Executorch version
0.11.0 (code path re-checked in the 0.11.1 npm package)
React Native version
0.88.1 (Expo 58)
Platforms
iOS, Android
JavaScript runtime
No response
Workflow
No response
Architecture
No response
Build type
No response
Device
No response
Device model
iPhone 17 (iOS 26.5.2), Galaxy S23 (Android 16)
AI model
Selfie segmentation XNNPACK fp32
Performance logs
No response
Acknowledgements
Yes
- Lingua principale
- TypeScript
- Stelle
- 1.8k
- Fork
- 102
- Merge medio
- 2g 6h
- PR unite (30g)
- 46
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di software-mansion/react-native-executorch
-
Require react-native-blob-util >=1.0.0 (Xcode 27 iOS build failure)Forse già presa @msluszniak l’ha presa 23 giorni fa. Apertadependencies platform: ios
Difficoltà 1/5 1-3 ore Idoneità per principianti 78/100
software-mansion/react-native-executorch#1617 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Android: prebuilt libexecutorch.so SIGILLs on ARMv8.0 CPUs (unguarded LSE atomics in the JNI layer, one-line fix upstream)Forse già presa @msluszniak l’ha presa oggi. Apertauser exp
software-mansion/react-native-executorch#1665 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Chat session: add `session.reset()` for stateless single-turn requestsForse già presa @barhanc l’ha presa 1 giorno fa. Apertafeature request
software-mansion/react-native-executorch#1664 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
software-mansion/react-native-executorch#1663 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
software-mansion/react-native-executorch#1661 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di software-mansion/react-native-executorch
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
ehmpathy/rhachet-roles-bhrain#878 ·
I maintainer di solito rispondono entro 1 giorno
-
Chat UI: Message actions dropdown is cut off beneath composer when message is near bottom of chatForse già presa @koeria l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
milind-soni/OpenMausBot#8023 ·
I maintainer di solito rispondono entro 1 giorno
-
Windows microphone listing treats words in a device name as DirectShow labelsForse già presa @Sujal-chaudhary l’ha presa oggi. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
clipy-recorder/clipy#447 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement from-app needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
nightly-labs/openbot#19162 ·
I maintainer di solito rispondono entro 1 giorno
-
triage:in-progress
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Cotal-AI/Cotal#11229 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno