msluszniak commited on
Commit
dce459f
·
verified ·
1 Parent(s): 739bc27

Apply the model card standard

Browse files
Files changed (1) hide show
  1. README.md +45 -18
README.md CHANGED
@@ -4,26 +4,53 @@ pipeline_tag: image-segmentation
4
  library_name: executorch
5
  ---
6
 
7
- # Introduction
8
 
9
- This repository hosts the [selfie segmentation](https://ai.google.dev/edge/mediapipe/solutions/vision/image_segmenter) models
10
- for the [React Native
11
- ExecuTorch](https://www.npmjs.com/package/react-native-executorch) library. It
12
- includes models exported for xnnpack in `.pte` format, ready for use in the
13
- **ExecuTorch** runtime.
14
 
15
- If you'd like to run these models in your own ExecuTorch runtime, refer to the
16
- [official documentation](https://pytorch.org/executorch/stable/index.html) for
17
- setup instructions.
18
 
19
- # Compatibility
20
 
21
- If you intend to use these models outside of React Native ExecuTorch, make sure
22
- your runtime is compatible with the ExecuTorch version used to export the `.pte`
23
- files. For more details, see the compatibility note in the ExecuTorch GitHub
24
- repository. If you work with React Native ExecuTorch, the constants from the
25
- library will guarantee compatibility with runtime used behind the scenes.
 
26
 
27
- These models were exported using **ExecuTorch** version 1.1.0 and no forward
28
- compatibility is guaranteed. Older versions of the runtime may not work with
29
- these files.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  library_name: executorch
5
  ---
6
 
7
+ # selfie-segmentation
8
 
9
+ This repository hosts the **selfie-segmentation** models exported for the
10
+ [React Native ExecuTorch](https://www.npmjs.com/package/react-native-executorch)
11
+ library as ExecuTorch `.pte` programs, ready to run on device.
 
 
12
 
13
+ Upstream model: [selfie segmentation](https://ai.google.dev/edge/mediapipe/solutions/vision/image_segmenter)
 
 
14
 
15
+ ## Variants
16
 
17
+ | Path | Backend | Precision |
18
+ | --- | --- | --- |
19
+ | `coreml/selfie_segmentation_coreml_fp16.pte` | coreml | fp16 |
20
+ | `coreml/selfie_segmentation_landscape_coreml_fp16.pte` | coreml | fp16 |
21
+ | `xnnpack/selfie_segmentation_xnnpack_fp32.pte` | xnnpack | fp32 |
22
+ | `xnnpack/selfie_segmentation_landscape_xnnpack_fp32.pte` | xnnpack | fp32 |
23
 
24
+ ## Unshipped backends
25
+
26
+ A backend directory carrying a `NOTES.md` and no `.pte` was exported and
27
+ not published. Its note records what went wrong.
28
+
29
+ - `mlx` ([why](https://huggingface.co/software-mansion/react-native-executorch-selfie-segmentation/blob/main/mlx/NOTES.md))
30
+
31
+ ## Repository structure
32
+
33
+ ```
34
+ config.json 41 B
35
+ coreml/config.json 1.4 kB
36
+ coreml/selfie_segmentation_coreml_fp16.pte 601 kB
37
+ coreml/selfie_segmentation_landscape_coreml_fp16.pte 601 kB
38
+ mlx/NOTES.md 2.4 kB
39
+ xnnpack/config.json 1.4 kB
40
+ xnnpack/selfie_segmentation_landscape_xnnpack_fp32.pte 463 kB
41
+ xnnpack/selfie_segmentation_xnnpack_fp32.pte 486 kB
42
+ ```
43
+
44
+ ## Compatibility
45
+
46
+ These files are published for the **ExecuTorch v1.4.1** runtime. ExecuTorch
47
+ gives no forward compatibility guarantee, so an older runtime may fail to load
48
+ them.
49
+
50
+ To use them in React Native ExecuTorch, pass the model constant shipped in the
51
+ library's model registry to the corresponding task pipeline. See the
52
+ [documentation](https://docs.swmansion.com/react-native-executorch/docs/fundamentals/loading-models).
53
+
54
+ To load these files in your own ExecuTorch runtime, read the
55
+ [compatibility note](https://github.com/pytorch/executorch/blob/main/runtime/COMPATIBILITY.md)
56
+ first.