msluszniak commited on
Commit
ff12ed8
·
verified ·
1 Parent(s): bd2deba

Apply the model card standard

Browse files
Files changed (1) hide show
  1. README.md +60 -24
README.md CHANGED
@@ -4,27 +4,63 @@ pipeline_tag: image-segmentation
4
  library_name: executorch
5
  ---
6
 
7
- # Introduction
8
-
9
- This repository hosts the semantic segmentation
10
- [DeepLabV3](https://docs.pytorch.org/vision/main/models/deeplabv3.html) models
11
- for the [React Native
12
- ExecuTorch](https://www.npmjs.com/package/react-native-executorch) library. It
13
- includes models exported for xnnpack in `.pte` format, ready for use in the
14
- **ExecuTorch** runtime.
15
-
16
- If you'd like to run these models in your own ExecuTorch runtime, refer to the
17
- [official documentation](https://pytorch.org/executorch/stable/index.html) for
18
- setup instructions.
19
-
20
- # Compatibility
21
-
22
- If you intend to use these models outside of React Native ExecuTorch, make sure
23
- your runtime is compatible with the ExecuTorch version used to export the `.pte`
24
- files. For more details, see the compatibility note in the ExecuTorch GitHub
25
- repository. If you work with React Native ExecuTorch, the constants from the
26
- library will guarantee compatibility with runtime used behind the scenes.
27
-
28
- These models were exported using **ExecuTorch** version 1.1.0 and no forward
29
- compatibility is guaranteed. Older versions of the runtime may not work with
30
- these files.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  library_name: executorch
5
  ---
6
 
7
+ # deeplab-v3
8
+
9
+ This repository hosts the **deeplab-v3** 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: [DeepLabV3](https://docs.pytorch.org/vision/main/models/deeplabv3.html)
14
+
15
+ ## Variants
16
+
17
+ | Path | Backend | Precision |
18
+ | --- | --- | --- |
19
+ | `coreml/deeplab_v3_mobilenet_v3_large_coreml_fp16.pte` | coreml | fp16 |
20
+ | `coreml/deeplab_v3_resnet50_coreml_fp16.pte` | coreml | fp16 |
21
+ | `coreml/deeplab_v3_resnet101_coreml_fp16.pte` | coreml | fp16 |
22
+ | `xnnpack/deeplab_v3_mobilenet_v3_large_xnnpack_fp32.pte` | xnnpack | fp32 |
23
+ | `xnnpack/deeplab_v3_mobilenet_v3_large_xnnpack_int8.pte` | xnnpack | int8 |
24
+ | `xnnpack/deeplab_v3_resnet50_xnnpack_fp32.pte` | xnnpack | fp32 |
25
+ | `xnnpack/deeplab_v3_resnet50_xnnpack_int8.pte` | xnnpack | int8 |
26
+ | `xnnpack/deeplab_v3_resnet101_xnnpack_fp32.pte` | xnnpack | fp32 |
27
+ | `xnnpack/deeplab_v3_resnet101_xnnpack_int8.pte` | xnnpack | int8 |
28
+
29
+ ## Unshipped backends
30
+
31
+ A backend directory carrying a `NOTES.md` and no `.pte` was exported and
32
+ not published. Its note records what went wrong.
33
+
34
+ - `mlx` ([why](https://huggingface.co/software-mansion/react-native-executorch-deeplab-v3/blob/main/mlx/NOTES.md))
35
+
36
+ ## Repository structure
37
+
38
+ ```
39
+ config.json 32 B
40
+ coreml/config.json 2.1 kB
41
+ coreml/deeplab_v3_mobilenet_v3_large_coreml_fp16.pte 21.5 MB
42
+ coreml/deeplab_v3_resnet101_coreml_fp16.pte 112 MB
43
+ coreml/deeplab_v3_resnet50_coreml_fp16.pte 75.9 MB
44
+ mlx/NOTES.md 2.0 kB
45
+ xnnpack/config.json 5.0 kB
46
+ xnnpack/deeplab_v3_mobilenet_v3_large_xnnpack_fp32.pte 42.1 MB
47
+ xnnpack/deeplab_v3_mobilenet_v3_large_xnnpack_int8.pte 10.8 MB
48
+ xnnpack/deeplab_v3_resnet101_xnnpack_fp32.pte 224 MB
49
+ xnnpack/deeplab_v3_resnet101_xnnpack_int8.pte 58.9 MB
50
+ xnnpack/deeplab_v3_resnet50_xnnpack_fp32.pte 151 MB
51
+ xnnpack/deeplab_v3_resnet50_xnnpack_int8.pte 40.4 MB
52
+ ```
53
+
54
+ ## Compatibility
55
+
56
+ These files are published for the **ExecuTorch v1.4.1** runtime. ExecuTorch
57
+ gives no forward compatibility guarantee, so an older runtime may fail to load
58
+ them.
59
+
60
+ To use them in React Native ExecuTorch, pass the model constant shipped in the
61
+ library's model registry to the corresponding task pipeline. See the
62
+ [documentation](https://docs.swmansion.com/react-native-executorch/docs/fundamentals/loading-models).
63
+
64
+ To load these files in your own ExecuTorch runtime, read the
65
+ [compatibility note](https://github.com/pytorch/executorch/blob/main/runtime/COMPATIBILITY.md)
66
+ first.